-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaboutdialog.dart
29 lines (27 loc) · 909 Bytes
/
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
import 'package:flutter/material.dart';
class AboutDialogWidget extends StatelessWidget {
const AboutDialogWidget({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text("About Dialog"),
),
body: Center(
child: ElevatedButton(
onPressed: () {
showDialog(
context: context,
builder: (context) => const AboutDialog(
applicationIcon: FlutterLogo(),
applicationLegalese: 'Legalese',
applicationName: 'Flutter App',
applicationVersion: 'version 1..0',
children: [Text("This is a text created by Ashwin")],
),
);
},
child: const Text("Show About Dialog")),
));
}
}