当前位置:网站首页>Shutter popup shutter shutter_ easyloading
Shutter popup shutter shutter_ easyloading
2022-06-09 11:15:00 【Dense information】
Reference resources
There are many user-defined pop-up interfaces on the Internet , It can be displayed and hidden through interface jump , But it's a little hard for me , Because pop ups are often combined with network requests , At this time, it will be much better to use plug-ins
The plug-in address is as follows
https://pub.flutter-io.cn/packages/flutter_easyloading
flutter_easyloading: ^3.0.3
First initialize in the interface
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter EasyLoading',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: MyHomePage(title: 'Flutter EasyLoading'),
builder: EasyLoading.init(),
);
}
}
And then use
EasyLoading.show(status: 'loading...');
EasyLoading.showProgress(0.3, status: 'downloading...');
EasyLoading.showSuccess('Great Success!');
EasyLoading.showError('Failed with Error');
EasyLoading.showInfo('Useful Information.');
EasyLoading.showToast('Toast');
EasyLoading.dismiss();
边栏推荐
猜你喜欢

哐哐英雄Clunky Hero v0.96中文版
[email protected] -808 loaded 5-fluorouracil| [email protected][email protected] -808 loaded 5-fluorouracil| [email protected]

基于C语言实现的网络嗅探器设计课程设计

excel条件格式使用详细步骤

Leetcode 2048. 下一个更大的数值平衡数(有点意思,已解决)

web开发交流,web开发实例教程

MySQL 学习笔记-第五篇-数据备份与恢复、MySQL 日志

Bidirectional BFS

Web development exchange, web development example tutorial

Amazing SQL query experience, group by slow query optimization!
随机推荐
MySQL 学习笔记-第五篇-数据备份与恢复、MySQL 日志
Cyclodextrin metal organic framework loaded low molecular weight heparin and adriamycin (MOF metal organic framework loaded biological macromolecular drugs)
merge sort
[email protected] -808 loaded 5-fluorouracil| [email protected]
Daily question -1232 Dotted line
NFT market has entered the era of aggregation, and okaleido has become the first aggregation platform on BNB chain
用80%的工时拿100%的薪水,英国正式开启“四天工作制”试验!
自己建设网站需要做哪些准备
web开发重点,简单开发web
Detailed steps for using Excel conditional format
费用最低的证券公司 开户安全吗
多线程中编译错误
DM platform management - NETCORE
终于有人把大数定律讲明白了
How to realize face verification quickly and accurately?
全局组织结构控制之抢滩登陆
多引擎数据库管理工具 DataGrip 2022.1.5中文版
php redis 常用操作手册
One question per day -1200 Minimum absolute difference
每日一题-1232. 缀点成线