SharedMapWidget és térkép nézet refraktorálása

This commit is contained in:
2026-05-16 14:47:34 +02:00
parent f2457817b2
commit d50a324e44
11 changed files with 1167 additions and 1050 deletions
+6 -2
View File
@@ -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())