From c7483d4676b492294d3660dab45608367e7de7aa Mon Sep 17 00:00:00 2001 From: jantunesmessias Date: Fri, 14 Feb 2025 10:41:58 -0300 Subject: [PATCH] fix keyboard focus --- .../vehicles_on_the_property/vehicles_on_the_property.dart | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/pages/vehicles_on_the_property/vehicles_on_the_property.dart b/lib/pages/vehicles_on_the_property/vehicles_on_the_property.dart index 180c672b..edbd968b 100644 --- a/lib/pages/vehicles_on_the_property/vehicles_on_the_property.dart +++ b/lib/pages/vehicles_on_the_property/vehicles_on_the_property.dart @@ -121,12 +121,10 @@ class _VehiclePageState extends State if (_model.isEditing & isFirst) { _model.handleEditingChanged(false); - setState(() {}); } - // if (isFirst) FocusScope.of(context).unfocus(); if (isFirst) { - FocusScope.of(context).unfocus(); - // FocusScope.of(context).nextFocus(); + FocusScope.of(context).nextFocus(); + setState(() {}); } }