Kapcsolat hozzáadása koordinátával a terepbejárás térképen.
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s
This commit is contained in:
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:terepi_seged/enums/map_edit_tool.dart';
|
||||
import 'package:terepi_seged/pages/map_survey/presentations/controllers/map_survey_controller.dart';
|
||||
import 'package:terepi_seged/services/permission_service.dart';
|
||||
|
||||
import 'map_toolbar_action.dart';
|
||||
import 'map_toolbar_divider.dart';
|
||||
@@ -65,6 +66,13 @@ class MapEditCompactToolbar extends StatelessWidget {
|
||||
selected: activeTool == MapEditTool.polygon,
|
||||
onTap: controller.startPolygonTool,
|
||||
),
|
||||
if (PermissionService.to.canContacts)
|
||||
ToolbarAction(
|
||||
icon: Icons.person_pin_circle_outlined,
|
||||
label: 'Kapcsolat',
|
||||
selected: activeTool == MapEditTool.contact,
|
||||
onTap: controller.startContactTool,
|
||||
),
|
||||
const ToolbarDivider(),
|
||||
ToolbarAction(
|
||||
icon: Icons.list_alt_outlined,
|
||||
@@ -72,12 +80,12 @@ class MapEditCompactToolbar extends StatelessWidget {
|
||||
selected: false,
|
||||
onTap: () {},
|
||||
),
|
||||
ToolbarAction(
|
||||
icon: Icons.layers_outlined,
|
||||
label: 'Rétegek',
|
||||
selected: false,
|
||||
onTap: () {},
|
||||
),
|
||||
// ToolbarAction(
|
||||
// icon: Icons.layers_outlined,
|
||||
// label: 'Rétegek',
|
||||
// selected: false,
|
||||
// onTap: () {},
|
||||
// ),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user