mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-11-08 20:50:04 +00: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