make android work

This commit is contained in:
odweta
2026-04-03 17:20:28 +02:00
parent 9854983aa3
commit 032634f461
4 changed files with 4 additions and 10 deletions
@@ -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
android:label="frontend"
android:name="${applicationName}"
@@ -1,4 +1,4 @@
package com.example.frontend
package app.odweta.novehlasky
import io.flutter.embedding.android.FlutterActivity
-3
View File
@@ -12,10 +12,7 @@ class FlashcardsPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
//return const Center(child: Text('flashcards! flip flip'));
final provider = Provider.of<QuoteProvider>(context);
if (provider.randomQuoteText == "dummy" ||
provider.randomQuoteText == "quote text") { provider.nextRandomQuote(); } // initialize the random quote variable
return Card(
margin: const EdgeInsets.all(Constants.edgeInset),
child: Padding(
+1 -5
View File
@@ -64,11 +64,7 @@ class QuoteProvider extends ChangeNotifier {
filterController.text = '';
}
Quote randomQuote = Quote(
id: 0,
body: "quote text",
author: "dummy"
);
Quote randomQuote = Quote(id: 0, author: "dummy", body: "text");
bool randomQuoteDeterminator = true;
String get randomQuoteText {
if (randomQuoteDeterminator) {