develop-unfocusTextField #56
@ -68,6 +68,9 @@ class _FeedbackDialogState extends State<FeedbackDialog> {
|
||||
),
|
||||
minLines: 4,
|
||||
maxLines: 7,
|
||||
onTapOutside: (PointerDownEvent event) {
|
||||
FocusScope.of(context).requestFocus(FocusNode());
|
||||
Pupsi marked this conversation as resolved
Outdated
|
||||
},
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 10),
|
||||
|
@ -67,6 +67,9 @@ class _AddCustomTimetableEventDialogState extends State<CustomTimetableEventEdit
|
||||
labelText: 'Terminname',
|
||||
border: OutlineInputBorder()
|
||||
),
|
||||
onTapOutside: (PointerDownEvent event) {
|
||||
FocusScope.of(context).requestFocus(FocusNode());
|
||||
Pupsi marked this conversation as resolved
Outdated
MineTec
commented
. .
|
||||
},
|
||||
),
|
||||
),
|
||||
ListTile(
|
||||
@ -78,6 +81,9 @@ class _AddCustomTimetableEventDialogState extends State<CustomTimetableEventEdit
|
||||
labelText: 'Beschreibung',
|
||||
border: OutlineInputBorder()
|
||||
),
|
||||
onTapOutside: (PointerDownEvent event) {
|
||||
FocusScope.of(context).requestFocus(FocusNode());
|
||||
Pupsi marked this conversation as resolved
Outdated
MineTec
commented
. .
|
||||
},
|
||||
),
|
||||
),
|
||||
const Divider(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user
der Methodeninhalt sollte in eine eigene Klasse/Funktion ausgelagert werden
klassenname z.B. FocusBehavoiur
statische methode z.B. textFieldTapOutside
aufruf dann mit
onTapOutside:
FocusBehaviur.textFieldTapOutside
dann entsprechend alle vorkomnisse durch die methode ersetzen