Új térkép widget, melyet több oldal is használ

This commit is contained in:
2026-05-12 00:14:11 +02:00
parent 7dd642b299
commit f2457817b2
11 changed files with 1718 additions and 434 deletions
@@ -1,6 +1,7 @@
import 'package:get/get.dart';
import 'package:terepi_seged/pages/home/presentation/controllers/home_controller.dart';
import 'package:terepi_seged/pages/map/presentation/controllers/map_controller.dart';
import 'package:terepi_seged/pages/map_survey/presentations/controllers/map_survey_controller.dart';
import '../presentations/controllers/shell_controller.dart';
@@ -11,5 +12,6 @@ class ShellBinding extends Bindings {
Get.put(ShellController());
Get.put(HomeViewController());
Get.put(MapViewController());
Get.put(MapSurveyController());
}
}
@@ -1,9 +1,11 @@
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/widgets/gnss_status_chip.dart';
import '../../../../widgets/app_drawer.dart';
import '../../../map_survey/presentations/views/mapsurvey_view.dart';
import '../../../map_survey/presentations/views/map_survey_view.dart';
import '../controllers/shell_controller.dart';
class ShellView extends GetView<ShellController> {
@@ -24,8 +26,19 @@ class ShellView extends GetView<ShellController> {
// Cím reaktívan frissül tab váltáskor
title: Obx(() => Text(controller.currentTitle)),
actions: [
//Obx(() => _GnssStatusChip()),
const SizedBox(width: 8),
const GnssStatusChip(),
const SizedBox(width: 6),
Obx(() => controller.currentIndex.value == 1
? NtripStatusChip(
isConnected: MapSurveyController.to.ntripIsConnected,
onToggle: () {
final c = MapSurveyController.to;
c.ntripIsConnected.value
? c.disconnectFromNtripServer()
: c.connectToNtripServer();
},
)
: const SizedBox.shrink())
],
),
drawer: const AppDrawer(),