From 826c9293319f770c3a19706302cd4146a9115437 Mon Sep 17 00:00:00 2001 From: JdM Date: Mon, 8 Apr 2024 16:30:38 +0200 Subject: [PATCH] bug fixing --- lib/widgets/recipeEditorPage.dart | 2 +- lib/widgets/recipeViewPage.dart | 10 ++++++++-- lib/widgets/settings.dart | 4 ++-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/lib/widgets/recipeEditorPage.dart b/lib/widgets/recipeEditorPage.dart index df5ccaa..4e48137 100644 --- a/lib/widgets/recipeEditorPage.dart +++ b/lib/widgets/recipeEditorPage.dart @@ -54,7 +54,7 @@ class _RecipeEditorPageState extends State { } Navigator.of(context).push( - MaterialPageRoute(builder: (context) => HomePage()), + MaterialPageRoute(builder: (context) => const HomePage()), ); } }, diff --git a/lib/widgets/recipeViewPage.dart b/lib/widgets/recipeViewPage.dart index 5689ca2..923f16f 100644 --- a/lib/widgets/recipeViewPage.dart +++ b/lib/widgets/recipeViewPage.dart @@ -87,7 +87,7 @@ class _RecipeViewPageState extends State { }); }), const Text( - "Steps :", + "Preparation :", style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold), ), @@ -99,7 +99,13 @@ class _RecipeViewPageState extends State { return CheckboxListTile( controlAffinity: ListTileControlAffinity.leading, value: checkboxValuesSteps[index] ?? false, - title: Text(stepsList[index]), + title: Text( + stepsList[index], + style: TextStyle( + color: (checkboxValuesSteps[index] ?? false) + ? Colors.grey + : Colors.white), + ), onChanged: (value) { setState(() { checkboxValuesSteps[index] = value!; diff --git a/lib/widgets/settings.dart b/lib/widgets/settings.dart index 96d0ebe..e6a939f 100644 --- a/lib/widgets/settings.dart +++ b/lib/widgets/settings.dart @@ -53,7 +53,7 @@ class _SettingsState extends State { onTap: () => showDialog( context: context, builder: (context) => AlertDialog( - title: const Text("Restore backup"), + title: const Text("Import recipes"), content: Column( mainAxisSize: MainAxisSize.min, children: [ @@ -98,7 +98,7 @@ class _SettingsState extends State { child: Column( children: [ ListTile( - title: const Text("Backup"), + title: const Text("Export recipes"), onTap: () => widget.backup(), ), ],