项目
在 GitHub 查看
boyan01/overlay_support
关于
用于显示 Toast 消息和通知的 Flutter 库。
开发工具实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文overlay_support
Provider support for overlay, make it easy to build toast and In-App notification.
this library support ALL platform
Interaction
If you want to see the ui effect of this library, just click here https://boyan01.github.io/overlay_support/#/
How To Use
add dependencies into you project
pubspec.yamlfiledependencies: overlay_support: latest_versionwrap your AppWidget with
OverlaySupport
return OverlaySupport.global(child: MaterialApp());
- show toast or simple notifications
import 'package:overlay_support/overlay_support.dart';
void onClick() {
// popup a toast.
toast('Hello world!');
// show a notification at top of screen.
showSimpleNotification(
Text("this is a message from simple notification"),
background: Colors.green);
}
more instructions check here : example/README.md
License
see License File
End
if you have some suggestion or advice, please open an issue to let me known. This will greatly help the improvement of the usability of this project. Thanks.
探索相关项目
加载中…