fixed saveFile
time time this time for real
This commit is contained in:
@@ -0,0 +1 @@
|
||||
class FileDialogCancelled implements Exception {}
|
||||
@@ -462,16 +462,17 @@ class _ExcursionMainState extends State<ExcursionMain> {
|
||||
}
|
||||
|
||||
bool empty = CheckRequired.checkRequired(rmap);
|
||||
// TODO for debugging always false
|
||||
empty = false;
|
||||
// for debugging always false
|
||||
// empty = false;
|
||||
|
||||
if (empty == true) {
|
||||
if (empty) {
|
||||
AddEntriesDialogHelper.showTemplateDialog(
|
||||
context,
|
||||
getFieldsText(),
|
||||
DatabasesEnum.excursion
|
||||
);
|
||||
return;
|
||||
} else if (empty == false) {
|
||||
} else if (!empty) {
|
||||
await AddEntriesDialogHelper.showSaveOptionsDialog(
|
||||
context,
|
||||
getFieldsText(),
|
||||
|
||||
@@ -31,7 +31,7 @@ class _TrackingState extends State<Tracking> {
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
// TODO debugging (i guess)
|
||||
// debugging (i guess)
|
||||
// pathList.add(
|
||||
// LatLng(widget.startPosition.latitude, widget.startPosition.longitude),
|
||||
// );
|
||||
@@ -113,6 +113,7 @@ class _TrackingState extends State<Tracking> {
|
||||
if (position != null) {
|
||||
setState(() {
|
||||
pathList.add(LatLng(position.latitude, position.longitude));
|
||||
// Random value for debugging
|
||||
// pathList.add(LatLng(rand.nextInt(5) + 40, position.longitude));
|
||||
|
||||
locationMarkerPosition = LocationMarkerPosition(
|
||||
@@ -141,7 +142,9 @@ class _TrackingState extends State<Tracking> {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text(AppLocalizations.of(context)!.tracking),
|
||||
// leading: IconButton(onPressed: () {}, icon: Icon(Icons.arrow_back_rounded)),
|
||||
leading: IconButton(onPressed: () {
|
||||
Navigator.pop(context);
|
||||
}, icon: Icon(Icons.arrow_back_rounded)),
|
||||
actions: [
|
||||
if (!positionStreamRunning)
|
||||
IconButton(
|
||||
|
||||
Reference in New Issue
Block a user