~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.
3f57e4ac
—
pyrossh 2 years ago
add menu
bible_app/lib/components/menu.dart
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import 'package:flutter/material.dart';
|
|
2
|
+
|
|
3
|
+
class Menu extends StatelessWidget {
|
|
4
|
+
const Menu({super.key});
|
|
5
|
+
|
|
6
|
+
@override
|
|
7
|
+
Widget build(BuildContext context) {
|
|
8
|
+
return PopupMenuButton(
|
|
9
|
+
icon: const Icon(Icons.more_horiz, size: 32),
|
|
10
|
+
offset: const Offset(0.0, 70),
|
|
11
|
+
shape: const RoundedRectangleBorder(
|
|
12
|
+
borderRadius: BorderRadius.only(
|
|
13
|
+
bottomLeft: Radius.circular(8.0),
|
|
14
|
+
bottomRight: Radius.circular(8.0),
|
|
15
|
+
topLeft: Radius.circular(8.0),
|
|
16
|
+
topRight: Radius.circular(8.0),
|
|
17
|
+
),
|
|
18
|
+
),
|
|
19
|
+
itemBuilder: (BuildContext context) => [
|
|
20
|
+
const PopupMenuItem(
|
|
21
|
+
value: 1,
|
|
22
|
+
child: Row(
|
|
23
|
+
children: [
|
|
24
|
+
Icon(Icons.add_circle, color: Colors.black, size: 32),
|
|
25
|
+
Text(" Font "),
|
|
26
|
+
Icon(Icons.remove_circle, color: Colors.black, size: 32),
|
|
27
|
+
],
|
|
28
|
+
),
|
|
29
|
+
),
|
|
30
|
+
],
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
}
|