From 9ee7a69f5dfd89be7bbd4858215d97345b32fee5 Mon Sep 17 00:00:00 2001 From: torbenkeller Date: Thu, 17 Aug 2023 17:01:44 +0200 Subject: [PATCH] fixes #42 dense empty form field --- CHANGELOG.md | 4 ++++ lib/src/field.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 52b1571..32a5554 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 3.0.6 + +- Fixing issue #42 dense empty form field + # 3.0.5 - Bumping intl to 0.18.0 diff --git a/lib/src/field.dart b/lib/src/field.dart index fa65066..aa8c6b9 100644 --- a/lib/src/field.dart +++ b/lib/src/field.dart @@ -370,7 +370,7 @@ class _InputDropdownState extends State<_InputDropdown> { ), isEmpty: widget.isEmpty, child: widget.text == null - ? null + ? Text('', style: widget.textStyle) : Text(widget.text!, style: widget.textStyle), ), ), diff --git a/pubspec.yaml b/pubspec.yaml index e9065d0..540005e 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.5 +version: 3.0.6 homepage: 'https://github.com/GaspardMerten/date_field' environment: