fix: Product remove cross is too small (#1718)

This commit is contained in:
Abhishek Bhatt
2022-04-30 21:15:46 +05:30
committed by GitHub
parent 9653f17de1
commit 93f790c488
2 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,7 @@ import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:openfoodfacts/model/Product.dart';
import 'package:provider/provider.dart';
import 'package:smooth_app/data_models/continuous_scan_model.dart';
import 'package:smooth_app/generic_lib/design_constants.dart';
import 'package:smooth_app/helpers/extension_on_text_helper.dart';
import 'package:smooth_app/helpers/product_cards_helper.dart';
@ -32,7 +33,10 @@ class ProductTitleCard extends StatelessWidget {
subtitleText = '$brands${quantity == '' ? '' : ', $quantity'}';
trailingWidget = InkWell(
onTap: () async => model.removeBarcode(product.barcode!),
child: const Icon(Icons.clear_rounded),
child: const Icon(
Icons.clear_rounded,
size: MINIMUM_TOUCH_SIZE,
),
);
} else {
subtitleText = brands;

View File

@ -7,6 +7,7 @@ const double SMALL_SPACE = 8.0;
const double MEDIUM_SPACE = 12.0;
const double LARGE_SPACE = 16.0;
const double VERY_LARGE_SPACE = 20.0;
const double MINIMUM_TOUCH_SIZE = 48.0;
/// Background, e.g SmoothCard
const Radius ROUNDED_RADIUS = Radius.circular(20.0);