refactoring
This commit is contained in:
@ -5,13 +5,21 @@ import 'package:google_fonts/google_fonts.dart';
|
||||
import 'package:permission_handler/permission_handler.dart';
|
||||
import 'package:rogapp/pages/index/index_binding.dart';
|
||||
import 'package:rogapp/routes/app_pages.dart';
|
||||
import 'package:rogapp/services/location_service.dart';
|
||||
import 'package:rogapp/utils/string_values.dart';
|
||||
|
||||
void main() {
|
||||
//WidgetsFlutterBinding.ensureInitialized();
|
||||
initServices();
|
||||
runApp(MyApp());
|
||||
}
|
||||
|
||||
void initServices() async {
|
||||
print('starting services ...');
|
||||
await Get.putAsync(() => LocationService().init());
|
||||
print('All services started...');
|
||||
}
|
||||
|
||||
class MyApp extends StatelessWidget {
|
||||
const MyApp({Key? key}) : super(key: key);
|
||||
// This widget is the root of your application.
|
||||
|
||||
Reference in New Issue
Block a user