changed name and icon of app
time
This commit is contained in:
@@ -29,9 +29,9 @@ class _TrackingState extends State<Tracking> {
|
||||
@override
|
||||
void initState() {
|
||||
// TODO debugging (i guess)
|
||||
pathList.add(
|
||||
LatLng(widget.startPosition.latitude, widget.startPosition.longitude),
|
||||
);
|
||||
// pathList.add(
|
||||
// LatLng(widget.startPosition.latitude, widget.startPosition.longitude),
|
||||
// );
|
||||
|
||||
if (widget.weg.text.isNotEmpty) {
|
||||
for (var element in widget.weg.text.split(";")) {
|
||||
@@ -78,10 +78,11 @@ class _TrackingState extends State<Tracking> {
|
||||
// notification handling for tracking in background notification
|
||||
await NotificationService().initNotification();
|
||||
|
||||
if (mounted)
|
||||
if (mounted) {
|
||||
NotificationService().showNotification(
|
||||
title: AppLocalizations.of(context)!.trackingRunningInBackground,
|
||||
);
|
||||
}
|
||||
|
||||
positionStream = Geolocator.getPositionStream(
|
||||
locationSettings: AndroidSettings(
|
||||
@@ -98,9 +99,9 @@ class _TrackingState extends State<Tracking> {
|
||||
),
|
||||
).listen((Position? position) {
|
||||
if (position != null) {
|
||||
// pathList.add(LatLng(position.latitude, position.longitude));
|
||||
setState(() {
|
||||
pathList.add(LatLng(rand.nextInt(5) + 40, position.longitude));
|
||||
pathList.add(LatLng(position.latitude, position.longitude));
|
||||
// pathList.add(LatLng(rand.nextInt(5) + 40, position.longitude));
|
||||
});
|
||||
} else {
|
||||
if (mounted) {
|
||||
|
||||
Reference in New Issue
Block a user