mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-24 04:59:26 +01:00
Merge branch 'soru/fix-dialog' into 'master'
fix context popping of dialogs See merge request ChristianPauly/fluffychat-flutter!110
This commit is contained in:
commit
69017b5180
@ -32,7 +32,7 @@ class SimpleDialogs {
|
|||||||
autocorrect: false,
|
autocorrect: false,
|
||||||
onSubmitted: (s) {
|
onSubmitted: (s) {
|
||||||
input = s;
|
input = s;
|
||||||
Navigator.of(context).pop();
|
Navigator.of(c).pop();
|
||||||
},
|
},
|
||||||
minLines: multiLine ? 3 : 1,
|
minLines: multiLine ? 3 : 1,
|
||||||
maxLines: multiLine ? 3 : 1,
|
maxLines: multiLine ? 3 : 1,
|
||||||
@ -55,7 +55,7 @@ class SimpleDialogs {
|
|||||||
cancelText?.toUpperCase() ??
|
cancelText?.toUpperCase() ??
|
||||||
L10n.of(context).close.toUpperCase(),
|
L10n.of(context).close.toUpperCase(),
|
||||||
style: TextStyle(color: Colors.blueGrey)),
|
style: TextStyle(color: Colors.blueGrey)),
|
||||||
onPressed: () => Navigator.of(context).pop(),
|
onPressed: () => Navigator.of(c).pop(),
|
||||||
),
|
),
|
||||||
FlatButton(
|
FlatButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
@ -64,7 +64,7 @@ class SimpleDialogs {
|
|||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
input = controller.text;
|
input = controller.text;
|
||||||
Navigator.of(context).pop();
|
Navigator.of(c).pop();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@ -91,7 +91,7 @@ class SimpleDialogs {
|
|||||||
cancelText?.toUpperCase() ??
|
cancelText?.toUpperCase() ??
|
||||||
L10n.of(context).close.toUpperCase(),
|
L10n.of(context).close.toUpperCase(),
|
||||||
style: TextStyle(color: Colors.blueGrey)),
|
style: TextStyle(color: Colors.blueGrey)),
|
||||||
onPressed: () => Navigator.of(context).pop(),
|
onPressed: () => Navigator.of(c).pop(),
|
||||||
),
|
),
|
||||||
FlatButton(
|
FlatButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
@ -100,7 +100,7 @@ class SimpleDialogs {
|
|||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
confirmed = true;
|
confirmed = true;
|
||||||
Navigator.of(context).pop();
|
Navigator.of(c).pop();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@ -125,7 +125,7 @@ class SimpleDialogs {
|
|||||||
okText ?? L10n.of(context).ok.toUpperCase(),
|
okText ?? L10n.of(context).ok.toUpperCase(),
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(c).pop();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user