mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-09-21 07:47:15 +08:00
fix deprecated showDialog() argument
This commit is contained in:
@ -32,7 +32,7 @@ class MyHomeState extends State<MyHome> {
|
||||
// On press of the button
|
||||
onPressed: () {
|
||||
// Show dialog
|
||||
showDialog(context: context, child: dialog);
|
||||
showDialog(context: context, builder: (BuildContext context) => dialog);
|
||||
}),
|
||||
),
|
||||
));
|
||||
|
Reference in New Issue
Block a user