progresshud

一个有用的Hud框架,通过Flutter调用原生代码实现。只需一行代码,即可在任何地方调用Hud并控制其隐藏。在示例App中,您可以了解如何使用它。iOS使用SVProgress HUD,Android使用SVProgress HUD-Android(此包是iOS版本的副本)。UI来自原生层,因此定义空间不大。如果需要自定义,可以分别重写每个平台上的框架代码(比较麻烦)。

适用于Flutter应用的EasyUse ProgressHUD。

用法

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

GitHub

https://github.com/mjl0602/OVProgressHUD