~repos /only-bible-app
git clone https://pyrossh.dev/repos/only-bible-app.git
The only bible app you will ever need. No ads. No in-app purchases. No distractions.
129f4987
—
pyrossh 2 years ago
fix dialog
bible_app/lib/utils/dialog.dart
CHANGED
|
@@ -31,8 +31,8 @@ showAlert(BuildContext context, String title, String message) {
|
|
|
31
31
|
context: context,
|
|
32
32
|
builder: (_) {
|
|
33
33
|
return AlertDialog(
|
|
34
|
-
title: Text(title
|
|
34
|
+
title: Text(title),
|
|
35
|
-
content: Text(message
|
|
35
|
+
content: Text(message),
|
|
36
36
|
actionsAlignment: MainAxisAlignment.center,
|
|
37
37
|
actionsOverflowButtonSpacing: 8.0,
|
|
38
38
|
actions: <Widget>[
|
|
@@ -50,8 +50,29 @@ showAlert(BuildContext context, String title, String message) {
|
|
|
50
50
|
|
|
51
51
|
showError(BuildContext context, String message) {
|
|
52
52
|
showAlert(context, "Error", message);
|
|
53
|
+
// return BackdropFilter(
|
|
54
|
+
// filter: ImageFilter.blur(sigmaX: 6, sigmaY: 6),
|
|
55
|
+
// child: AlertDialog(
|
|
56
|
+
// title: new Text(title,style: textStyle,),
|
|
57
|
+
// content: new Text(content, style: textStyle,),
|
|
58
|
+
// actions: <Widget>[
|
|
59
|
+
// new FlatButton(
|
|
60
|
+
// child: new Text("Continue"),
|
|
61
|
+
// onPressed: () {
|
|
62
|
+
// continueCallBack();
|
|
63
|
+
// },
|
|
64
|
+
// ),
|
|
65
|
+
// new FlatButton(
|
|
66
|
+
// child: Text("Cancel"),
|
|
67
|
+
// onPressed: () {
|
|
68
|
+
// Navigator.of(context).pop();
|
|
69
|
+
// },
|
|
70
|
+
// ),
|
|
71
|
+
// ],
|
|
72
|
+
// ));
|
|
53
73
|
}
|
|
54
74
|
|
|
75
|
+
|
|
55
76
|
class NoPageTransition extends CustomTransitionPage {
|
|
56
77
|
NoPageTransition({required super.child})
|
|
57
78
|
: super(
|