AboutDialog
This is a dialog box with the application's icon, name, version number, and copyright, plus a button to show licenses for software used by the application.
Properties
- applicationicon
- application Legalese
- applicationName
- application Version
- children
Example:
import 'package:flutter/material.dart';
void main() => runApp(DemoApp());
class DemoApp extends StatefulWidget {
@override
State<StatefulWidget> createState() {
return DemoAppState();
}
}
class DemoAppState extends State<DemoApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Builder(
builder: (context) {
return Center(
child: ElevatedButton(
onPressed: () {
showDialog(
context: context,
builder: (context) => const AboutDialog(
applicationIcon: Icon(Icons.shop),
applicationLegalese: 'www.google.com',
applicationName: 'Google App',
applicationVersion: '1.1.1',
children: [
Text("This is a flutter app."),
],
),
);
},
child: const Text('Click Me'),
),
);
},
),
),
);
}
}
Video Link: