appdev/FlutterToast
Flutter Toast Flutter ネイティブ API を使用して実装されたトースト機能
- Stars
- 112
- Forks
- 51
- 最終プッシュ(UTC)
- 2025/01/07
- プロジェクト状態
- 公開中
言語DartCSS
技術トピック
使用している依存関係
依存関係一覧 2 件
- flutter
{"sdk":"flutter"} - flutter_web_plugins
{"sdk":"flutter"}
元の README
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
README を開く / 閉じる
Toast
A Flutter Toast plugin.
How to Use
# add this line to your dependencies
toast: ^0.3.0
import 'package:toast/toast.dart';
ToastContext().init(context);
Toast.show("Toast plugin app", duration: Toast.lengthShort, gravity: Toast.bottom);
| property | description |
|---|---|
| msg | String (Not Null)(required) |
| duration | Toast.lengthShort or Toast.lengthLong (optional) |
| gravity | Toast.top (or) Toast.center[not supported on web] (or) Toast.bottom |
| textStyle | TextStyle (default fontSize:15, color: Colors.white) |
| backgroundColor | Color (default Color(0xAA000000)) |
| backgroundRadius | double (default 16) |
| border | Border (optional) |
toast toast
License
MIT License