v0.0.1
edge_alert
一個 Flutter 套件,可在螢幕頂部或底部顯示警告。
38喜歡 65近 30 天下載40Pub 分數
平台暫無資料
一個顯示頂部或底部螢幕警告的Flutter外掛程式
{"sdk":"flutter"}{"sdk":"flutter"}以下為英文專案原文快照,最新內容請造訪 GitHub。
A Flutter package that shows alert from top or bottom of the screen.
# add this line to your dependencies
edge_alert: ^0.0.1
import 'package:edge_alert/edge_alert.dart';
EdgeAlert.show(context, title: 'Title', description: 'Description', gravity: EdgeAlert.TOP);
| property | description |
|---|---|
| context | BuildContext (Not Null)(required) |
| title | 'Your title goes here' |
| description | 'Your description goes here' |
| icon | IconData (Default: Icons.notifications) |
| backgroundColor | Color() (Default Colors.grey) |
| duration | EdgeAlert.LENGTH_SHORT(1 second, Default) or EdgeAlert.LENGTH_LONG(2 sec) or EdgeAlert.LENGTH_VERY_LONG(3 sec) |
| gravity | EdgeAlert.TOP(Default) or EdgeAlert.BOTTOM |
EdgeAlert
https://github.com/Tapadoo/Alerter/
MIT License