add scroll bar to dropdown fields
This commit is contained in:
parent
1143d11054
commit
27639cb964
1 changed files with 12 additions and 0 deletions
|
|
@ -103,6 +103,18 @@ class _MihDropdownFieldState extends State<MihDropdownField> {
|
|||
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 ==
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue