refactor(inventory): update build methods to include WidgetRef for improved state management
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user