Appbar módosítás, projektnév az alcímben

This commit is contained in:
2026-06-12 09:04:02 +02:00
parent 43af5f5bc8
commit 71305e49f9
5 changed files with 38 additions and 10 deletions
+9 -6
View File
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import 'package:get/get_state_manager/get_state_manager.dart';
import 'package:terepi_seged/enums/map_survey_mode.dart';
import 'package:terepi_seged/pages/map_survey/presentations/controllers/map_survey_controller.dart';
import 'package:terepi_seged/services/project_service.dart';
class MapModeMenuAnchor extends StatelessWidget {
final MapSurveyController controller;
@@ -13,6 +14,7 @@ class MapModeMenuAnchor extends StatelessWidget {
final colorScheme = Theme.of(context).colorScheme;
return Obx(() {
final p = ProjectService.to.activeProject.value;
return MenuAnchor(
menuChildren: [
MenuItemButton(
@@ -67,18 +69,19 @@ class MapModeMenuAnchor extends StatelessWidget {
vertical: 4,
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(mainAxisSize: MainAxisSize.min, children: [
Icon(controller.currentModeIcon, size: 14),
const SizedBox(width: 1),
Icon(controller.currentModeIcon, size: 18),
const SizedBox(width: 6),
Text(controller.currentModeLabel,
style: const TextStyle(
fontSize: 14, fontWeight: FontWeight.w600)),
const Icon(Icons.arrow_drop_down, size: 18),
fontSize: 18, fontWeight: FontWeight.w600)),
const Icon(Icons.arrow_drop_down, size: 22),
]),
Text('Projekt',
Text(p == null ? 'Projekt' : p.name,
style: TextStyle(
fontSize: 11,
fontSize: 12,
fontStyle: FontStyle.italic,
fontWeight: FontWeight.w400,
color: colorScheme.onSurfaceVariant))