-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cbaae6b
commit 250c5fa
Showing
17 changed files
with
202 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
]; | ||
|
||
} | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)), | ||
], | ||
), | ||
), | ||
), | ||
); | ||
} | ||
} | ||
} |
Oops, something went wrong.