Adding click pointer for desktop and web

This commit is contained in:
Gaspard Merten 2022-11-09 12:46:06 +01:00
parent 546db9006a
commit 4c4a08a5b3
3 changed files with 15 additions and 8 deletions

View file

@ -333,14 +333,17 @@ class _InputDropdown extends StatelessWidget {
suffixIcon: Icon(Icons.arrow_drop_down),
);
return GestureDetector(
onTap: onPressed,
child: InputDecorator(
decoration: effectiveDecoration.applyDefaults(
Theme.of(context).inputDecorationTheme,
return MouseRegion(
cursor: SystemMouseCursors.click,
child: GestureDetector(
onTap: onPressed,
child: InputDecorator(
decoration: effectiveDecoration.applyDefaults(
Theme.of(context).inputDecorationTheme,
),
isEmpty: isEmpty,
child: text == null ? null : Text(text!, style: textStyle),
),
isEmpty: isEmpty,
child: text == null ? null : Text(text!, style: textStyle),
),
);
}