Skip to content

Commit

Permalink
minor code improvements, updated one of the paintings based on feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
aldrinzigmundv committed Jan 19, 2024
1 parent f743eb1 commit 1c3da2a
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 37 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ android {
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion 24
targetSdkVersion 33
versionCode 4
versionName "2.0.5"
versionCode 5
versionName "2.0.6"
}

signingConfigs {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
29 changes: 13 additions & 16 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'pages/loadingpage.dart';

void main() {
// WidgetsFlutterBinding.ensureInitialized();
// MobileAds.instance.initialize();

runApp(const MyApp());
}

Expand Down Expand Up @@ -40,19 +37,19 @@ class _MyAppState extends State<MyApp> {
return MaterialApp(
locale: _locale,
localizationsDelegates: const [
AppLocalizations.delegate,
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
],
supportedLocales: const [
Locale('en'),
Locale('la'),
Locale('es'),
Locale('fil'),
],
title: "Mariam",
home: const LoadingPage(),
AppLocalizations.delegate,
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
],
supportedLocales: const [
Locale('en'),
Locale('la'),
Locale('es'),
Locale('fil'),
],
title: "Mariam",
home: const LoadingPage(),
);
}
}
51 changes: 33 additions & 18 deletions lib/services/rosary.dart
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ class Rosary {
image = 'assets/images/prayers/Hendrick_van_balen_Holy_trinity.jpg';
} else if (rosary[index + 1] ==
AppLocalizations.of(context)!.fatimaPrayer) {
image =
'assets/images/prayers/Ary_Scheffer_-_The_Temptation_of_Christ_(1854).jpg';
image = 'assets/images/prayers/1024px-The_Crucifixion_MET_DT10248.jpg';
} else if (rosary[index + 1] ==
AppLocalizations.of(context)!.theApostlesCreed) {
image =
Expand All @@ -153,64 +152,80 @@ class Rosary {
image = 'assets/images/joyful/Adoration_of_the_shepherds_reni.JPG';
} else if (rosary[index + 1] ==
AppLocalizations.of(context)!.thePresentation) {
image = 'assets/images/joyful/Champaigne_Présentation_au_temple_Saumur.jpg';
image =
'assets/images/joyful/Champaigne_Présentation_au_temple_Saumur.jpg';
} else {
image = 'assets/images/joyful/Disputa_con_los_doctores_(El_Veronés)_grande.jpg';
image =
'assets/images/joyful/Disputa_con_los_doctores_(El_Veronés)_grande.jpg';
}
break;
case "sorrowful":
if (rosary[index + 1] ==
AppLocalizations.of(context)!.theAgonyInTheGarden) {
image = 'assets/images/sorrowful/David_Teniers_the_Elder_-_The_Agony_in_the_Garden.jpg';
image =
'assets/images/sorrowful/David_Teniers_the_Elder_-_The_Agony_in_the_Garden.jpg';
} else if (rosary[index + 1] ==
AppLocalizations.of(context)!.theScourgingAtThePillar) {
image = 'assets/images/sorrowful/De_Mysteriën_van_de_Rozenkrans._De_geseling_van_Christus,_Peter_Paul_Rubens,_17de_eeuw,_Sint-Pauluskerk_Antwerpen.jpg';
image =
'assets/images/sorrowful/De_Mysteriën_van_de_Rozenkrans._De_geseling_van_Christus,_Peter_Paul_Rubens,_17de_eeuw,_Sint-Pauluskerk_Antwerpen.jpg';
} else if (rosary[index + 1] ==
AppLocalizations.of(context)!.theCrowningWithThorns) {
image = 'assets/images/sorrowful/Jesus_Christ_being_crowned_with_thorns,_by_Jan_Miense_Molenaer.jpg';
image =
'assets/images/sorrowful/Jesus_Christ_being_crowned_with_thorns,_by_Jan_Miense_Molenaer.jpg';
} else if (rosary[index + 1] ==
AppLocalizations.of(context)!.theCarryingOfTheCross) {
image = 'assets/images/sorrowful/Pieter_Bruegel_the_Younger_Christ_carrying_the_cross_1606_Gemäldegalerie_Berlin_9368.jpg';
image =
'assets/images/sorrowful/Pieter_Bruegel_the_Younger_Christ_carrying_the_cross_1606_Gemäldegalerie_Berlin_9368.jpg';
} else {
image = 'assets/images/sorrowful/Mantegna,_Andrea_-_crucifixion_-_Louvre_from_Predella_San_Zeno_Altarpiece_Verona.jpg';
image =
'assets/images/sorrowful/Mantegna,_Andrea_-_crucifixion_-_Louvre_from_Predella_San_Zeno_Altarpiece_Verona.jpg';
}
break;
case "glorious":
if (rosary[index + 1] ==
AppLocalizations.of(context)!.theResurrection) {
image = 'assets/images/glorious/Alexander_Ivanov_-_Christ\'s_Appearance_to_Mary_Magdalene_after_the_Resurrection_-_Google_Art_Project.jpg';
image =
'assets/images/glorious/Alexander_Ivanov_-_Christ\'s_Appearance_to_Mary_Magdalene_after_the_Resurrection_-_Google_Art_Project.jpg';
} else if (rosary[index + 1] ==
AppLocalizations.of(context)!.theAscension) {
image = 'assets/images/glorious/Wga_Garofalo_Ascension_of_Christ.jpg';
image =
'assets/images/glorious/Wga_Garofalo_Ascension_of_Christ.jpg';
} else if (rosary[index + 1] ==
AppLocalizations.of(context)!.theComingOfTheHolySpirit) {
image = 'assets/images/glorious/Maino_Pentecostés,_1620-1625._Museo_del_Prado.jpg';
image =
'assets/images/glorious/Maino_Pentecostés,_1620-1625._Museo_del_Prado.jpg';
} else if (rosary[index + 1] ==
AppLocalizations.of(context)!.theAssumptionOfMary) {
image = 'assets/images/glorious/The_Assumption_of_the_Virgin_by_Luca_Giordano.jpg';
image =
'assets/images/glorious/The_Assumption_of_the_Virgin_by_Luca_Giordano.jpg';
} else {
image = 'assets/images/glorious/Diego_Velázquez_-_Coronation_of_the_Virgin_-_Prado.jpg';
image =
'assets/images/glorious/Diego_Velázquez_-_Coronation_of_the_Virgin_-_Prado.jpg';
}
break;
case "light":
if (rosary[index + 1] ==
AppLocalizations.of(context)!.theBaptismOfJesusInTheRiverJordan) {
image = 'assets/images/light/Juan_Sánchez_Cotán_-_Baptism_of_Christ,_1600_27.jpg';
image =
'assets/images/light/Juan_Sánchez_Cotán_-_Baptism_of_Christ,_1600_27.jpg';
} else if (rosary[index + 1] ==
AppLocalizations.of(context)!.theWeddingFeastAtCana) {
image = 'assets/images/light/Daniel_Sarrabat_-_The_Wedding_at_Cana.jpg';
image =
'assets/images/light/Daniel_Sarrabat_-_The_Wedding_at_Cana.jpg';
} else if (rosary[index + 1] ==
AppLocalizations.of(context)!.theProclamationOfTheKingdomOfGod) {
image = 'assets/images/light/Jesus_Christ_teaching_on_moutain.png';
} else if (rosary[index + 1] ==
AppLocalizations.of(context)!.theTransfigurationOfJesus) {
image = 'assets/images/light/Transfiguration_Raphael.jpg';
} else {
image = 'assets/images/light/Vicente_Macip_Comes_-_The_Last_Supper_-_WGA12057.jpg';
image =
'assets/images/light/Vicente_Macip_Comes_-_The_Last_Supper_-_WGA12057.jpg';
}
break;
default:
image = 'assets/images/Virgen_del_Rosario,_de_Domingo_Martínez_(Museo_de_Bellas_Artes_de_Sevilla).jpg';
image =
'assets/images/Virgen_del_Rosario,_de_Domingo_Martínez_(Museo_de_Bellas_Artes_de_Sevilla).jpg';
}
}
return image;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: mariam
description: "Mariam is a free, open-source rosary app that enables believers to pray the rosary even when they don't have a physical rosary at hand."
publish_to: 'none'
version: 2.0.5
version: 2.0.6

environment:
sdk: '>=3.2.0 <4.0.0'
Expand Down

0 comments on commit 1c3da2a

Please sign in to comment.