mirror of
https://gitlab.com/mysocialportal/relatica
synced 2024-10-19 18:43:32 +00:00
25 lines
603 B
Dart
25 lines
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();
|
||
|
});
|
||
|
}
|
||
|
}
|