~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.
c5640e8d
—
pyrossh 2 years ago
Improve scroll
lib/screens/bible_select_screen.dart
CHANGED
|
@@ -14,8 +14,7 @@ class BibleSelectScreen extends StatelessWidget {
|
|
|
14
14
|
final model = AppModel.of(context);
|
|
15
15
|
return ScaffoldMenu(
|
|
16
16
|
child: CustomScrollView(
|
|
17
|
-
// scrollBehavior: CupertinoScrollBehavior(),
|
|
18
|
-
|
|
17
|
+
physics: const BouncingScrollPhysics(),
|
|
19
18
|
slivers: [
|
|
20
19
|
const SliverHeading(title: "Bibles", showClose: true),
|
|
21
20
|
SliverTileGrid(
|
lib/screens/book_select_screen.dart
CHANGED
|
@@ -28,6 +28,7 @@ class BookSelectScreen extends StatelessWidget {
|
|
|
28
28
|
Widget build(BuildContext context) {
|
|
29
29
|
return ScaffoldMenu(
|
|
30
30
|
child: CustomScrollView(
|
|
31
|
+
physics: const BouncingScrollPhysics(),
|
|
31
32
|
slivers: [
|
|
32
33
|
const SliverHeading(title: "Old Testament", showClose: true),
|
|
33
34
|
SliverTileGrid(
|
lib/screens/chapter_select_screen.dart
CHANGED
|
@@ -24,6 +24,7 @@ class ChapterSelectScreen extends StatelessWidget {
|
|
|
24
24
|
Widget build(BuildContext context) {
|
|
25
25
|
return ScaffoldMenu(
|
|
26
26
|
child: CustomScrollView(
|
|
27
|
+
physics: const BouncingScrollPhysics(),
|
|
27
28
|
slivers: [
|
|
28
29
|
SliverHeading(title: book.name, showClose: true),
|
|
29
30
|
SliverTileGrid(
|
lib/screens/chapter_view_screen.dart
CHANGED
|
@@ -62,10 +62,6 @@ class ChapterViewScreen extends StatelessWidget {
|
|
|
62
62
|
Flexible(
|
|
63
63
|
child: VerseList(),
|
|
64
64
|
),
|
|
65
|
-
// TODO: add padding only if bottom sheet is shown
|
|
66
|
-
// Padding(
|
|
67
|
-
// padding: EdgeInsets.only(bottom: 40),
|
|
68
|
-
// )
|
|
69
65
|
],
|
|
70
66
|
),
|
|
71
67
|
),
|
lib/widgets/verse_list.dart
CHANGED
|
@@ -12,11 +12,12 @@ class VerseList extends StatelessWidget {
|
|
|
12
12
|
final verses = selectedBible.books[model.book].chapters[model.chapter].verses;
|
|
13
13
|
return SelectionArea(
|
|
14
14
|
child: ListView.builder(
|
|
15
|
+
physics: const BouncingScrollPhysics(),
|
|
15
16
|
shrinkWrap: false,
|
|
16
17
|
padding: const EdgeInsets.only(
|
|
17
18
|
left: 20,
|
|
18
19
|
right: 20,
|
|
19
|
-
bottom:
|
|
20
|
+
bottom: 55, // TODO: maybe make this 55 only when actions bar is show else 20
|
|
20
21
|
),
|
|
21
22
|
itemCount: verses.length,
|
|
22
23
|
itemBuilder: (BuildContext context, int index) {
|