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

@ -1,3 +1,7 @@
##3.0.2
* Adding click pointer for desktop and web
##3.0.1
* Fixing [issue #29](https://github.com/GaspardMerten/date_field/issues/29) -> adding 24h format support for material time picker dialog

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),
),
);
}

View file

@ -1,6 +1,6 @@
name: date_field
description: A widget in the form of a field that lets people choose a date, a time or both.
version: 3.0.1
version: 3.0.2
homepage: 'https://github.com/GaspardMerten/date_field'
environment: