make android work
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
package="app.odweta.novehlasky">
|
||||||
<application
|
<application
|
||||||
android:label="frontend"
|
android:label="frontend"
|
||||||
android:name="${applicationName}"
|
android:name="${applicationName}"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.example.frontend
|
package app.odweta.novehlasky
|
||||||
|
|
||||||
import io.flutter.embedding.android.FlutterActivity
|
import io.flutter.embedding.android.FlutterActivity
|
||||||
|
|
||||||
|
|||||||
@@ -12,10 +12,7 @@ class FlashcardsPage extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
//return const Center(child: Text('flashcards! flip flip'));
|
|
||||||
final provider = Provider.of<QuoteProvider>(context);
|
final provider = Provider.of<QuoteProvider>(context);
|
||||||
if (provider.randomQuoteText == "dummy" ||
|
|
||||||
provider.randomQuoteText == "quote text") { provider.nextRandomQuote(); } // initialize the random quote variable
|
|
||||||
return Card(
|
return Card(
|
||||||
margin: const EdgeInsets.all(Constants.edgeInset),
|
margin: const EdgeInsets.all(Constants.edgeInset),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
|
|||||||
@@ -64,11 +64,7 @@ class QuoteProvider extends ChangeNotifier {
|
|||||||
filterController.text = '';
|
filterController.text = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
Quote randomQuote = Quote(
|
Quote randomQuote = Quote(id: 0, author: "dummy", body: "text");
|
||||||
id: 0,
|
|
||||||
body: "quote text",
|
|
||||||
author: "dummy"
|
|
||||||
);
|
|
||||||
bool randomQuoteDeterminator = true;
|
bool randomQuoteDeterminator = true;
|
||||||
String get randomQuoteText {
|
String get randomQuoteText {
|
||||||
if (randomQuoteDeterminator) {
|
if (randomQuoteDeterminator) {
|
||||||
|
|||||||
Reference in New Issue
Block a user