mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-06-07 15:17:45 +00:00
Icon changes and other improvements
This commit is contained in:
parent
0e4f4c8eff
commit
ea8b35a0a2
6 changed files with 54 additions and 62 deletions
|
@ -8,9 +8,9 @@ class OptionsModal extends StatelessWidget {
|
|||
final List<MenuOption> options;
|
||||
|
||||
const OptionsModal({
|
||||
Key? key,
|
||||
super.key,
|
||||
required this.options,
|
||||
}) : super(key: key);
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -32,16 +32,22 @@ class OptionsModal extends StatelessWidget {
|
|||
)
|
||||
],
|
||||
),
|
||||
content: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: options.map((opt) => CustomListTileDialog(
|
||||
title: opt.title,
|
||||
icon: opt.icon,
|
||||
onTap: () {
|
||||
Navigator.pop(context);
|
||||
opt.action();
|
||||
},
|
||||
)).toList()
|
||||
content: ConstrainedBox(
|
||||
constraints: const BoxConstraints(
|
||||
maxWidth: 400
|
||||
),
|
||||
child: SingleChildScrollView(
|
||||
child: Wrap(
|
||||
children: options.map((opt) => CustomListTileDialog(
|
||||
title: opt.title,
|
||||
icon: opt.icon,
|
||||
onTap: () {
|
||||
Navigator.pop(context);
|
||||
opt.action();
|
||||
},
|
||||
)).toList()
|
||||
),
|
||||
),
|
||||
),
|
||||
actions: [
|
||||
Row(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue