outsourced add cam main widgets and cleaned karte widget up
time
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import 'package:fforte/enums/databases.dart';
|
||||
import 'package:fforte/screens/addCam/cam_widgets.dart';
|
||||
import 'package:fforte/screens/helper/dialog_helper.dart';
|
||||
import 'package:fforte/screens/helper/snack_bar_helper.dart';
|
||||
import 'package:fforte/screens/addCam/exceptions/location_disabled_exception.dart';
|
||||
@@ -15,6 +14,13 @@ import 'package:geolocator/geolocator.dart';
|
||||
import 'package:latlong2/latlong.dart';
|
||||
import 'package:animations/animations.dart';
|
||||
|
||||
import 'widgets/abbau_dat.dart';
|
||||
import 'widgets/karte.dart';
|
||||
import 'widgets/kont_dat.dart';
|
||||
import 'widgets/mez.dart';
|
||||
import 'widgets/platzung.dart';
|
||||
import 'widgets/status.dart';
|
||||
|
||||
class AddCamMain extends StatefulWidget {
|
||||
final bool isTemplate;
|
||||
final bool isFinished;
|
||||
@@ -388,7 +394,6 @@ class _AddCamMainState extends State<AddCamMain> {
|
||||
content: Column(
|
||||
children: [
|
||||
Row(
|
||||
// TODO MAYBE FIX
|
||||
children: [
|
||||
Column(
|
||||
children: [
|
||||
@@ -408,15 +413,8 @@ class _AddCamMainState extends State<AddCamMain> {
|
||||
ortInfoC: rmap["OrtInfo"]!["controller"],
|
||||
beiOrtC: rmap["BeiOrt"]!["controller"],
|
||||
currentPosition: currentPosition,
|
||||
onPositionChange: (updatedPosition) {
|
||||
setState(() {
|
||||
currentPosition = updatedPosition;
|
||||
rmap["DECLNG"]!["controller"]!.text =
|
||||
updatedPosition.longitude.toString();
|
||||
rmap["DECLAT"]!["controller"]!.text =
|
||||
updatedPosition.latitude.toString();
|
||||
});
|
||||
},
|
||||
decLatC: rmap["DECLAT"]!["controller"],
|
||||
decLngC: rmap["DECLNG"]!["controller"],
|
||||
);
|
||||
}));
|
||||
if (result != null) {
|
||||
|
||||
Reference in New Issue
Block a user