From 0394922dfcc486887c021c32c0fe2020da21bfe0 Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Wed, 1 Sep 2021 15:45:56 +0200 Subject: [PATCH] Prevent keyboard from appearing when selecting a date in the gallery --- lib/widgets/gallery/forms.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/widgets/gallery/forms.dart b/lib/widgets/gallery/forms.dart index 2e7fcbe9..a8159262 100644 --- a/lib/widgets/gallery/forms.dart +++ b/lib/widgets/gallery/forms.dart @@ -133,7 +133,11 @@ class _ImageFormState extends State { ), TextFormField( key: Key('field-date'), - decoration: InputDecoration(labelText: AppLocalizations.of(context).date), + decoration: InputDecoration( + labelText: AppLocalizations.of(context).date, + suffixIcon: Icon(Icons.calendar_today_outlined), + ), + readOnly: true, // Stop keyboard from appearing controller: dateController, onTap: () async { // Stop keyboard from appearing