mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-04-21 22:39:11 +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) {
|
Widget build(BuildContext context) {
|
||||||
return AlertDialog(
|
return AlertDialog(
|
||||||
contentPadding: const EdgeInsets.symmetric(vertical: 16),
|
contentPadding: const EdgeInsets.symmetric(vertical: 16),
|
||||||
|
scrollable: true,
|
||||||
title: Column(
|
title: Column(
|
||||||
children: [
|
children: [
|
||||||
Icon(
|
Icon(
|
||||||
|
@ -94,19 +95,17 @@ class _OptionsModal extends StatelessWidget {
|
||||||
),
|
),
|
||||||
content: ConstrainedBox(
|
content: ConstrainedBox(
|
||||||
constraints: const BoxConstraints(
|
constraints: const BoxConstraints(
|
||||||
maxWidth: 400
|
maxWidth: 500
|
||||||
),
|
),
|
||||||
child: SingleChildScrollView(
|
child: Column(
|
||||||
child: Wrap(
|
children: options(value).map((opt) => CustomListTileDialog(
|
||||||
children: options(value).map((opt) => CustomListTileDialog(
|
title: opt.title,
|
||||||
title: opt.title,
|
icon: opt.icon,
|
||||||
icon: opt.icon,
|
onTap: () {
|
||||||
onTap: () {
|
Navigator.pop(context);
|
||||||
Navigator.pop(context);
|
opt.action();
|
||||||
opt.action();
|
},
|
||||||
},
|
)).toList()
|
||||||
)).toList()
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
actions: [
|
actions: [
|
||||||
|
|
Loading…
Add table
Reference in a new issue