This repository has been archived on 2023-11-13. You can view files and clone it, but cannot push or open issues or pull requests.
imagini/web_native/lib/core/ImaginiApplication.dart

28 lines
695 B
Dart
Raw Normal View History

import 'package:fluro/fluro.dart';
import 'package:imagini/core/AppRoutes.dart';
import 'package:imagini/api/APIProvider.dart';
import 'package:imagini/api/ImaginiAPIRepository.dart';
class ImaginiApplication {
FluroRouter router;
ImaginiAPIRepository imaginiAPI;
Future<void> onCreate() async {
_initRouter();
_initAPIRepository();
}
Future<void> onTerminate() async {}
_initRouter() {
router = new FluroRouter();
AppRoutes.configureRoutes(router);
}
_initAPIRepository() {
APIProvider apiProvider = new APIProvider(server: "http://10.0.20.170:8484");
imaginiAPI = ImaginiAPIRepository(apiProvider);
}
}