mirror of
https://github.com/openfoodfacts/smooth-app.git
synced 2025-08-26 11:16:45 +08:00
fix: Product remove cross is too small (#1718)
This commit is contained in:
@ -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;
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user