diff --git a/example/lib/config/route_handlers.dart b/example/lib/config/route_handlers.dart index c335923..51d202f 100644 --- a/example/lib/config/route_handlers.dart +++ b/example/lib/config/route_handlers.dart @@ -33,28 +33,30 @@ var demoFunctionHandler = new Handler( String message = params["message"]?.first; showDialog( context: context, - child: new AlertDialog( - title: new Text( - "Hey Hey!", - style: new TextStyle( - color: const Color(0xFF00D6F7), - fontFamily: "Lazer84", - fontSize: 22.0, - ), - ), - content: new Text("$message"), - actions: [ - new Padding( - padding: new EdgeInsets.only(bottom: 8.0, right: 8.0), - child: new FlatButton( - onPressed: () { - Navigator.of(context).pop(true); - }, - child: new Text("OK"), + builder: (context) { + return new AlertDialog( + title: new Text( + "Hey Hey!", + style: new TextStyle( + color: const Color(0xFF00D6F7), + fontFamily: "Lazer84", + fontSize: 22.0, ), ), - ], - ), + content: new Text("$message"), + actions: [ + new Padding( + padding: new EdgeInsets.only(bottom: 8.0, right: 8.0), + child: new FlatButton( + onPressed: () { + Navigator.of(context).pop(true); + }, + child: new Text("OK"), + ), + ), + ], + ); + }, ); }); @@ -70,5 +72,5 @@ var deepLinkHandler = new Handler(handlerFunc: (BuildContext context, Map 0) { color = new Color(ColorHelpers.fromHexString(colorHex)); } - return new DemoSimpleComponent(message: "DEEEEEP LINK!!!", color: color, result: result); + return new DemoSimpleComponent(message: message, color: color, result: result); });