MobilApp/lib/pages/shell/presentations/views/shell_view.dart

60 lines
2.0 KiB
Dart
Raw Normal View History

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';
2026-05-27 15:04:46 +02:00
import 'package:terepi_seged/widgets/shell_adaptive_appbar.dart';
2026-06-12 00:17:24 +02:00
import 'package:terepi_seged/widgets/appbar/shell_map_appbar.dart';
import '../../../../widgets/app_drawer.dart';
import '../../../map_survey/presentations/views/map_survey_view.dart';
import '../controllers/shell_controller.dart';
class ShellView extends GetView<ShellController> {
const ShellView({super.key});
static const _pages = [
HomeView(),
//MapView(),
MapSurveyView(),
//TrackingView(),
//DataView(),
];
@override
Widget build(BuildContext context) {
2026-05-27 15:04:46 +02:00
final mapController = Get.find<MapSurveyController>();
return Scaffold(
2026-05-27 15:04:46 +02:00
// extendBody: true,
// extendBodyBehindAppBar: false,
resizeToAvoidBottomInset: true,
appBar: ShellMapAppBar(controller: mapController),
// appBar: AppBar(
// // Cím reaktívan frissül tab váltáskor
// title: Obx(() => Text(controller.currentTitle)),
// actions: [
// const GnssStatusChip(),
// const SizedBox(width: 6),
// Obx(() => controller.currentIndex.value == 1
// ? NtripStatusChip(
// isConnected: NtripService.to.isConnected,
// onToggle: () {
// NtripService.to.isConnected.value
// ? NtripService.to.disconnect()
// : NtripService.to.connect();
// },
// )
// : const SizedBox.shrink())
// ],
// ),
drawer: const AppDrawer(),
body: Obx(() => IndexedStack(
index: controller.currentIndex.value,
children: _pages,
)),
);
}
}