flashtoast 0.0.2
flashtoast: ^0.0.2 copied to clipboard
flutter flash toast .
Flutter Flash Toast
Features #
Yes, you can customize the type of flash toast using the FlashType enum in the package.
The FlashType enum includes several options for the type of message you want to display:
FlashType.success: a success message with a green background. FlashType.help: an informative message with a blue background. FlashType.warning: a warning message with a yellow background. FlashType.error: an error message with a red background.
Getting started #
To use the flashToast package in your Flutter app, simply import the package and call either the FlashToast.showFlashToast() method when you want to display a flash message.
Usage #
import 'package:flashtoast/flash_bar.dart';
FlashToast.showFlashToast(context: context, title: "your title", message: "your message", flashBaeType: FlashType.success,flashBarPosition: FlashBarPosition.top);
FlashToast.showFlashToast(context: context, title: "your title", message: "your message", flashBaeType: FlasType.warning,flashBarPosition: FlashBarPosition.center);
FlashToast.showFlashToast(context: context, title: "your title", message: "your message", flashBaeType: FlashType.error,flashBarPosition: FlashBarPosition.bottom);
Additional information #
for further contact us on flutter.hasan@gmail.com