~repos /only-bible-app

#kotlin#android#ios

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.


lib/theme.dart CHANGED
@@ -33,11 +33,11 @@ const lightColorScheme = ColorScheme(
33
33
  errorContainer: Color(0xFFFFDAD6),
34
34
  onErrorContainer: Color(0xFF410002),
35
35
  surface: Color(0xFFFAF8FF),
36
- onSurface: Color(0xFF1A1B21),
36
+ onSurface: Color(0xFF000000),
37
37
  onSurfaceVariant: Color(0xFF45464F),
38
38
  outline: Color(0xFF757780),
39
39
  outlineVariant: Color(0xFFC5C6D0),
40
- shadow: Color(0xFF000000),
40
+ shadow: Color.fromARGB(255, 88, 85, 85),
41
41
  scrim: Color(0xFF000000),
42
42
  inverseSurface: Color(0xFF2F3036),
43
43
  onInverseSurface: Color(0xFFF1F0F7),
lib/widgets/book_select_sheet.dart CHANGED
@@ -20,7 +20,14 @@ class BookSelectSheet extends StatefulWidget {
20
20
  }
21
21
 
22
22
  class _BookSelectSheetState extends State<BookSelectSheet> {
23
- bool showOldTestament = true;
23
+ late bool showOldTestament;
24
+
25
+ @override
26
+ void initState() {
27
+ super.initState();
28
+ final currentBook = widget.parentContext.read().savedBook;
29
+ showOldTestament = currentBook < 39;
30
+ }
24
31
 
25
32
  @override
26
33
  Widget build(BuildContext context) {
@@ -40,11 +47,12 @@ class _BookSelectSheetState extends State<BookSelectSheet> {
40
47
  });
41
48
  },
42
49
  borderRadius: const BorderRadius.all(Radius.circular(12)),
43
- borderColor: colorScheme.outlineVariant,
50
+ borderColor: colorScheme.scrim,
44
- selectedBorderColor: colorScheme.primary,
51
+ selectedBorderColor: colorScheme.scrim,
45
52
  selectedColor: colorScheme.onPrimary,
46
53
  fillColor: colorScheme.primary,
47
- color: colorScheme.onSurfaceVariant,
54
+ color: colorScheme.onSurface,
55
+ textStyle: Theme.of(context).textTheme.labelLarge,
48
56
  constraints: const BoxConstraints(minHeight: 40, minWidth: 140),
49
57
  isSelected: [showOldTestament, !showOldTestament],
50
58
  children: [
lib/widgets/book_tile.dart CHANGED
@@ -11,11 +11,13 @@ class BookTile extends StatelessWidget {
11
11
  Widget build(BuildContext context) {
12
12
  final colorScheme = Theme.of(context).colorScheme;
13
13
  return Material(
14
+ elevation: 3,
14
15
  color: isSelected ? colorScheme.primaryContainer : colorScheme.surface,
16
+ shadowColor: colorScheme.scrim,
15
17
  shape: RoundedRectangleBorder(
16
18
  borderRadius: BorderRadius.circular(12),
17
19
  side: BorderSide(
18
- color: isSelected ? colorScheme.primary : colorScheme.outlineVariant,
20
+ color: isSelected ? colorScheme.primary : colorScheme.scrim,
19
21
  width: isSelected ? 2 : 1,
20
22
  ),
21
23
  ),
lib/widgets/settings_sheet.dart CHANGED
@@ -58,7 +58,7 @@ class SettingsSheet extends StatelessWidget {
58
58
  ),
59
59
  ),
60
60
  CustomSettingsTile(
61
- child: Container(
61
+ child: ColoredBox(
62
62
  color: darkMode ? const Color(0xFF1C1C1E) : Colors.white,
63
63
  child: Column(
64
64
  children: [