Added scrollbar desktop management modal

This commit is contained in:
Juan Gilsanz Polo 2023-10-24 21:19:03 +02:00
parent 639f583046
commit 6f3ba647f4

View file

@ -31,6 +31,8 @@ class _ManagementModalState extends State<ManagementModal> with SingleTickerProv
late Animation<double> animation;
final ExpandableController expandableController = ExpandableController();
final _chipsScrollController = ScrollController();
@override
void initState() {
expandableController.addListener(() async {
@ -155,9 +157,19 @@ class _ManagementModalState extends State<ManagementModal> with SingleTickerProv
Widget bottomRow() {
return Container(
height: 40,
height: Platform.isMacOS || Platform.isLinux || Platform.isWindows ? 50 : 40,
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(
controller: _chipsScrollController,
scrollDirection: Axis.horizontal,
children: [
ActionChip(
@ -196,6 +208,8 @@ class _ManagementModalState extends State<ManagementModal> with SingleTickerProv
),
],
),
),
),
);
}