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 onCreate() async { _initRouter(); _initAPIRepository(); } Future onTerminate() async {} _initRouter() { router = new FluroRouter(); AppRoutes.configureRoutes(router); } _initAPIRepository() { APIProvider apiProvider = new APIProvider(server: "http://10.0.20.170:8484"); imaginiAPI = ImaginiAPIRepository(apiProvider); } }