diff --git a/flutter/lib/features/inventory/presentation/swipeable_inventory_tile.dart b/flutter/lib/features/inventory/presentation/swipeable_inventory_tile.dart index ab15f105..d9b80f85 100644 --- a/flutter/lib/features/inventory/presentation/swipeable_inventory_tile.dart +++ b/flutter/lib/features/inventory/presentation/swipeable_inventory_tile.dart @@ -309,8 +309,7 @@ class _TrailingActions extends ConsumerWidget { const _TrailingActions({required this.item}); @override - Widget build(BuildContext context) { - final ref = ref; + Widget build(BuildContext context, WidgetRef ref) { return Row( mainAxisSize: MainAxisSize.min, children: [ @@ -349,7 +348,7 @@ class _DeleteButton extends ConsumerWidget { const _DeleteButton({required this.item}); @override - Widget build(BuildContext context) { + Widget build(BuildContext context, WidgetRef ref) { return Tooltip( message: 'Ta bort', child: IconButton(