Final commit.
This commit is contained in:
@ -3,6 +3,7 @@ import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:get_it/get_it.dart';
|
||||
import 'package:hl_lieferservice/bloc/app_bloc.dart';
|
||||
import 'package:hl_lieferservice/bloc/app_events.dart';
|
||||
import 'package:hl_lieferservice/data/cache/attachment_cache.dart';
|
||||
import 'package:hl_lieferservice/data/network/network_locator.dart';
|
||||
import 'package:hl_lieferservice/feature/settings/bloc/settings_bloc.dart';
|
||||
import 'package:hl_lieferservice/feature/settings/bloc/settings_event.dart';
|
||||
@ -17,6 +18,11 @@ void main() {
|
||||
// verfügbar ist.
|
||||
registerNetworking(locator: locator);
|
||||
|
||||
// Persistenter Vorschau-Cache für Attachment-Bilder. Über die gesamte
|
||||
// App-Lebensdauer stabil und zustandslos (das Verzeichnis löst er lazy
|
||||
// selbst auf), daher hier als Singleton.
|
||||
locator.registerSingleton<AttachmentCache>(AttachmentCache());
|
||||
|
||||
runApp(MultiBlocProvider(providers: [
|
||||
BlocProvider(create: (context) => AppBloc(),),
|
||||
BlocProvider(create: (context) => SettingsBloc())
|
||||
|
||||
Reference in New Issue
Block a user