From cee1bb3f828ad90948ef0e368c8f8aad62182d01 Mon Sep 17 00:00:00 2001 From: Gaspard Merten Date: Sat, 23 Jan 2021 11:59:40 +0100 Subject: [PATCH] Removing unused variables, improving description --- CHANGELOG.md | 5 +++++ example/pubspec.lock | 2 +- lib/date_field.dart | 8 +------- pubspec.yaml | 4 ++-- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 385e212..104b285 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -82,3 +82,8 @@ Breaking change: ##1.0.4 * Fixing critical issue + +##1.0.5 + +* Removing unused variables +* Improving description diff --git a/example/pubspec.lock b/example/pubspec.lock index ea3b380..6430bb5 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -56,7 +56,7 @@ packages: path: ".." relative: true source: path - version: "0.3.3" + version: "1.0.4" fake_async: dependency: transitive description: diff --git a/lib/date_field.dart b/lib/date_field.dart index b1e2b02..a0ecd8b 100644 --- a/lib/date_field.dart +++ b/lib/date_field.dart @@ -301,15 +301,9 @@ class _InputDropdown extends StatelessWidget { @override Widget build(BuildContext context) { - BorderRadius inkwellBorderRadius; - - if (decoration?.border?.runtimeType == OutlineInputBorder) { - inkwellBorderRadius = BorderRadius.circular(8); - } - final InputDecoration effectiveDecoration = decoration ?? const InputDecoration( - suffixIcon: const Icon(Icons.arrow_drop_down), + suffixIcon: Icon(Icons.arrow_drop_down), ).applyDefaults(Theme.of(context).inputDecorationTheme); return GestureDetector( diff --git a/pubspec.yaml b/pubspec.yaml index 96a7047..09fb687 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 enter choose a date/time/date and time via a date/time picker dialog. You can specify a custom input decoration, a custom date display. Uses DateTime. -version: 1.0.4 +description: A widget in the form of a field that lets people choose a date, a time or both. +version: 1.0.5 homepage: 'https://github.com/GaspardMerten/date_field' environment: