SharedMapWidget és térkép nézet refraktorálása
This commit is contained in:
@@ -11,7 +11,11 @@ class ShellBinding extends Bindings {
|
||||
// TODO: implement dependencies
|
||||
Get.put(ShellController());
|
||||
Get.put(HomeViewController());
|
||||
Get.put(MapViewController());
|
||||
Get.put(MapSurveyController());
|
||||
// Get.put(MapViewController());
|
||||
// Get.put(MapSurveyController());
|
||||
Get.lazyPut<MapSurveyController>(
|
||||
() => MapSurveyController(),
|
||||
fenix: true,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:terepi_seged/pages/home/presentation/views/home_view.dart';
|
||||
import 'package:terepi_seged/pages/map_survey/presentations/controllers/map_survey_controller.dart';
|
||||
import 'package:terepi_seged/services/ntrip_service.dart';
|
||||
import 'package:terepi_seged/widgets/gnss_status_chip.dart';
|
||||
|
||||
import '../../../../widgets/app_drawer.dart';
|
||||
@@ -30,12 +31,11 @@ class ShellView extends GetView<ShellController> {
|
||||
const SizedBox(width: 6),
|
||||
Obx(() => controller.currentIndex.value == 1
|
||||
? NtripStatusChip(
|
||||
isConnected: MapSurveyController.to.ntripIsConnected,
|
||||
isConnected: NtripService.to.isConnected,
|
||||
onToggle: () {
|
||||
final c = MapSurveyController.to;
|
||||
c.ntripIsConnected.value
|
||||
? c.disconnectFromNtripServer()
|
||||
: c.connectToNtripServer();
|
||||
NtripService.to.isConnected.value
|
||||
? NtripService.to.disconnect()
|
||||
: NtripService.to.connect();
|
||||
},
|
||||
)
|
||||
: const SizedBox.shrink())
|
||||
|
||||
Reference in New Issue
Block a user