Skip to content

Commit

Permalink
fix settings
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrossh committed Aug 25, 2023
1 parent a6934a6 commit 63f41de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/providers/app_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class AppModel extends ChangeNotifier {
}

List<String> getBookNames(BuildContext context) {
final l = engTitles ? lookupAppLocalizations(Locale("en")) : AppLocalizations.of(context)!;
final l = engTitles ? lookupAppLocalizations(const Locale("en")) : AppLocalizations.of(context)!;
return [
l.genesis,
l.exodus,
Expand Down Expand Up @@ -427,7 +427,7 @@ class AppModel extends ChangeNotifier {
if (isAndroid()) {
openUrl(context, "https://play.google.com/store/apps/details?id=${packageInfo.packageName}");
} else if (isIOS()) {
openUrl(context, "https://apps.apple.com/us/app/hare-pro/id123");
openUrl(context, "https://apps.apple.com/us/app/only-bible-app/${packageInfo.packageName}");
}
}

Expand Down
1 change: 0 additions & 1 deletion lib/screens/bible_select_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class BibleSelectScreen extends StatelessWidget {

@override
Widget build(BuildContext context) {
final model = AppModel.of(context);
return ScaffoldMenu(
child: CustomScrollView(
physics: const BouncingScrollPhysics(),
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/settings_sheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class SettingsSheet extends StatelessWidget {
onPressed: app.rateApp,
),
SettingsTile.navigation(
leading: const Icon(Icons.info_outline, color: Colors.black),
leading: Icon(Icons.info_outline, color: Theme.of(context).colorScheme.onBackground),
title: const Text("About us"),
onPressed: app.showAboutUs,
),
Expand Down

0 comments on commit 63f41de

Please sign in to comment.