fixed delete in view_app. Also some other things but i forgot everything
This commit is contained in:
@@ -23,7 +23,6 @@ import 'widgets/status.dart';
|
||||
|
||||
class AddCamMain extends StatefulWidget {
|
||||
final bool isTemplate;
|
||||
final bool isFinished;
|
||||
final bool isSent;
|
||||
final Map<String, dynamic>? existingData;
|
||||
|
||||
@@ -31,7 +30,6 @@ class AddCamMain extends StatefulWidget {
|
||||
super.key,
|
||||
this.isTemplate = false,
|
||||
this.existingData,
|
||||
this.isFinished = false,
|
||||
this.isSent = false,
|
||||
});
|
||||
|
||||
@@ -148,6 +146,8 @@ class _AddCamMainState extends State<AddCamMain> {
|
||||
// select initial werte
|
||||
rmap["MEZ"]!["controller"]!.text = selectedMEZ;
|
||||
rmap["Status"]!["controller"]!.text = selectedStatus;
|
||||
rmap["DECLAT"]!["controller"]!.text = currentPosition.latitude.toString();
|
||||
rmap["DECLNG"]!["controller"]!.text = currentPosition.longitude.toString();
|
||||
|
||||
// If a template is edited this fills in the existing values
|
||||
if (widget.existingData?.isNotEmpty ?? false) {
|
||||
@@ -286,8 +286,8 @@ class _AddCamMainState extends State<AddCamMain> {
|
||||
children: [
|
||||
Column(
|
||||
children: [
|
||||
Text(currentPosition.latitude.toString()),
|
||||
Text(currentPosition.longitude.toString()),
|
||||
Text(rmap["DECLAT"]!["controller"]!.text),
|
||||
Text(rmap["DECLNG"]!["controller"]!.text),
|
||||
],
|
||||
),
|
||||
const SizedBox(width: 15),
|
||||
|
||||
Reference in New Issue
Block a user