Site icon Flutter Packages | Pub dev Packages – Flutter Mobile App World

ProgressHUD for 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();
Progresshud.showWithStatus('myinfo');
Progresshud.showSuccessWithStatus('myinfo');
Progresshud.showInfoWithStatus('myinfo');
Progresshud.showErrorWithStatus('myinfo');
Progresshud.setDefaultMaskTypeBlack();
Progresshud.setDefaultMaskTypeGradient('myinfo');

Download progresshud source code on GitHub

https://github.com/mjl0602/OVProgressHUD

Exit mobile version