~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.
725f5b48
—
pyrossh 2 years ago
fix menu
- README.md +1 -0
- assets/logo.vectornator +0 -0
- lib/theme.dart +2 -7
- lib/widgets/menu.dart +1 -1
- lib/widgets/sidebar.dart +5 -3
README.md
CHANGED
|
@@ -6,6 +6,7 @@ A new Flutter project.
|
|
|
6
6
|
|
|
7
7
|
```agsl
|
|
8
8
|
brew install fluttter
|
|
9
|
+
brew install cocoapods
|
|
9
10
|
```
|
|
10
11
|
|
|
11
12
|
## Lint
|
assets/logo.vectornator
CHANGED
|
Binary file
|
lib/theme.dart
CHANGED
|
@@ -15,9 +15,7 @@ final lightTheme = ThemeData(
|
|
|
15
15
|
popupMenuTheme: const PopupMenuThemeData(
|
|
16
16
|
enableFeedback: true,
|
|
17
17
|
elevation: 4,
|
|
18
|
-
// color: Colors.white,
|
|
19
|
-
// shadowColor: Colors.black,
|
|
20
|
-
|
|
18
|
+
surfaceTintColor: Colors.transparent,
|
|
21
19
|
),
|
|
22
20
|
colorScheme: const ColorScheme.light(
|
|
23
21
|
background: Colors.white,
|
|
@@ -88,10 +86,7 @@ final darkTheme = ThemeData(
|
|
|
88
86
|
hoverColor: const Color(0xAA5D4979),
|
|
89
87
|
dividerColor: Colors.white,
|
|
90
88
|
shadowColor: Colors.white,
|
|
91
|
-
|
|
89
|
+
popupMenuTheme: lightTheme.popupMenuTheme,
|
|
92
|
-
// color: Colors.black,
|
|
93
|
-
// surfaceTintColor: const Color(0xAA5D4979),
|
|
94
|
-
// ),
|
|
95
90
|
colorScheme: const ColorScheme.dark(
|
|
96
91
|
background: Color(0xFF1F1F22),
|
|
97
92
|
),
|
lib/widgets/menu.dart
CHANGED
|
@@ -10,7 +10,7 @@ class Menu extends StatelessWidget {
|
|
|
10
10
|
final moreIcon = isWide(context) ? Icons.more_vert : Icons.more_vert;
|
|
11
11
|
const spacing = 25.0;
|
|
12
12
|
return PopupMenuButton(
|
|
13
|
-
constraints: const BoxConstraints.tightFor(width:
|
|
13
|
+
constraints: const BoxConstraints.tightFor(width: 90),
|
|
14
14
|
icon: Icon(moreIcon, size: 28),
|
|
15
15
|
offset: const Offset(0.0, 60),
|
|
16
16
|
itemBuilder: (BuildContext itemContext) {
|
lib/widgets/sidebar.dart
CHANGED
|
@@ -23,7 +23,7 @@ class Sidebar extends StatelessWidget {
|
|
|
23
23
|
),
|
|
24
24
|
const Belt(top: 80),
|
|
25
25
|
Belt(top: height - 120),
|
|
26
|
-
const Bookmark(),
|
|
26
|
+
const Bookmark(left: 70),
|
|
27
27
|
SizedBox(
|
|
28
28
|
width: 250,
|
|
29
29
|
height: height,
|
|
@@ -95,12 +95,14 @@ class TrianglePainter extends CustomPainter {
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
class Bookmark extends StatelessWidget {
|
|
98
|
+
final double left;
|
|
99
|
+
|
|
98
|
-
const Bookmark({super.key});
|
|
100
|
+
const Bookmark({super.key, required this.left});
|
|
99
101
|
|
|
100
102
|
@override
|
|
101
103
|
Widget build(BuildContext context) {
|
|
102
104
|
return Positioned(
|
|
103
|
-
left:
|
|
105
|
+
left: left,
|
|
104
106
|
top: 0.0,
|
|
105
107
|
child: Column(
|
|
106
108
|
children: [
|