fix warnings
This commit is contained in:
parent
9f7f680d4e
commit
a48b722468
|
@ -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: <Widget>[
|
||||
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: <Widget>[
|
||||
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<String
|
|||
if (colorHex != null && colorHex.length > 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);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue