diff --git a/lib/widgets/dashboard/calendar.dart b/lib/widgets/dashboard/calendar.dart index b781774d..9c1eb232 100644 --- a/lib/widgets/dashboard/calendar.dart +++ b/lib/widgets/dashboard/calendar.dart @@ -238,7 +238,6 @@ class _DashboardCalendarWidgetState extends State calendarStyle: getWgerCalendarStyle(Theme.of(context)), onDaySelected: _onDaySelected, onRangeSelected: _onRangeSelected, - onFormatChanged: (format) {}, onPageChanged: (focusedDay) { _focusedDay = focusedDay; }, diff --git a/lib/widgets/nutrition/forms.dart b/lib/widgets/nutrition/forms.dart index d267aecf..e559528d 100644 --- a/lib/widgets/nutrition/forms.dart +++ b/lib/widgets/nutrition/forms.dart @@ -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 { ), controller: _amountController, keyboardType: TextInputType.number, - onFieldSubmitted: (_) {}, onChanged: (value) { setState(() { final v = double.tryParse(value); @@ -345,7 +342,6 @@ class IngredientFormState extends State { onSaved: (newValue) { _timeController.text = newValue!; }, - onFieldSubmitted: (_) {}, ), ), ], @@ -529,7 +525,6 @@ class _PlanFormState extends State { labelText: AppLocalizations.of(context).description, ), controller: _descriptionController, - onFieldSubmitted: (_) {}, onSaved: (newValue) { widget._plan.description = newValue!; }, diff --git a/lib/widgets/workouts/forms.dart b/lib/widgets/workouts/forms.dart index 8f55f037..ee939812 100644 --- a/lib/widgets/workouts/forms.dart +++ b/lib/widgets/workouts/forms.dart @@ -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!; },