v1.1.0delightful_toast
一個令人愉悅的 toastbar 套件,支援豐富的互動功能,例如滑動關閉、自動關閉、堆疊動畫和按需關閉。
241喜歡 2200近 30 天下載150Pub 分數
AndroidiOSWebmacOSWindowsLinux
SwaroopSambhayya/delight_toast open-source repository details.
{"sdk":"flutter"}^4.3.0{"sdk":"flutter"}^2.0.0以下為英文專案原文快照,最新內容請造訪 GitHub。
A delighful and very interactive toast or a snackbar to add more delight to your application
ezgif com-video-to-gif
https://github.com/SwaroopSambhayya/delight_toast/assets/31922733/45b77a2e-7a73-44a0-899d-8d2f740097fb
In pubspec.yaml
delightful_toast: ^1.1.0
// add the import statement
import 'package:delightful_toast/delight_toast.dart';
Use the toasbar whenever a event has been triggered like onPressed/onTapped or in any other situation where the event is enforced
ElevatedButton( onPressed:(){
DelightToastBar(
builder: (context) => const ToastCard(
leading: Icon(
Icons.flutter_dash,
size: 28,
),
title: Text(
"Hi I'm Dash, Let's have a walkthrough of Delight Toast",
style: TextStyle(
fontWeight: FontWeight.w700,
fontSize: 14,
),
),
),
).show(context);
},
child: const Text("Toast!")
)