You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
doctor_app_flutter/lib/widgets/shared/app_loader_widget.dart

50 lines
1.0 KiB
Dart

import 'package:flutter/material.dart';
import 'package:progress_hud_v2/progress_hud.dart';
class AppLoaderWidget extends StatefulWidget {
AppLoaderWidget({Key key, this.title}) : super(key: key);
final String title;
@override
_AppLoaderWidgetState createState() => new _AppLoaderWidgetState();
}
class _AppLoaderWidgetState extends State<AppLoaderWidget> {
ProgressHUD _progressHUD;
// bool _loading = false;
@override
void initState() {
super.initState();
_progressHUD = new ProgressHUD(
backgroundColor: Colors.black12,
color: Colors.black,
// containerColor: Colors.blue,
borderRadius: 5.0,
// text: 'Loading...',
);
}
@override
Widget build(BuildContext context) {
// void dismissProgressHUD() {
// setState(() {
// if (_loading) {
// _progressHUD.state.dismiss();
// } else {
// _progressHUD.state.show();
// }
// _loading = !_loading;
// });
// }
return Positioned(child: _progressHUD) ;
}
}