Skip to content
Snippets Groups Projects
Commit 7339375b authored by Marvin Weiler's avatar Marvin Weiler
Browse files

Show a string indicating the value is >3m instead of -- if the sensor reading...

Show a string indicating the value is >3m instead of -- if the sensor reading indicates more than a 3m distance.
parent 7cd6983e
No related branches found
No related tags found
No related merge requests found
Pipeline #276761 passed
......@@ -83,7 +83,7 @@ class _MeasurementsState extends State<Measurements> {
? SelectableText('${sensor1Distance / 100}m',
style: TextStyle(
fontSize: 40, fontWeight: FontWeight.bold))
: Text("--",
: Text(">3m",
style: TextStyle(
fontSize: 40, fontWeight: FontWeight.bold)),
Text(AppLocalizations.of(context)!.sensor1Distance,
......@@ -105,7 +105,7 @@ class _MeasurementsState extends State<Measurements> {
? SelectableText('${sensor2Distance / 100}m',
style: TextStyle(
fontSize: 40, fontWeight: FontWeight.bold))
: Text("--",
: Text(">3m",
style: TextStyle(
fontSize: 40, fontWeight: FontWeight.bold)),
Text(AppLocalizations.of(context)!.sensor2Distance,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment