refactor: cleanup unused imports and add const optimizations
This commit is contained in:
@@ -303,7 +303,7 @@ class MockTourRepository implements TourRepository {
|
||||
return Right(CounterOverview(
|
||||
tourId: tourId,
|
||||
pageId: pageId,
|
||||
groups: [],
|
||||
groups: const [],
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
@@ -151,7 +151,7 @@ class ScanBloc extends Bloc<ScanEvent, ScanState> {
|
||||
tour: currentTour,
|
||||
));
|
||||
} else {
|
||||
emit(ScanError(
|
||||
emit(const ScanError(
|
||||
message: 'Fehler: Ungültiger Barcode für Lager Beladung',
|
||||
));
|
||||
}
|
||||
@@ -835,7 +835,6 @@ class ScanBloc extends Bloc<ScanEvent, ScanState> {
|
||||
final result = await repository.createObject(
|
||||
type: event.type,
|
||||
code: event.barcode,
|
||||
isManual: true,
|
||||
);
|
||||
|
||||
result.fold(
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import '../../../domain/entities/tour.dart';
|
||||
import '../../../domain/entities/counter.dart';
|
||||
import '../../../core/constants/app_constants.dart';
|
||||
import '../../blocs/scan/scan_bloc.dart';
|
||||
import '../../widgets/counter_grid.dart';
|
||||
import '../../widgets/recent_scans_list.dart';
|
||||
import '../scan/scan_page.dart';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user