mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
manual fixes: no-empty-block
This commit is contained in:
@@ -238,7 +238,6 @@ class _DashboardCalendarWidgetState extends State<DashboardCalendarWidget>
|
||||
calendarStyle: getWgerCalendarStyle(Theme.of(context)),
|
||||
onDaySelected: _onDaySelected,
|
||||
onRangeSelected: _onRangeSelected,
|
||||
onFormatChanged: (format) {},
|
||||
onPageChanged: (focusedDay) {
|
||||
_focusedDay = focusedDay;
|
||||
},
|
||||
|
||||
@@ -75,7 +75,6 @@ class MealForm extends StatelessWidget {
|
||||
onSaved: (newValue) {
|
||||
_meal.time = stringToTime(newValue);
|
||||
},
|
||||
onFieldSubmitted: (_) {},
|
||||
),
|
||||
TextFormField(
|
||||
maxLength: 25,
|
||||
@@ -85,7 +84,6 @@ class MealForm extends StatelessWidget {
|
||||
onSaved: (newValue) {
|
||||
_meal.name = newValue as String;
|
||||
},
|
||||
onFieldSubmitted: (_) {},
|
||||
),
|
||||
ElevatedButton(
|
||||
key: const Key(SUBMIT_BUTTON_KEY_NAME),
|
||||
@@ -269,7 +267,6 @@ class IngredientFormState extends State<IngredientForm> {
|
||||
),
|
||||
controller: _amountController,
|
||||
keyboardType: TextInputType.number,
|
||||
onFieldSubmitted: (_) {},
|
||||
onChanged: (value) {
|
||||
setState(() {
|
||||
final v = double.tryParse(value);
|
||||
@@ -345,7 +342,6 @@ class IngredientFormState extends State<IngredientForm> {
|
||||
onSaved: (newValue) {
|
||||
_timeController.text = newValue!;
|
||||
},
|
||||
onFieldSubmitted: (_) {},
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -529,7 +525,6 @@ class _PlanFormState extends State<PlanForm> {
|
||||
labelText: AppLocalizations.of(context).description,
|
||||
),
|
||||
controller: _descriptionController,
|
||||
onFieldSubmitted: (_) {},
|
||||
onSaved: (newValue) {
|
||||
widget._plan.description = newValue!;
|
||||
},
|
||||
|
||||
@@ -66,7 +66,6 @@ class WorkoutForm extends StatelessWidget {
|
||||
}
|
||||
return null;
|
||||
},
|
||||
onFieldSubmitted: (_) {},
|
||||
onSaved: (newValue) {
|
||||
_plan.name = newValue!;
|
||||
},
|
||||
@@ -87,7 +86,6 @@ class WorkoutForm extends StatelessWidget {
|
||||
}
|
||||
return null;
|
||||
},
|
||||
onFieldSubmitted: (_) {},
|
||||
onSaved: (newValue) {
|
||||
_plan.description = newValue!;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user