Coder Social home page Coder Social logo

ovprogresshud's Introduction

progresshud

一个好用的Hud框架,通过Flutter调用原生代码的方式实现,包含loading(默认),success,error,info等样式。通过一行代码即可在任何地方调出Hud,并控制其隐藏,在示例App中,你可以看到具体如何使用它。

在iOS上使用SVProgressHUD,安卓上使用SVProgressHUD-Android(这个包就是仿写的iOS版本)。ui均来自原生层,所以没有过多的可定义空间,如果需要自定义,可以分别在各个平台上重写框架代码(比较麻烦)。

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.

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

ovprogresshud's People

Contributors

mjl0602 avatar jerryliao26 avatar

Watchers

Github Jobs Avaliable avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.