toasts 0.0.2 toasts: ^0.0.2 copied to clipboard
A New Simple Toast flutter plugin.
import 'package:flutter/material.dart';
import 'package:toasts/toasts.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: Center(
child: RaisedButton(
child: Text('Show Toast'),
onPressed: () {
Toasts.show(text: 'Hey Flutter');
},
),
),
),
);
}
}