manual fixes: no-empty-block

This commit is contained in:
Dieter Plaetinck
2024-06-07 14:56:01 +03:00
parent 653c11891d
commit 266cec8c0c
3 changed files with 0 additions and 8 deletions

View File

@@ -238,7 +238,6 @@ class _DashboardCalendarWidgetState extends State<DashboardCalendarWidget>
calendarStyle: getWgerCalendarStyle(Theme.of(context)),
onDaySelected: _onDaySelected,
onRangeSelected: _onRangeSelected,
onFormatChanged: (format) {},
onPageChanged: (focusedDay) {
_focusedDay = focusedDay;
},

View File

@@ -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!;
},

View File

@@ -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!;
},