flutter pub add sandesh
import 'package:sandesh/sandesh.dart';
ElevatedButton(
onPressed: () {
Sandesh.showToast(
context,
message: "Please Enter Correct Password",
type: ToastType.ERROR,
title: "Invalid Password",
// removeonTap: true
);
},
child: const Text("Error Toast")
);
Sandesh Toast is a simple to use plugin that provides a way to display toast messages in your Flutter app.
Sandesh Toast supports four types of toast messages: default, success, error, and warning.
You can customize the look and feel of the toast messages by passing in custom title and message styles.
Sandesh Toast supports 8 different gravity options for the toast messages.
You can handle tap events on the toast messages by passing in a callback function.
Sandesh Toast supports vibration on tap for the toast messages.
There are several future improvements that can be made to Sandesh Toast including the addition of a countdown timer and the ability to customize the toast background color.
If you would like to contribute to the development of Sandesh Toast, please fork the repository and submit a pull request.
Sandesh Toast is released under the MIT license. See the LICENSE file for details.