simple_flutter_dialog 0.0.1 simple_flutter_dialog: ^0.0.1 copied to clipboard
simple plugin to create dialog in flutter
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 | list of widget for bottom actions |
height | double | height for dialog card |
width | double | width for dialog card |
bgOverlayColor | Color | background color for overlay |
radius | double | radius for corners |
childPadding | double | padding for child |
headerImageHeight | double | header image height |
dialogColor | Color | background color for card |
child | Widget | child widget |
isScrollable | bool | do you eant to keep ypur content scrollable or not |
contentListAlignment | CrossAxisAlignment | cross axis alignment for content |
actionsRowAlignment | MainAxisAlignment | main axis alignment for actions |
headerImageFit | BoxFit | header image fit |