simple_flutter_dialog
a simple plugin in to show custom dialog in flutter.
Installation:
dependencies:
easy_dialog: <latest version>
Usage:
Import the package
import 'package:simple_flutter_dialog/simple_flutter_dialog.dart';
Basic usage:
SimpleFlutterDialog(
dialogTitle: Text('My Simple dialog'),
headerImage: NetworkImage('https://via.placeholder.com/150'))
isScrollable: true,
child: Text(
'Text content'
),
actions: [
FlatButton(
onPressed: () {},
child: Text('action'),
),
],
.show(context);
All attributes:
| Attribute Name | Data Type | Description |
|----------------------|--------------------|----------------------------------------------------|
| headerImage | ImageProvider | Image provider for header image |
| dialogTitle | Text | text widget for dialog title |
| actions | List