flashtoast 0.0.10
flashtoast: ^0.0.10 copied to clipboard
A flutter flash toast that you can customize the type of flash toast using the FlashType enum and other options.
example/main.dart
import 'package:flashtoast/flash_toast.dart';
void main() {
//with required options
FlashToast.showFlashToast(
context: context,
title: "your title ",
message: "your message",
flashType: FlashType.success
)
//with all options
FlashToast.showFlashToast(
context: context,
title: "your title ",
message: "your message",
flashType:
FlashType.success,
duration: 2//seconds
width: 400//by default its full screen width with 10px form left right padding
height: 200//by default its 100px
flashPosition: FlashPosition.center//by defaults its FlashPosition.top
opacity: 0.8//by default its 1.0
padding: EdgeInsets.all(20)
)
}