forked from md-siam/widget_of_the_day
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaboutdialog.dart
35 lines (33 loc) · 1.1 KB
/
aboutdialog.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import 'package:flutter/material.dart';
class MyAboutDialog extends StatelessWidget {
const MyAboutDialog({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.deepPurple[100],
appBar: AppBar(title: const Text('About Dialog')),
body: Center(
child: ElevatedButton(
child: const Text('Show AboutDialog'),
onPressed: () {
showAboutDialog(
context: context,
applicationIcon: const FlutterLogo(),
applicationName: 'Widget of the day',
applicationVersion: '0.0.1',
applicationLegalese: '©2021, mdsiam.xyz',
children: const [
Padding(
padding: EdgeInsets.only(top: 15.0),
child: Text(
'This app will teach you some of the common widgets that are available in flutter SDK, & shows you how to use them for your UI design.',
),
),
],
);
},
),
),
);
}
}