feat: clean up imports and fix minor formatting issues in various files
Test Suite / test (24.15.0) (push) Has been cancelled
Test Suite / test (24.15.0) (push) Has been cancelled
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
|
||||
import '../../features/auth/data/auth_providers.dart';
|
||||
import '../../features/recipes/data/recipes_grid_provider.dart';
|
||||
|
||||
@@ -35,8 +35,6 @@ class CategoryThenProductPicker {
|
||||
}
|
||||
return ids;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/// Öppnar ett bottenark med kategoriträdet. Klick på en lövnod (inga barn)
|
||||
/// öppnar direkt produktpickern för den kategorin.
|
||||
|
||||
@@ -105,8 +105,7 @@ class ProductPickerField extends StatelessWidget {
|
||||
onChanged?.call(null);
|
||||
return;
|
||||
}
|
||||
if (result is! int) return;
|
||||
onChanged?.call(result);
|
||||
onChanged?.call(result as int);
|
||||
}
|
||||
|
||||
/// Öppnar produktväljarens bottenark utan att binda den till en specifik widget-instans.
|
||||
|
||||
Reference in New Issue
Block a user