~repos /only-bible-app

#kotlin#android#ios

git clone https://pyrossh.dev/repos/only-bible-app.git

The only bible app you will ever need. No ads. No in-app purchases. No distractions.


63f41de6 pyrossh

2 years ago
fix settings
lib/providers/app_model.dart CHANGED
@@ -89,7 +89,7 @@ class AppModel extends ChangeNotifier {
89
89
  }
90
90
 
91
91
  List<String> getBookNames(BuildContext context) {
92
- final l = engTitles ? lookupAppLocalizations(Locale("en")) : AppLocalizations.of(context)!;
92
+ final l = engTitles ? lookupAppLocalizations(const Locale("en")) : AppLocalizations.of(context)!;
93
93
  return [
94
94
  l.genesis,
95
95
  l.exodus,
@@ -427,7 +427,7 @@ class AppModel extends ChangeNotifier {
427
427
  if (isAndroid()) {
428
428
  openUrl(context, "https://play.google.com/store/apps/details?id=${packageInfo.packageName}");
429
429
  } else if (isIOS()) {
430
- openUrl(context, "https://apps.apple.com/us/app/hare-pro/id123");
430
+ openUrl(context, "https://apps.apple.com/us/app/only-bible-app/${packageInfo.packageName}");
431
431
  }
432
432
  }
433
433
 
lib/screens/bible_select_screen.dart CHANGED
@@ -10,7 +10,6 @@ class BibleSelectScreen extends StatelessWidget {
10
10
 
11
11
  @override
12
12
  Widget build(BuildContext context) {
13
- final model = AppModel.of(context);
14
13
  return ScaffoldMenu(
15
14
  child: CustomScrollView(
16
15
  physics: const BouncingScrollPhysics(),
lib/widgets/settings_sheet.dart CHANGED
@@ -112,7 +112,7 @@ class SettingsSheet extends StatelessWidget {
112
112
  onPressed: app.rateApp,
113
113
  ),
114
114
  SettingsTile.navigation(
115
- leading: const Icon(Icons.info_outline, color: Colors.black),
115
+ leading: Icon(Icons.info_outline, color: Theme.of(context).colorScheme.onBackground),
116
116
  title: const Text("About us"),
117
117
  onPressed: app.showAboutUs,
118
118
  ),