mirror of
https://github.com/wger-project/flutter.git
synced 2026-11-30 17:52:35 +01:00
Automatic linting
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user