Bejárás mód: pont leírás mentése
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:terepi_seged/pages/map_survey/presentations/controllers/map_survey_controller.dart';
|
||||
import 'package:terepi_seged/services/gnss/gnss_connection.dart';
|
||||
import 'package:terepi_seged/services/gnss/gnss_device_service.dart';
|
||||
import 'package:terepi_seged/services/gnss/gnss_service.dart';
|
||||
|
||||
import 'map_edit_small_status_chip.dart';
|
||||
|
||||
@@ -78,22 +81,25 @@ class PointDrawingContent extends StatelessWidget {
|
||||
Expanded(
|
||||
child: OutlinedButton.icon(
|
||||
//onPressed: controller.addPointFromCurrentPosition,
|
||||
onPressed: () {},
|
||||
onPressed: GnssService.to.connectionState.value ==
|
||||
GnssConnectionState.connected
|
||||
? controller.savePointFromCurrentPosition
|
||||
: null,
|
||||
icon: const Icon(Icons.my_location, size: 18),
|
||||
label: const Text('Saját hely'),
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
Expanded(
|
||||
child: FilledButton.icon(
|
||||
// onPressed: controller.canFinishGeometry
|
||||
// ? controller.finishGeometry
|
||||
// : null,
|
||||
onPressed: () {},
|
||||
icon: const Icon(Icons.check, size: 18),
|
||||
label: const Text('Kész'),
|
||||
),
|
||||
),
|
||||
// const SizedBox(width: 8),
|
||||
// Expanded(
|
||||
// child: FilledButton.icon(
|
||||
// // onPressed: controller.canFinishGeometry
|
||||
// // ? controller.finishGeometry
|
||||
// // : null,
|
||||
// onPressed: () {},
|
||||
// icon: const Icon(Icons.check, size: 18),
|
||||
// label: const Text('Kész'),
|
||||
// ),
|
||||
// ),
|
||||
],
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user