alert_dialog 0.1.0 alert_dialog: ^0.1.0 copied to clipboard
Alert Dialog Widget JS-LIKE for Flutter. Use alert dialog easy and simple for your flutter app.
import 'package:flutter/material.dart';
import 'package:alert_dialog/alert_dialog.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Welcome to Flutter',
home: Scaffold(
appBar: AppBar(
title: Text('Welcome to Flutter'),
),
body: Center(
child: FlatButton(
child: Text('Alert Dialog'),
onPressed: () {
return alert(context, title: Text('Alert'));
},
),
),
),
);
}
}