mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
Prevent keyboard from appearing when selecting a date in the gallery
This commit is contained in:
@@ -133,7 +133,11 @@ class _ImageFormState extends State<ImageForm> {
|
||||
),
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user