This commit is contained in:
jusax23 2023-06-08 16:01:09 +02:00
parent a470eebbe9
commit 8be0b36d23
Signed by: jusax23
GPG key ID: 499E2AA870C1CD41
5 changed files with 22 additions and 3 deletions

2
.gitignore vendored
View file

@ -42,3 +42,5 @@ app.*.map.json
/android/app/debug
/android/app/profile
/android/app/release
/key

View file

@ -51,11 +51,26 @@ android {
versionName flutterVersionName
}
def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
signingConfig signingConfigs.release
}
}
}

View file

@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:ju_learn/main.dart';
// ignore: must_be_immutable
class QuizPageBrowse extends StatefulWidget {
Vault v;
QuizPageBrowse(this.v, {super.key});
@ -22,7 +23,7 @@ class _QuizPageBrowseState extends State<QuizPageBrowse> {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Testing: ${v.name}'),
title: Text('Browsing: ${v.name}'),
),
body: Padding(
padding: const EdgeInsets.all(16.0),

View file

@ -108,7 +108,7 @@ class MainPageState extends State<MainPage> {
ListTile(
leading: const Icon(Icons.book_online),
title: const Text("Browse"),
subtitle: const Text("Browse to all Questions!"),
subtitle: const Text("Browse through all Questions!"),
trailing: const Icon(Icons.chevron_right),
onTap: () {
Navigator.push(

View file

@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:ju_learn/main.dart';
// ignore: must_be_immutable
class QuizPageTest extends StatefulWidget {
Vault v;
QuizPageTest(this.v, {super.key});