~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.


368f1fa8 pyrossh

2 years ago
fix sheet padding
lib/providers/chapter_provider.dart CHANGED
@@ -1,5 +1,4 @@
1
1
  import "package:flutter/material.dart";
2
- import "package:only_bible_app/screens/chapter_view_screen.dart";
3
2
  import "package:only_bible_app/models.dart";
4
3
  import "package:provider/provider.dart";
5
4
  import "package:shared_preferences/shared_preferences.dart";
lib/widgets/actions_sheet.dart CHANGED
@@ -11,7 +11,8 @@ class ActionsSheet extends StatelessWidget {
11
11
  Widget build(BuildContext context) {
12
12
  final app = AppProvider.of(context);
13
13
  final isDesktop = isWide(context);
14
+ final bottom = isIOS() ? 20.0 : 0.0;
14
- final height = isDesktop || isIOS() ? 92.0 : 70.0;
15
+ final height = isIOS() ? 100.0 : 80.0;
15
16
  final iconColor = app.darkMode ? Colors.white.withOpacity(0.9) : Colors.black.withOpacity(0.9);
16
17
  final bodySmall = Theme.of(context).textTheme.bodySmall;
17
18
  final audioIcon = app.isPlaying ? Icons.pause_circle_outline : Icons.play_circle_outline;
@@ -20,12 +21,12 @@ class ActionsSheet extends StatelessWidget {
20
21
  return Container(
21
22
  height: height,
22
23
  color: Theme.of(context).colorScheme.background,
23
- padding: EdgeInsets.only(left: 20, right: 20, top: isDesktop ? 10 : 10, bottom: 20),
24
+ padding: EdgeInsets.only(left: 20, right: 20, top: isDesktop ? 10 : 10, bottom: bottom),
24
25
  child: Column(
25
26
  mainAxisAlignment: MainAxisAlignment.start,
26
27
  children: [
27
28
  Row(
28
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
29
+ mainAxisAlignment: MainAxisAlignment.spaceEvenly,
29
30
  children: [
30
31
  IconButtonText(
31
32
  leading: IconButton(
lib/widgets/highlight_sheet.dart CHANGED
@@ -8,8 +8,9 @@ class HighlightSheet extends StatelessWidget {
8
8
  @override
9
9
  Widget build(BuildContext context) {
10
10
  final isDesktop = isWide(context);
11
+ final bottom = isIOS() ? 20.0 : 0.0;
11
- final height = isDesktop || isIOS() ? 100.0 : 70.0;
12
+ final height = isIOS() ? 100.0 : 80.0;
12
- onHighlight(Color c) {
13
+ void onHighlight(Color c) {
13
14
  final verses = context.appEvent.selectedVerses;
14
15
  context.appEvent.setHighlight(context, verses, c);
15
16
  context.appEvent.closeActions(context);
@@ -18,9 +19,9 @@ class HighlightSheet extends StatelessWidget {
18
19
  return Container(
19
20
  height: height,
20
21
  color: Theme.of(context).colorScheme.background,
21
- padding: EdgeInsets.only(left: 20, right: 20, top: isDesktop ? 10 : 10, bottom: 30),
22
+ padding: EdgeInsets.only(left: 20, right: 20, top: isDesktop ? 10 : 10, bottom: bottom),
22
23
  child: Row(
23
- mainAxisAlignment: MainAxisAlignment.spaceAround,
24
+ mainAxisAlignment: MainAxisAlignment.spaceEvenly,
24
25
  children: [
25
26
  HighlightButton(
26
27
  color: const Color(0xFFDAEFFE),
@@ -38,10 +39,6 @@ class HighlightSheet extends StatelessWidget {
38
39
  color: const Color(0xFFE6FCC3),
39
40
  onColorSelected: onHighlight,
40
41
  ),
41
- HighlightButton(
42
- color: const Color(0xFFAACCAA),
43
- onColorSelected: onHighlight,
44
- ),
45
42
  ],
46
43
  ),
47
44
  );