ProgressHUD for Flutter App

  Flutter App

progresshud

A handy Hud framework is implemented by Flutter calling native code, including loading (default), success, error, info and other styles. You can call up Hud anywhere and control its hiding in one line of code. In the sample app, you can see how to use it.

Use SVProgressHUD on iOS and SVProgressHUD-Android on Android (this package is a copy of the iOS version). The UI comes from the native layer, so there is not too much definable space. If you need to customize, you can rewrite the framework code on each platform separately (more troublesome).

A useful Hud framework is implemented by calling native code by Flutter. With one line of code, you can call Hud out anywhere and control its hiding. In the example App, you can see how to use it. SVProgress HUD is used on iOS and SVProgress HUD-Android is used on Android (this package is a copy of iOS version). UI comes from the native layer, so there is not too much definition space. If you need to customize, you can rewrite the framework code on each platform separately (more troublesome).

EasyUse ProgressHUD for flutter app.

Install

Add this to your package’s pubspec.yaml file: Add the following fields to your pubspec.yamlfile:

dependencies:
  flutter:
    sdk: flutter
  // 添加下面这一行
  ovprogresshud: any

Then run flutter packages getto

Usage

Progresshud.show();
Show
Progresshud.showWithStatus('myinfo');
Status
Progresshud.showSuccessWithStatus('myinfo');
Success
Progresshud.showInfoWithStatus('myinfo');
Info
Progresshud.showErrorWithStatus('myinfo');
Error
Progresshud.setDefaultMaskTypeBlack();
MaskTypeBlack
Progresshud.setDefaultMaskTypeGradient('myinfo');
MaskTypeGradient

Download progresshud source code on GitHub

https://github.com/mjl0602/OVProgressHUD