loading_progress_hud

Last updated:

0 purchases

loading_progress_hud Image
loading_progress_hud Images
Add to Cart

Description:

loading progress hud

loading_progress_hud #
a simple widget wrapper to enable modal progress HUD (a modal progress indicator, HUD = Heads Up Display)

Usage #
Add the package to your pubspec.yml file.
dependencies:
loading_progress_hud: ^0.0.1
copied to clipboard
Next, import the library into your widget.
import 'package:loading_progress_hud/loading_progress_hud.dart';
copied to clipboard
eg:
LELoadingController _controller;

@override
void initState() {
_controller = LELoadingController(initType: LoadingOrgStatus.none);
super.initState();
}


Future<LoadingOrgStatus> loadData() async {
await Future.delayed(Duration(seconds: 2));
return widget.netWorkEndType;
}

@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Demo'),
backgroundColor: Colors.blue,
),
body: LELoadingProgressHUD(
controller: _controller,
loadingCallBack: loadData,
child: new Container(
child: Center(
child: Text('loading demo 😁😁'),
),
),
));
}

copied to clipboard
Options #
The current parameters are customizable in the constructor
LELoadingProgressHUD({
Key key,
@required this.controller,
@required this.child,
this.loadingCallBack,
emptyIcon,
this.textColor,
this.bacgroundColor,
this.progressIndicator = const CircularProgressIndicator(),
this.loadingIndicator = const CircularProgressIndicator(),
})
copied to clipboard
controller hud
LELoadingController({
Key key,
this.initType = LoadingOrgStatus.loading,
this.emptyText = '暂无数据',//Empty Title
this.refreshText = '重新获取数据',//refresh Title
this.errorText = '数据错误',// error Title
this.loadingText = '正在加载...',//loading title
});
copied to clipboard
Issues and feedback #
Please file issues
to send feedback or report a bug. Thank you!

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.