develop-unfocusTextField #56
@ -68,6 +68,9 @@ class _FeedbackDialogState extends State<FeedbackDialog> {
|
|||||||
),
|
),
|
||||||
minLines: 4,
|
minLines: 4,
|
||||||
maxLines: 7,
|
maxLines: 7,
|
||||||
|
onTapOutside: (PointerDownEvent event) {
|
||||||
|
FocusScope.of(context).requestFocus(FocusNode());
|
||||||
Pupsi marked this conversation as resolved
Outdated
|
|||||||
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 10),
|
||||||
|
@ -67,6 +67,9 @@ class _AddCustomTimetableEventDialogState extends State<CustomTimetableEventEdit
|
|||||||
labelText: 'Terminname',
|
labelText: 'Terminname',
|
||||||
border: OutlineInputBorder()
|
border: OutlineInputBorder()
|
||||||
),
|
),
|
||||||
|
onTapOutside: (PointerDownEvent event) {
|
||||||
|
FocusScope.of(context).requestFocus(FocusNode());
|
||||||
Pupsi marked this conversation as resolved
Outdated
MineTec
commented
. .
|
|||||||
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
@ -78,6 +81,9 @@ class _AddCustomTimetableEventDialogState extends State<CustomTimetableEventEdit
|
|||||||
labelText: 'Beschreibung',
|
labelText: 'Beschreibung',
|
||||||
border: OutlineInputBorder()
|
border: OutlineInputBorder()
|
||||||
),
|
),
|
||||||
|
onTapOutside: (PointerDownEvent event) {
|
||||||
|
FocusScope.of(context).requestFocus(FocusNode());
|
||||||
Pupsi marked this conversation as resolved
Outdated
MineTec
commented
. .
|
|||||||
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const Divider(),
|
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