28 lines
695 B
Dart
28 lines
695 B
Dart
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);
|
|
}
|
|
}
|