~repos /only-bible-app
GIT_CONFIG_PARAMETERS="'http.version=HTTP/1.1'" git clone
https://git.pyrossh.dev/only-bible-app.git
Discussions:
https://groups.google.com/g/rust-embed-devs
The only bible app you will ever need. No ads. No in-app purchases. No distractions.
d15cb0df
—
pyrossh 1 month ago
rename
lib/main.dart
CHANGED
|
@@ -34,6 +34,25 @@ void updateStatusBar(bool v) {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
void main() async {
|
|
37
|
+
// FlutterError.onError = (errorDetails) {
|
|
38
|
+
// SchedulerBinding.instance.addPostFrameCallback((d) {
|
|
39
|
+
// showReportError(
|
|
40
|
+
// globalNavigatorKey.currentState!.context,
|
|
41
|
+
// errorDetails.exception.toString(),
|
|
42
|
+
// errorDetails.stack,
|
|
43
|
+
// );
|
|
44
|
+
// });
|
|
45
|
+
// };
|
|
46
|
+
// PlatformDispatcher.instance.onError = (error, stack) {
|
|
47
|
+
// Future.delayed(const Duration(seconds: 1), () {
|
|
48
|
+
// showReportError(
|
|
49
|
+
// globalNavigatorKey.currentState!.context,
|
|
50
|
+
// error.toString(),
|
|
51
|
+
// stack,
|
|
52
|
+
// );
|
|
53
|
+
// });
|
|
54
|
+
// return true;
|
|
55
|
+
// };
|
|
37
56
|
FlutterNativeSplash.preserve(
|
|
38
57
|
widgetsBinding: WidgetsFlutterBinding.ensureInitialized(),
|
|
39
58
|
);
|
lib/store/actions.dart
CHANGED
|
@@ -6,7 +6,7 @@ import "package:flutter/material.dart";
|
|
|
6
6
|
import "package:go_router/go_router.dart";
|
|
7
7
|
import "package:only_bible_app/dialog.dart";
|
|
8
8
|
import "package:only_bible_app/gen/bible.gen.dart";
|
|
9
|
-
import "package:only_bible_app/
|
|
9
|
+
import "package:only_bible_app/widgets/settings_sheet.dart";
|
|
10
10
|
import "package:only_bible_app/store/app_state.dart";
|
|
11
11
|
import "package:only_bible_app/store/buffer_audio_source.dart";
|
|
12
12
|
import "package:only_bible_app/utils.dart";
|
lib/{sheets → widgets}/actions_sheet.dart
RENAMED
|
@@ -5,10 +5,10 @@ import "package:only_bible_app/theme.dart";
|
|
|
5
5
|
import "package:only_bible_app/utils.dart";
|
|
6
6
|
import "package:only_bible_app/widgets/highlight_button.dart";
|
|
7
7
|
|
|
8
|
-
class
|
|
8
|
+
class MenuOverlay extends StatelessWidget {
|
|
9
9
|
final Bible bible;
|
|
10
10
|
|
|
11
|
-
const
|
|
11
|
+
const MenuOverlay({super.key, required this.bible});
|
|
12
12
|
|
|
13
13
|
@override
|
|
14
14
|
Widget build(BuildContext context) {
|
lib/{sheets → widgets}/settings_sheet.dart
RENAMED
|
File without changes
|
lib/widgets/verses_view.dart
CHANGED
|
@@ -2,7 +2,7 @@ import "package:flutter/material.dart";
|
|
|
2
2
|
import "package:flutter_swipe_detector/flutter_swipe_detector.dart";
|
|
3
3
|
import "package:just_audio/just_audio.dart";
|
|
4
4
|
import "package:only_bible_app/gen/bible.gen.dart";
|
|
5
|
-
import "package:only_bible_app/
|
|
5
|
+
import "package:only_bible_app/widgets/actions_sheet.dart";
|
|
6
6
|
import "package:only_bible_app/store/actions.dart";
|
|
7
7
|
import "package:only_bible_app/store/app_navigator.dart";
|
|
8
8
|
import "package:only_bible_app/utils.dart";
|
|
@@ -72,7 +72,7 @@ class VersesView extends StatelessWidget {
|
|
|
72
72
|
left: 20,
|
|
73
73
|
right: 20,
|
|
74
74
|
bottom: MediaQuery.of(context).padding.bottom + 40,
|
|
75
|
-
child: Center(child:
|
|
75
|
+
child: Center(child: MenuOverlay(bible: bible)),
|
|
76
76
|
),
|
|
77
77
|
],
|
|
78
78
|
);
|