Refactor code structure for improved readability and maintainability

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Nils-Johan Gynther
2026-04-23 21:14:46 +02:00
parent cd4274575e
commit db1128ceaf
49 changed files with 285993 additions and 175 deletions
@@ -21,8 +21,8 @@ class RecipeDetailScreen extends ConsumerWidget {
return Scaffold(
appBar: AppBar(
title: Text(recipeAsync.valueOrNull?.title ?? 'Recept'),
actions: recipeAsync.valueOrNull == null
title: Text(recipeAsync.maybeWhen(data: (d) => d, orElse: () => null)?.title ?? 'Recept'),
actions: recipeAsync.maybeWhen(data: (d) => d, orElse: () => null) == null
? []
: [
IconButton(