~repos /only-bible-app

#kotlin#android#ios

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.


50d76460 pyrossh

2 years ago
improve sidebar
integration_test/home_screen_test.dart CHANGED
@@ -1,14 +1,24 @@
1
+ import 'package:flutter/cupertino.dart';
2
+ import 'package:flutter_native_splash/flutter_native_splash.dart';
3
+ import 'package:flutter_persistent_value_notifier/flutter_persistent_value_notifier.dart';
1
4
  import 'package:flutter_test/flutter_test.dart';
2
5
  import 'package:integration_test/integration_test.dart';
6
+ import 'package:only_bible_app/app.dart';
7
+ import 'package:only_bible_app/state.dart';
3
8
 
4
9
  void main() {
5
10
  IntegrationTestWidgetsFlutterBinding.ensureInitialized();
6
11
 
7
12
  group('Home screen', () {
8
13
  testWidgets('should render', (tester) async {
14
+ WidgetsBinding widgetsBinding = WidgetsFlutterBinding.ensureInitialized();
15
+ FlutterNativeSplash.preserve(widgetsBinding: widgetsBinding);
16
+ await initPersistentValueNotifier();
9
- await main_132();
17
+ await loadBible();
18
+ await updateStatusBar();
10
19
  await tester.pumpWidget(const App());
11
20
  await tester.pumpAndSettle();
21
+ FlutterNativeSplash.remove();
12
22
  expect(find.text('Genesis 1'), findsOneWidget);
13
23
  // // Finds the floating action button to tap on.
14
24
  // final Finder fab = find.byTooltip('Increment');
lib/theme.dart CHANGED
@@ -56,6 +56,9 @@ final lightTheme = ThemeData(
56
56
  fontSize: 38,
57
57
  fontWeight: FontWeight.w700,
58
58
  color: Color(0xFFFFB341),
59
+ shadows: [
60
+ Shadow(color: Colors.black, offset: Offset(0, 1), blurRadius: 3.0),
61
+ ],
59
62
  ),
60
63
  headlineMedium: TextStyle(
61
64
  color: Color(0xFF010101),
lib/widgets/sidebar.dart CHANGED
@@ -28,23 +28,32 @@ class Sidebar extends StatelessWidget {
28
28
  width: 250,
29
29
  height: height,
30
30
  child: Container(
31
- margin: const EdgeInsets.only(bottom: 50, right: 50),
31
+ decoration: const BoxDecoration(
32
- child: Column(
32
+ border: Border(
33
- mainAxisAlignment: MainAxisAlignment.center,
33
+ right: BorderSide(
34
- crossAxisAlignment: CrossAxisAlignment.end,
34
+ color: Colors.black,
35
- children: [
35
+ width: 1.5,
36
- Flexible(
36
+ ),
37
- child: Text("ONLY", style: Theme.of(context).textTheme.headlineLarge),
38
37
  ),
38
+ ),
39
+ child: Padding(
40
+ padding: const EdgeInsets.only(bottom: 50, right: 50),
41
+ child: Column(
42
+ mainAxisAlignment: MainAxisAlignment.center,
43
+ crossAxisAlignment: CrossAxisAlignment.end,
44
+ children: [
39
- Flexible(
45
+ Flexible(
46
+ child: Text("ONLY", style: Theme.of(context).textTheme.headlineLarge),
47
+ ),
48
+ Flexible(
40
- child: Text("BIBLE", style: Theme.of(context).textTheme.headlineLarge),
49
+ child: Text("BIBLE", style: Theme.of(context).textTheme.headlineLarge),
50
+ ),
51
+ Flexible(
52
+ child: Text("APP", style: Theme.of(context).textTheme.headlineLarge),
53
+ ),
54
+ ],
41
55
  ),
42
- Flexible(
43
- child: Text("APP", style: Theme.of(context).textTheme.headlineLarge),
44
- ),
56
+ )),
45
- ],
46
- ),
47
- ),
48
57
  ),
49
58
  ],
50
59
  ),