-
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.
minor UI improvements, optimization and code refactorin
- Loading branch information
1 parent
a064c8e
commit 4e73650
Showing
13 changed files
with
339 additions
and
302 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,16 +1,13 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:librum/pages/home.dart'; | ||
import 'package:flutter/services.dart'; | ||
import 'package:librum/data/verses.dart'; | ||
import 'package:librum/pages/loadingpage.dart'; | ||
|
||
void main() { | ||
|
||
//initializes verses and getting random verse then passes it on to HomePage in home.dart | ||
|
||
Verses verses = Verses(); | ||
|
||
late int randomVerse = verses.getRandom(); | ||
|
||
runApp(HomePage(verses: verses, randomVerse: randomVerse)); | ||
runApp(MaterialApp( | ||
title: "Librum", | ||
initialRoute: '/', | ||
routes: { | ||
'/': (context) => const LoadingPage(), | ||
}, | ||
)); | ||
} | ||
|
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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter/services.dart'; | ||
|
||
//Builds the Donate Page | ||
|
||
class DonationPage extends StatelessWidget { | ||
DonationPage({super.key}); | ||
|
||
copyMoneroAddress(context) { | ||
Clipboard.setData(ClipboardData( | ||
text: | ||
'86cQoPfKTJ2bRfGH5Ts2kzaXCRcVRiX8CUHKc9xmeUmQ8YM8Uzk9S97T5gQaqYu58C9wuFK7opDH7cM9EJyR4V5LAq9RGv4')); | ||
ScaffoldMessenger.of(context).showSnackBar(SnackBar( | ||
content: Text("Verse copied to clipboard."), | ||
duration: Duration(seconds: 2), | ||
)); | ||
} | ||
|
||
@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)), | ||
), | ||
backgroundColor: Colors.grey[50], | ||
body: Center( | ||
child: SingleChildScrollView( | ||
child: Column( | ||
children: [ | ||
Padding( | ||
padding: EdgeInsets.all(9.0), | ||
child: Text( | ||
"Donate XMR to Support this App", | ||
style: TextStyle(fontSize: 21), | ||
), | ||
), | ||
Padding( | ||
padding: EdgeInsets.all(9.0), | ||
child: GestureDetector( | ||
onTap: () { | ||
copyMoneroAddress(context); | ||
}, | ||
child: Card( | ||
child: Padding( | ||
padding: EdgeInsets.all(3.0), | ||
child: Image.asset('assets/images/XMR.png'), | ||
), | ||
), | ||
), | ||
), | ||
Padding( | ||
padding: EdgeInsets.all(9.0), | ||
child: Text( | ||
"Tap the QR Code to get the XMR Wallet Address.", | ||
style: TextStyle(fontSize: 15), | ||
), | ||
), | ||
], | ||
), | ||
), | ||
), | ||
); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.