light_toast 0.0.8 light_toast: ^0.0.8 copied to clipboard
A lightweight Flutter package for displaying customizable toast messageswith support for icons, images, and configurable durations.
import 'package:flutter/material.dart';
import 'package:light_toast/light_toast.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Toast Example'),
),
body: Center(
child: ElevatedButton(
onPressed: () {
Toast.show(
'Hello, Flutter!',
);
},
child: const Text('Show Toast'),
),
),
),
);
}
}