~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.
b38ae584
—
pyrossh 2 years ago
improve menu
- lib/models.dart +4 -0
- lib/widgets/menu.dart +7 -1
lib/models.dart
CHANGED
|
@@ -14,6 +14,10 @@ class Bible {
|
|
|
14
14
|
required this.books,
|
|
15
15
|
});
|
|
16
16
|
|
|
17
|
+
String shortName() {
|
|
18
|
+
return name.substring(0, 3).toUpperCase();
|
|
19
|
+
}
|
|
20
|
+
|
|
17
21
|
List<Book> getOldBooks() {
|
|
18
22
|
return books.where((it) => it.isOldTestament()).toList();
|
|
19
23
|
}
|
lib/widgets/menu.dart
CHANGED
|
@@ -43,7 +43,13 @@ class Menu extends StatelessWidget {
|
|
|
43
43
|
child: Container(
|
|
44
44
|
alignment: Alignment.center,
|
|
45
45
|
margin: const EdgeInsets.symmetric(vertical: 15),
|
|
46
|
+
child: Text(
|
|
47
|
+
model.bible.shortName(),
|
|
46
|
-
|
|
48
|
+
style: const TextStyle(
|
|
49
|
+
fontSize: 18,
|
|
50
|
+
fontWeight: FontWeight.bold,
|
|
51
|
+
),
|
|
52
|
+
),
|
|
47
53
|
),
|
|
48
54
|
),
|
|
49
55
|
PopupMenuItem(
|