mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-04-19 21:39:16 +00:00
Changed options menu
This commit is contained in:
parent
5fdeaa80b7
commit
a8d0bd95a6
1 changed files with 11 additions and 12 deletions
|
@ -76,6 +76,7 @@ class _OptionsModal extends StatelessWidget {
|
|||
Widget build(BuildContext context) {
|
||||
return AlertDialog(
|
||||
contentPadding: const EdgeInsets.symmetric(vertical: 16),
|
||||
scrollable: true,
|
||||
title: Column(
|
||||
children: [
|
||||
Icon(
|
||||
|
@ -94,19 +95,17 @@ class _OptionsModal extends StatelessWidget {
|
|||
),
|
||||
content: ConstrainedBox(
|
||||
constraints: const BoxConstraints(
|
||||
maxWidth: 400
|
||||
maxWidth: 500
|
||||
),
|
||||
child: SingleChildScrollView(
|
||||
child: Wrap(
|
||||
children: options(value).map((opt) => CustomListTileDialog(
|
||||
title: opt.title,
|
||||
icon: opt.icon,
|
||||
onTap: () {
|
||||
Navigator.pop(context);
|
||||
opt.action();
|
||||
},
|
||||
)).toList()
|
||||
),
|
||||
child: Column(
|
||||
children: options(value).map((opt) => CustomListTileDialog(
|
||||
title: opt.title,
|
||||
icon: opt.icon,
|
||||
onTap: () {
|
||||
Navigator.pop(context);
|
||||
opt.action();
|
||||
},
|
||||
)).toList()
|
||||
),
|
||||
),
|
||||
actions: [
|
||||
|
|
Loading…
Add table
Reference in a new issue