updated new flutter version
This commit is contained in:
@@ -167,14 +167,16 @@ class DesktopNewCommentState extends State<DesktopNewComment> {
|
||||
child: SizedBox(
|
||||
width: 150.0,
|
||||
height: 36.0,
|
||||
child: RaisedButton(
|
||||
child: ElevatedButton(
|
||||
child: Text(
|
||||
S.of(context).submit,
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
),
|
||||
),
|
||||
color: Theme.of(context).primaryColor,
|
||||
style: ElevatedButton.styleFrom(
|
||||
primary: Theme.of(context).primaryColor,
|
||||
),
|
||||
onPressed: () {
|
||||
_submit();
|
||||
},
|
||||
@@ -238,14 +240,16 @@ class DesktopNewCommentState extends State<DesktopNewComment> {
|
||||
title: Text(S.of(context).warning),
|
||||
content: Text(S.of(context).are_you_sure_to_remove_the_picture),
|
||||
actions: <Widget>[
|
||||
FlatButton(
|
||||
TextButton(
|
||||
child: Text(S.of(context).cancel),
|
||||
onPressed: () {
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
color: Theme.of(context).primaryColor,
|
||||
style: TextButton.styleFrom(
|
||||
primary: Theme.of(context).primaryColor,
|
||||
),
|
||||
),
|
||||
FlatButton(
|
||||
TextButton(
|
||||
child: Text(S.of(context).yes_i_am_sure),
|
||||
onPressed: () {
|
||||
Navigator.of(context).pop();
|
||||
|
||||
Reference in New Issue
Block a user