mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-14 22:12:53 +00:00
Added scrollbar desktop management modal
This commit is contained in:
parent
639f583046
commit
6f3ba647f4
1 changed files with 51 additions and 37 deletions
|
@ -31,6 +31,8 @@ class _ManagementModalState extends State<ManagementModal> with SingleTickerProv
|
||||||
late Animation<double> animation;
|
late Animation<double> animation;
|
||||||
final ExpandableController expandableController = ExpandableController();
|
final ExpandableController expandableController = ExpandableController();
|
||||||
|
|
||||||
|
final _chipsScrollController = ScrollController();
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
expandableController.addListener(() async {
|
expandableController.addListener(() async {
|
||||||
|
@ -155,9 +157,19 @@ class _ManagementModalState extends State<ManagementModal> with SingleTickerProv
|
||||||
|
|
||||||
Widget bottomRow() {
|
Widget bottomRow() {
|
||||||
return Container(
|
return Container(
|
||||||
height: 40,
|
height: Platform.isMacOS || Platform.isLinux || Platform.isWindows ? 50 : 40,
|
||||||
margin: const EdgeInsets.only(top: 8),
|
margin: const EdgeInsets.only(top: 8),
|
||||||
|
child: Scrollbar(
|
||||||
|
controller: _chipsScrollController,
|
||||||
|
thumbVisibility: Platform.isMacOS || Platform.isLinux || Platform.isWindows,
|
||||||
|
interactive: Platform.isMacOS || Platform.isLinux || Platform.isWindows,
|
||||||
|
thickness: Platform.isMacOS || Platform.isLinux || Platform.isWindows ? 8 : 0,
|
||||||
|
child: Padding(
|
||||||
|
padding: EdgeInsets.only(
|
||||||
|
bottom: Platform.isMacOS || Platform.isLinux || Platform.isWindows ? 16 : 0
|
||||||
|
),
|
||||||
child: ListView(
|
child: ListView(
|
||||||
|
controller: _chipsScrollController,
|
||||||
scrollDirection: Axis.horizontal,
|
scrollDirection: Axis.horizontal,
|
||||||
children: [
|
children: [
|
||||||
ActionChip(
|
ActionChip(
|
||||||
|
@ -196,6 +208,8 @@ class _ManagementModalState extends State<ManagementModal> with SingleTickerProv
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue