From bec2a8848a03cde11df9b0d1b31ea4f2e460a46b Mon Sep 17 00:00:00 2001 From: Werner Fleischer <70745309+wfleischer@users.noreply.github.com> Date: Mon, 6 Jan 2025 14:04:19 -0800 Subject: [PATCH] plans: enable showing locations by default (#196) --- integration_test/app_test.dart | 4 ++-- lib/src/plans/entities/plans.dart | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/integration_test/app_test.dart b/integration_test/app_test.dart index 9c30324..4276927 100644 --- a/integration_test/app_test.dart +++ b/integration_test/app_test.dart @@ -159,7 +159,7 @@ void main() async { expect(plan.language, Localizations.localeOf(buildContext).languageCode); expect(plan.withTargetDate, true); expect(plan.showEvents, true); - expect(plan.showLocations, false); + expect(plan.showLocations, true); expect(plan.bookmark, const Bookmark(dayIndex: 0, sectionIndex: -1)); expect(providerContainer.read(plansProvider).plans.length, 1); expect(find.byKey(const Key('no-plan-yet')), findsNothing); @@ -223,7 +223,7 @@ void main() async { expect(plan.language, firstBibleLanguageKey); expect(plan.withTargetDate, false); expect(plan.showEvents, true); - expect(plan.showLocations, false); + expect(plan.showLocations, true); expect(plan.bookmark, const Bookmark(dayIndex: 0, sectionIndex: -1)); expect(providerContainer.read(plansProvider).plans.length, 2); expect(find.byKey(const Key('no-plan-yet')), findsNothing); diff --git a/lib/src/plans/entities/plans.dart b/lib/src/plans/entities/plans.dart index 1f4870c..5d09475 100644 --- a/lib/src/plans/entities/plans.dart +++ b/lib/src/plans/entities/plans.dart @@ -33,7 +33,7 @@ class PlansNotifier extends Notifier { bookmark: const Bookmark(dayIndex: 0, sectionIndex: -1), withTargetDate: true, showEvents: true, - showLocations: false); + showLocations: true); } void addPlan(Plan plan) {