Skip to content

Commit

Permalink
Nutrition editor: tapping the title will force the focus on the TextF…
Browse files Browse the repository at this point in the history
…ield
  • Loading branch information
g123k committed Feb 2, 2025
1 parent 84f34ff commit 60414d5
Showing 1 changed file with 16 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,16 +186,22 @@ class _NutrientValueCell extends StatelessWidget {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Padding(
padding: const EdgeInsetsDirectional.only(
start: VERY_SMALL_SPACE,
bottom: VERY_SMALL_SPACE,
),
child: Text(
orderedNutrient.name!,
style: const TextStyle(
fontWeight: FontWeight.w600,
fontSize: 15.0,
GestureDetector(
onTap: () => focusNodes[orderedNutrient]?.requestFocus(),
child: SizedBox(
width: double.infinity,
child: Padding(
padding: const EdgeInsetsDirectional.only(
start: VERY_SMALL_SPACE,
bottom: VERY_SMALL_SPACE,
),
child: Text(
orderedNutrient.name!,
style: const TextStyle(
fontWeight: FontWeight.w600,
fontSize: 15.0,
),
),
),
),
),
Expand Down

0 comments on commit 60414d5

Please sign in to comment.