~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.
6026f8d3
—
pyrossh 2 years ago
move routes
bible_app/lib/components/header.dart
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "dart:math";
|
|
2
2
|
import "package:flutter/material.dart";
|
|
3
3
|
import "package:just_audio/just_audio.dart";
|
|
4
|
-
import
|
|
4
|
+
import 'package:kannada_bible_app/routes.dart';
|
|
5
5
|
import "../state.dart";
|
|
6
6
|
import "../domain/kannada_gen.dart";
|
|
7
7
|
|
bible_app/lib/main.dart
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "package:flutter/material.dart";
|
|
2
2
|
import 'package:go_router/go_router.dart';
|
|
3
3
|
import "package:flutter_persistent_value_notifier/flutter_persistent_value_notifier.dart";
|
|
4
|
-
import
|
|
4
|
+
import 'routes.dart' as routes2;
|
|
5
5
|
import "components/sidebar.dart";
|
|
6
6
|
|
|
7
7
|
void main() async {
|
|
@@ -18,7 +18,7 @@ final _router = GoRouter(
|
|
|
18
18
|
routes: [
|
|
19
19
|
ShellRoute(
|
|
20
20
|
navigatorKey: _shellNavigatorKey,
|
|
21
|
-
routes: $appRoutes,
|
|
21
|
+
routes: routes2.$appRoutes,
|
|
22
22
|
builder: (context, state, child) {
|
|
23
23
|
return Scaffold(
|
|
24
24
|
backgroundColor: Colors.white,
|
bible_app/lib/{screens/home.dart → routes.dart}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "package:flutter/material.dart";
|
|
2
2
|
import 'package:go_router/go_router.dart';
|
|
3
|
-
import
|
|
3
|
+
import 'screens/book_selector.dart';
|
|
4
|
-
import
|
|
4
|
+
import 'components/header.dart';
|
|
5
|
-
import
|
|
5
|
+
import 'domain/kannada_gen.dart';
|
|
6
|
-
import
|
|
6
|
+
import 'components/verse.dart';
|
|
7
|
-
import
|
|
7
|
+
import 'state.dart';
|
|
8
8
|
|
|
9
|
-
part '
|
|
9
|
+
part 'routes.g.dart';
|
|
10
10
|
|
|
11
11
|
@TypedGoRoute<HomeScreenRoute>(
|
|
12
12
|
path: "/:book/:chapter",
|
|
@@ -68,7 +68,7 @@ class SelectScreenRoute extends GoRouteData {
|
|
|
68
68
|
Flexible(
|
|
69
69
|
child: Container(
|
|
70
70
|
margin: EdgeInsets.only(left: 40, top: 20, right: right),
|
|
71
|
-
child: const
|
|
71
|
+
child: const BookSelectorScreen(),
|
|
72
72
|
),
|
|
73
73
|
),
|
|
74
74
|
],
|
bible_app/lib/{screens/home.g.dart → routes.g.dart}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
2
2
|
|
|
3
|
-
part of '
|
|
3
|
+
part of 'routes.dart';
|
|
4
4
|
|
|
5
5
|
// **************************************************************************
|
|
6
6
|
// GoRouterGenerator
|
bible_app/lib/{components → screens}/book_selector.dart
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import 'dart:io' show Platform;
|
|
2
2
|
import "package:flutter/material.dart";
|
|
3
3
|
import "package:flutter_reactive_value/flutter_reactive_value.dart";
|
|
4
|
-
import
|
|
4
|
+
import 'package:kannada_bible_app/routes.dart';
|
|
5
|
-
import
|
|
5
|
+
import '../domain/book.dart';
|
|
6
|
-
import
|
|
6
|
+
import '../domain/kannada_gen.dart';
|
|
7
7
|
|
|
8
8
|
final tabBookIndex = ValueNotifier(0);
|
|
9
9
|
|
|
@@ -11,8 +11,8 @@ onTabBookChange(int i) {
|
|
|
11
11
|
tabBookIndex.value = i;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
class
|
|
14
|
+
class BookSelectorScreen extends StatelessWidget {
|
|
15
|
-
const
|
|
15
|
+
const BookSelectorScreen({super.key});
|
|
16
16
|
|
|
17
17
|
@override
|
|
18
18
|
Widget build(BuildContext context) {
|