From 27639cb964e67fa2aea2d06b99c3f1e184ced527 Mon Sep 17 00:00:00 2001 From: yaso Date: Tue, 24 Feb 2026 11:05:24 +0200 Subject: [PATCH] add scroll bar to dropdown fields --- .../mih_package_components/mih_dropdwn_field.dart | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/mih_ui/lib/mih_package_components/mih_dropdwn_field.dart b/mih_ui/lib/mih_package_components/mih_dropdwn_field.dart index dd8d46ee..3ec6861f 100644 --- a/mih_ui/lib/mih_package_components/mih_dropdwn_field.dart +++ b/mih_ui/lib/mih_package_components/mih_dropdwn_field.dart @@ -103,6 +103,18 @@ class _MihDropdownFieldState extends State { Expanded( child: Theme( data: Theme.of(context).copyWith( + scrollbarTheme: ScrollbarThemeData( + thumbColor: WidgetStatePropertyAll( + MihColors.getPrimaryColor( + MzansiInnovationHub.of(context)! + .theme + .mode == + "Dark")), + thickness: const WidgetStatePropertyAll(6), + radius: const Radius.circular(10), + thumbVisibility: const WidgetStatePropertyAll( + true), // Always show when scrolling + ), textSelectionTheme: TextSelectionThemeData( cursorColor: MihColors.getPrimaryColor( MzansiInnovationHub.of(context)!.theme.mode ==