mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Reduce precision shown for measurements
Fixes https://github.com/domokit/sky_engine/issues/548 @collinjackson
This commit is contained in:
parent
15e1e264a9
commit
db24db4b20
@ -11,7 +11,7 @@ class Measurement extends FitnessItem {
|
||||
final double weight;
|
||||
|
||||
// TODO(jackson): Internationalize
|
||||
String get displayWeight => "${weight.toStringAsFixed(2)} lbs";
|
||||
String get displayWeight => "${weight.toStringAsFixed(1)} lbs";
|
||||
|
||||
@override
|
||||
Map toJson() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user