tfk_toast 0.0.3
tfk_toast: ^0.0.3 copied to clipboard
tfk_toast is a lightweight Flutter package for displaying customizable toast messages.
TfkToast #
TfkToast is a Flutter package designed to display beautiful and customizable toast notifications. Toast messages provide non-intrusive feedback to users, enhancing their experience.
Features #
- Customizable Toasts: Display toasts with various types (info, warning, error, success).
- Customizable Title and Message: Add a title and message to your toast notifications.
- Automatic Dismissal: Toasts automatically disappear after a few seconds.
- Manual Dismissal: Optionally, allow users to manually close the toast.
Installation #
Add tfk_toast to your pubspec.yaml file:
dependencies:
tfk_toast: ^0.0.19
Then run:
flutter pub get
Usage #
Import the package in your Dart file:
import 'package:tfk_toast/tfk_toast.dart';
To show a toast, use the following code:
TfkToast.showToast(
context,
'This is a toast message!',
ToastType.success,
);