update for Getx Error
This commit is contained in:
@ -148,9 +148,9 @@ class DestinationController extends GetxController {
|
||||
if (defaultTargetPlatform == TargetPlatform.android) {
|
||||
locationSettings = AndroidSettings(
|
||||
accuracy: LocationAccuracy.high,
|
||||
distanceFilter: 30,
|
||||
distanceFilter: 00,
|
||||
forceLocationManager: true,
|
||||
intervalDuration: const Duration(seconds: 10),
|
||||
intervalDuration: const Duration(seconds: 1),
|
||||
//(Optional) Set foreground notification config to keep the app alive
|
||||
//when going to the background
|
||||
foregroundNotificationConfig: const ForegroundNotificationConfig(
|
||||
|
||||
@ -87,10 +87,10 @@ class _DestinationPageState extends State<DestinationPage> {
|
||||
),
|
||||
floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
|
||||
appBar:AppBar(
|
||||
automaticallyImplyLeading: false,
|
||||
automaticallyImplyLeading: true,
|
||||
title: Text("app_title".tr),
|
||||
actions: [
|
||||
Obx(() =>
|
||||
//Obx(() =>
|
||||
ToggleButtons(
|
||||
disabledColor: Colors.grey.shade200,
|
||||
selectedColor: Colors.red,
|
||||
@ -104,7 +104,7 @@ class _DestinationPageState extends State<DestinationPage> {
|
||||
},
|
||||
isSelected: destinationController.isSelected,
|
||||
),
|
||||
),
|
||||
//),
|
||||
// IconButton(onPressed: (){
|
||||
// showCurrentPosition();
|
||||
// },
|
||||
|
||||
Reference in New Issue
Block a user