Új térkép widget, melyet több oldal is használ
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user