
Moves page files from verbose `*_page` named directories to simpler, more organized paths. This includes: - Renaming top-level pages (e.g., `home_page` to `home`, `login_page` to `login`). - Nesting related pages under common directories (e.g., `product_form_page` and `product_list_page` are now under `product/`). The update improves project organization, reduces verbosity in file paths, and enhances overall maintainability.
19 lines
586 B
Dart
19 lines
586 B
Dart
import 'package:barcode_scanner/backend/objectbox/objectbox_manager.dart';
|
|
import 'package:barcode_scanner/pages/login/login_page_model.dart';
|
|
import 'package:barcode_scanner/provider_container.dart';
|
|
import 'package:barcode_scanner/themes/app_theme.dart';
|
|
|
|
import 'package:flutter/foundation.dart';
|
|
|
|
class InitializerService {
|
|
static Future init() async {
|
|
await ObjectboxManager.init();
|
|
await AppTheme.initialize();
|
|
await providerContainer
|
|
.read(loginPageModelProvider.notifier)
|
|
.checkHasUserConnected();
|
|
|
|
debugPrint('All services started...');
|
|
}
|
|
}
|