tfk_toast 0.0.1
tfk_toast: ^0.0.1 copied to clipboard
A Flutter package for displaying toast messages.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:tfk_toast/src/tfk_toast.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: Text('TfkToast Example')),
body: Center(
child: ElevatedButton(
onPressed: () {
TfkToast.showToast(
context,
'This is a toast message!',
ToastType.success,
title: 'Success',
);
},
child: Text('Show Toast'),
),
),
),
);
}
}