flutter_toast_dn 0.0.1 flutter_toast_dn: ^0.0.1 copied to clipboard
A new Flutter plugin.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: Center(
child: RaisedButton(
onPressed: () {
FlutterToastDN.showToast(
'toast plugin',
duration: 'long',
textColor: 0xffff0000,
textSize: 20.0,
);
},
child: Text('showToast'),
),
),
),
);
}
}