mirror of
https://github.com/wger-project/flutter.git
synced 2026-12-02 18:19:25 +01:00
Reformat code in NutritionalPlanScreen
Took 7 minutes
This commit is contained in:
@@ -42,7 +42,6 @@ class NutritionalPlanScreen extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _NutritionalPlanScreenState extends State<NutritionalPlanScreen> {
|
||||
|
||||
Future<NutritionalPlan>? _planFuture;
|
||||
late NutritionalPlan _nutritionalPlan;
|
||||
|
||||
@@ -51,8 +50,10 @@ class _NutritionalPlanScreenState extends State<NutritionalPlanScreen> {
|
||||
super.didChangeDependencies();
|
||||
if (_planFuture == null) {
|
||||
_nutritionalPlan = ModalRoute.of(context)!.settings.arguments as NutritionalPlan;
|
||||
_planFuture = Provider.of<NutritionPlansProvider>(context, listen: false)
|
||||
.fetchAndSetPlanFull(_nutritionalPlan.id!);
|
||||
_planFuture = Provider.of<NutritionPlansProvider>(
|
||||
context,
|
||||
listen: false,
|
||||
).fetchAndSetPlanFull(_nutritionalPlan.id!);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user