Skip to content
Snippets Groups Projects
Commit 5af94a04 authored by Maximilian Betz's avatar Maximilian Betz
Browse files

only displaying 2 decimal digits for elevation on viewevents

parent f51bc3f6
No related branches found
No related tags found
No related merge requests found
......@@ -246,7 +246,7 @@ class _ViewEvents extends State<ViewEvents> {
DataCell(
TextFormField(
readOnly: true,
initialValue: event.elevation, //TODO: show only 2 digits after decimal point. toStringAsFixed(1),
initialValue: event.elevation == '' ? '' : double.parse(event.elevation).toStringAsFixed(2), //TODO: show only 2 digits after decimal point. toStringAsFixed(1),
onFieldSubmitted: (val) {
event.elevation = val; //Update Database
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment