fix warnings
This commit is contained in:
parent
9f7f680d4e
commit
a48b722468
|
@ -33,28 +33,30 @@ var demoFunctionHandler = new Handler(
|
||||||
String message = params["message"]?.first;
|
String message = params["message"]?.first;
|
||||||
showDialog(
|
showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
child: new AlertDialog(
|
builder: (context) {
|
||||||
title: new Text(
|
return new AlertDialog(
|
||||||
"Hey Hey!",
|
title: new Text(
|
||||||
style: new TextStyle(
|
"Hey Hey!",
|
||||||
color: const Color(0xFF00D6F7),
|
style: new TextStyle(
|
||||||
fontFamily: "Lazer84",
|
color: const Color(0xFF00D6F7),
|
||||||
fontSize: 22.0,
|
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"),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
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) {
|
if (colorHex != null && colorHex.length > 0) {
|
||||||
color = new Color(ColorHelpers.fromHexString(colorHex));
|
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