some changes

This commit is contained in:
Kicap Karan
2022-11-22 00:32:11 +08:00
parent 94344db9eb
commit 23965005a3
8 changed files with 380 additions and 85 deletions

View File

@ -1,3 +1,4 @@
import 'package:background_location/background_location.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:logger/logger.dart';
@ -21,6 +22,7 @@ class _SplashScreenPageState extends State<SplashScreenPage> {
@override
void initState() {
super.initState();
getCurrentLocation();
initPlatformState();
// future 3 sec
Future.delayed(const Duration(seconds: 4), () async {
@ -36,6 +38,12 @@ class _SplashScreenPageState extends State<SplashScreenPage> {
});
}
void getCurrentLocation() {
// BackgroundLocation.getLocationUpdates((location) {
// dev.i('location: ${location.latitude}, ${location.longitude}');
// });
}
void goToLogin() {
Navigator.pushReplacementNamed(context, 'login');
}