kopia lustrzana https://gitlab.com/mysocialportal/relatica
25 wiersze
603 B
Dart
25 wiersze
603 B
Dart
import 'package:flutter/foundation.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class StandardLinearProgressIndicator extends StatelessWidget {
|
|
final ValueListenable<bool> valueListenable;
|
|
|
|
const StandardLinearProgressIndicator(
|
|
this.valueListenable, {
|
|
super.key,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return ValueListenableBuilder(
|
|
valueListenable: valueListenable,
|
|
builder: (context2, executing, _) {
|
|
if (executing) {
|
|
return const LinearProgressIndicator();
|
|
}
|
|
|
|
return const SizedBox();
|
|
});
|
|
}
|
|
}
|