Automatic linting

This commit is contained in:
Github-actions
2021-06-20 13:14:26 +00:00
parent 3544cdb7c7
commit a352cb5e67

View File

@@ -346,7 +346,8 @@ class _LogPageState extends State<LogPage> {
),
onPressed: () {
try {
double newValue = double.parse(_weightController.text) - (2 * minPlateWeight);
double newValue =
double.parse(_weightController.text) - (2 * minPlateWeight);
if (newValue > 0) {
setState(() {
widget._log.weight = newValue;
@@ -394,7 +395,8 @@ class _LogPageState extends State<LogPage> {
),
onPressed: () {
try {
double newValue = double.parse(_weightController.text) + (2 * minPlateWeight);
double newValue =
double.parse(_weightController.text) + (2 * minPlateWeight);
setState(() {
widget._log.weight = newValue;
_weightController.text = newValue.toString();