diff --git a/CHANGELOG.md b/CHANGELOG.md index d56686a..92e11fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/lib/src/field.dart b/lib/src/field.dart index 9d9fc55..d9adfb8 100644 --- a/lib/src/field.dart +++ b/lib/src/field.dart @@ -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), ), ); } diff --git a/pubspec.yaml b/pubspec.yaml index 1fc091a..7a00e06 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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: