From 29b6b351c04847e19bb0c2e33f06ba595afbffaf Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Sat, 4 May 2024 20:18:18 +0200 Subject: [PATCH] typo --- .../exposure_pairs_list/widget_list_exposure_pairs.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/screens/metering/components/shared/exposure_pairs_list/widget_list_exposure_pairs.dart b/lib/screens/metering/components/shared/exposure_pairs_list/widget_list_exposure_pairs.dart index a2213b5..2f2188d 100644 --- a/lib/screens/metering/components/shared/exposure_pairs_list/widget_list_exposure_pairs.dart +++ b/lib/screens/metering/components/shared/exposure_pairs_list/widget_list_exposure_pairs.dart @@ -5,6 +5,7 @@ import 'package:lightmeter/providers/films_provider.dart'; import 'package:lightmeter/res/dimens.dart'; import 'package:lightmeter/screens/metering/components/shared/exposure_pairs_list/components/exposure_pairs_list_item/widget_item_list_exposure_pairs.dart'; import 'package:lightmeter/screens/shared/icon_placeholder/widget_icon_placeholder.dart'; +import 'package:lightmeter/utils/context_utils.dart'; class ExposurePairsList extends StatelessWidget { final List exposurePairs; @@ -38,9 +39,7 @@ class ExposurePairsList extends StatelessWidget { alignment: Alignment.center, children: [ GestureDetector( - onTap: () { - onExposurePairTap(exposurePair); - }, + onTap: context.isPro ? () => onExposurePairTap(exposurePair) : null, child: Row( key: ValueKey(index), mainAxisAlignment: MainAxisAlignment.center,