besprechung
This commit is contained in:
@@ -175,7 +175,7 @@ class _TrackingState extends State<Tracking> {
|
||||
),
|
||||
),
|
||||
if (positionStreamRunning)
|
||||
IconButton(
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
setState(() {
|
||||
positionStreamRunning = false;
|
||||
@@ -183,12 +183,9 @@ class _TrackingState extends State<Tracking> {
|
||||
NotificationService().deleteNotification();
|
||||
});
|
||||
},
|
||||
icon: Icon(
|
||||
Icons.stop_rounded,
|
||||
color: Theme.of(context).colorScheme.errorContainer,
|
||||
),
|
||||
child: Text(AppLocalizations.of(context)!.trackingStop),
|
||||
),
|
||||
IconButton(
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
if (positionStreamRunning) {
|
||||
positionStreamRunning = false;
|
||||
@@ -199,10 +196,10 @@ class _TrackingState extends State<Tracking> {
|
||||
}
|
||||
setState(() {});
|
||||
},
|
||||
icon:
|
||||
child:
|
||||
positionStreamRunning
|
||||
? Icon(Icons.pause)
|
||||
: Icon(Icons.play_arrow),
|
||||
? Text(AppLocalizations.of(context)!.trackingPause)
|
||||
: Text(AppLocalizations.of(context)!.trackingStart)
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user