Skip to content

Commit

Permalink
fix: smaller bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
TomBursch committed Jun 6, 2023
1 parent 69f0442 commit ae272da
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion lib/pages/expense_category_add_update_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ class _AddUpdateExpenseCategoryPageState
child: Text(
isUpdate
? AppLocalizations.of(context)!.save
: AppLocalizations.of(context)!.expenseAdd,
: AppLocalizations.of(context)!.addCategory,
),
),
),
Expand Down
17 changes: 6 additions & 11 deletions lib/pages/settings_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import 'package:go_router/go_router.dart';
import 'package:kitchenowl/app.dart';
import 'package:kitchenowl/config.dart';
import 'package:kitchenowl/cubits/auth_cubit.dart';
import 'package:kitchenowl/cubits/household_cubit.dart';
import 'package:kitchenowl/cubits/server_info_cubit.dart';
import 'package:kitchenowl/cubits/settings_cubit.dart';
import 'package:kitchenowl/enums/update_enum.dart';
Expand Down Expand Up @@ -246,17 +245,13 @@ class _SettingsPageState extends State<SettingsPage> {
AppLocalizations.of(context)!.settings,
),
leading: const Icon(Icons.house_rounded),
onTap: () async {
final res = await Navigator.of(context).push<UpdateEnum>(
MaterialPageRoute(
builder: (ctx) => HouseholdUpdatePage(
household: widget.household!,
),
onTap: () => Navigator.of(context).push<UpdateEnum>(
MaterialPageRoute(
builder: (ctx) => HouseholdUpdatePage(
household: widget.household!,
),
);
if (!mounted || res == UpdateEnum.deleted) return;
BlocProvider.of<HouseholdCubit>(context).refresh();
},
),
),
),
]),
),
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/recipe_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class RecipeCard extends StatelessWidget {
),
),
),
if (recipe.image?.isEmpty ?? false)
if (recipe.image?.isEmpty ?? true)
Expanded(
flex: 3,
child: Container(
Expand Down

0 comments on commit ae272da

Please sign in to comment.