Skip to content

Commit

Permalink
second release, improved UI design
Browse files Browse the repository at this point in the history
  • Loading branch information
aldrinzigmundv committed Aug 21, 2023
1 parent cbaae6b commit 250c5fa
Show file tree
Hide file tree
Showing 17 changed files with 202 additions and 236 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

[<img src="https://images-na.ssl-images-amazon.com/images/G/01/mobile-apps/devportal2/res/images/amazon-appstore-badge-english-black.png"
alt="Get it on amazon appstore"
height="65">](https://www.amazon.com/dp/B0CFR7PLRL/)[<img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png"
alt="Get it on F-Droid"
height="80">](https://f-droid.org/packages/io.github.aldrinzigmundv.librum/)
height="65">](https://www.amazon.com/dp/B0CFR7PLRL/)

Or download the latest APK from the [Releases Section](https://github.com/aldrinzigmundv/librum/releases/latest)

Expand All @@ -23,8 +21,8 @@ You can easily contribute by suggesting verses that you think should be included

## Features
* Free and open-source, no tracking or whatsover
* Three random Bible verses as soon as you launch the app
* Verses organized into different topics so you can easily find what you're looking for
* A random Bible verse as soon as you launch the app
* Verses organized into different categories so you can easily find what you're looking for
* Easy tap to copy so you can easily share Bible verses to social media


Expand Down
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ android {
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion 24
targetSdkVersion 33
versionCode 1
versionName "1.0.0"
versionCode 2
versionName "2.0.0"
}

signingConfigs {
Expand Down
29 changes: 29 additions & 0 deletions lib/data/categories.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import 'package:flutter/material.dart';

//Holds the App Drawer data which includes all verse categories

class CategoryEntry {
String name;
IconData icon;

CategoryEntry({ required this.name, required this.icon });
}

class CategoryEntries {
List<CategoryEntry> categoryList = [
CategoryEntry(name: 'Charity', icon: Icons.volunteer_activism),
CategoryEntry(name: 'Enemies', icon: Icons.local_fire_department),
CategoryEntry(name: 'Faith', icon: Icons.church),
CategoryEntry(name: 'Family', icon: Icons.family_restroom),
CategoryEntry(name: 'Fear', icon: Icons.sentiment_very_dissatisfied),
CategoryEntry(name: 'Forgiveness', icon: Icons.handshake),
CategoryEntry(name: 'Guidance', icon: Icons.visibility),
CategoryEntry(name: 'Pride', icon: Icons.emoji_events),
CategoryEntry(name: 'Sacrifice', icon: Icons.favorite),
CategoryEntry(name: 'Wealth', icon: Icons.savings),
CategoryEntry(name: 'Work', icon: Icons.work),
CategoryEntry(name: "Donate", icon: Icons.person)
];

}

30 changes: 0 additions & 30 deletions lib/data/drawerentry.dart

This file was deleted.

16 changes: 3 additions & 13 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,26 +1,16 @@
import 'package:flutter/material.dart';
import 'package:librum/pages/home.dart';
import 'package:flutter/services.dart';
import 'package:librum/ui/appdrawer.dart';
import 'package:librum/data/verses.dart';

void main() {

//initializes verses and random verses then passes it on
//initializes verses and getting random verse then passes it on to HomePage in home.dart

Verses verses = Verses();

late List<Verse> randomVerses = [];
late int randomVerse = verses.getRandom();

randomVerses.add(verses.versesList[verses.getRandom()]);
while (randomVerses.length < 3) {
int newIndex = verses.getRandom();

if (!randomVerses.contains(newIndex)) {
randomVerses.add(verses.versesList[newIndex]);
}
}

runApp(MyHomePage(verses: verses, randomVerses: randomVerses));
runApp(HomePage(verses: verses, randomVerse: randomVerse));
}

65 changes: 31 additions & 34 deletions lib/pages/donate.dart
Original file line number Diff line number Diff line change
@@ -1,60 +1,57 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:librum/data/verses.dart';
import 'package:librum/ui/appdrawer.dart';

//Builds the Donate Page

class DonatePage extends StatelessWidget {
DonatePage({super.key, required this.verses, required this.randomVerses});

late Verses verses;

late List<Verse> randomVerses;
DonatePage({super.key});

@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
centerTitle: true,
backgroundColor: Colors.purple.shade700,
iconTheme: const IconThemeData(color: Colors.white),
title: Text("Donate", style: const TextStyle(color: Colors.white)),
),
drawer: AppDrawer(verses: verses, randomVerses: randomVerses),
body: Center(
child: SingleChildScrollView(
child: Column(
children: [Container(
child: Text(
"Donate XMR to Support this App",
style: TextStyle(fontSize: 21),
),
margin: EdgeInsets.fromLTRB(0, 30.00, 0, 15.0)),
GestureDetector(
onTap: () {
Clipboard.setData(ClipboardData(
text:
'86cQoPfKTJ2bRfGH5Ts2kzaXCRcVRiX8CUHKc9xmeUmQ8YM8Uzk9S97T5gQaqYu58C9wuFK7opDH7cM9EJyR4V5LAq9RGv4'));
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
content: Text("Verse copied to clipboard."),
duration: Duration(seconds: 2),
));
},
child: Card(
child: Container(
child: Image.asset('assets/images/XMR.png'),
),
children: [
Container(
child: Text(
"Donate XMR to Support this App",
style: TextStyle(fontSize: 21),
),
margin: EdgeInsets.fromLTRB(0, 30.00, 0, 15.0)),
GestureDetector(
onTap: () {
Clipboard.setData(ClipboardData(
text:
'86cQoPfKTJ2bRfGH5Ts2kzaXCRcVRiX8CUHKc9xmeUmQ8YM8Uzk9S97T5gQaqYu58C9wuFK7opDH7cM9EJyR4V5LAq9RGv4'));
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
content: Text("Verse copied to clipboard."),
duration: Duration(seconds: 2),
));
},
child: Card(
child: Container(
child: Image.asset('assets/images/XMR.png'),
),
),
Container(
child: Text(
"Tap the QR Code to get the XMR Wallet Address.",
style: TextStyle(fontSize: 15),
),
margin: EdgeInsets.fromLTRB(0, 10.0, 0, 0)),],
),
Container(
child: Text(
"Tap the QR Code to get the XMR Wallet Address.",
style: TextStyle(fontSize: 15),
),
margin: EdgeInsets.fromLTRB(0, 10.0, 0, 0)),
],
),
),
),
);
}
}
}
Loading

0 comments on commit 250c5fa

Please sign in to comment.