Skip to content

Commit

Permalink
bug fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
judemont committed Apr 8, 2024
1 parent 996abd1 commit 826c929
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/widgets/recipeEditorPage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class _RecipeEditorPageState extends State<RecipeEditorPage> {
}

Navigator.of(context).push(
MaterialPageRoute(builder: (context) => HomePage()),
MaterialPageRoute(builder: (context) => const HomePage()),
);
}
},
Expand Down
10 changes: 8 additions & 2 deletions lib/widgets/recipeViewPage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class _RecipeViewPageState extends State<RecipeViewPage> {
});
}),
const Text(
"Steps :",
"Preparation :",
style:
TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
),
Expand All @@ -99,7 +99,13 @@ class _RecipeViewPageState extends State<RecipeViewPage> {
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!;
Expand Down
4 changes: 2 additions & 2 deletions lib/widgets/settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class _SettingsState extends State<Settings> {
onTap: () => showDialog(
context: context,
builder: (context) => AlertDialog(
title: const Text("Restore backup"),
title: const Text("Import recipes"),
content: Column(
mainAxisSize: MainAxisSize.min,
children: [
Expand Down Expand Up @@ -98,7 +98,7 @@ class _SettingsState extends State<Settings> {
child: Column(
children: [
ListTile(
title: const Text("Backup"),
title: const Text("Export recipes"),
onTap: () => widget.backup(),
),
],
Expand Down

0 comments on commit 826c929

Please sign in to comment.