Appbar módosítás, projektnév az alcímben
This commit is contained in:
@@ -94,7 +94,7 @@ class ShellMapAppBar extends StatelessWidget implements PreferredSizeWidget {
|
||||
// fontFeatures: const [FontFeature.tabularFigures()]))
|
||||
// ])
|
||||
// ]),
|
||||
const GnssIconStatusChip(),
|
||||
// const GnssIconStatusChip(),
|
||||
const SizedBox(width: 2),
|
||||
NtripIconStatusChip(
|
||||
isConnected: NtripService.to.isConnected,
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user