Skip to content

Commit 5bac619

Browse files
author
NAVAL
authored
Merge pull request #28 from aeri/wip
preparing version 1.6.0
2 parents 286e557 + 6fd8b4a commit 5bac619

39 files changed

+246
-154
lines changed

android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if (keystorePropertiesFile.exists()) {
3131
android {
3232

3333

34-
compileSdkVersion 28
34+
compileSdkVersion 29
3535

3636
lintOptions {
3737
disable 'InvalidPackage'
@@ -40,7 +40,7 @@ android {
4040
defaultConfig {
4141
applicationId "com.LAPARCELA.nihonoari"
4242
minSdkVersion 16
43-
targetSdkVersion 28
43+
targetSdkVersion 29
4444
versionCode flutterVersionCode.toInteger()
4545
versionName flutterVersionName
4646
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

android/app/src/main/AndroidManifest.xml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
flutter needs it to communicate with the running application
66
to allow setting breakpoints, to provide hot reload, etc.
77
8-
<uses-permission android:name="android.permission.INTERNET"/>
8+
<uses-permission android:name="android.permission.INTERNET"/>
99
1010
-->
11+
1112
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
1213
calls FlutterMain.startInitialization(this); in its onCreate method.
1314
In most cases you can leave this as-is, but you if you want to provide
@@ -18,7 +19,7 @@
1819
android:label="@string/app_name"
1920
android:icon="@mipmap/ic_launcher">
2021
<activity
21-
android:name=".MainActivity"
22+
android:name="io.flutter.embedding.android.FlutterActivity"
2223
android:launchMode="singleTop"
2324
android:theme="@style/LaunchTheme"
2425
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density"
@@ -29,13 +30,15 @@
2930
until Flutter renders its first frame. It can be removed if
3031
there is no splash screen (such as the default splash screen
3132
defined in @style/LaunchTheme). -->
32-
<meta-data
33-
android:name="io.flutter.app.android.SplashScreenUntilFirstFrame"
34-
android:value="true" />
33+
34+
3535
<intent-filter>
3636
<action android:name="android.intent.action.MAIN"/>
3737
<category android:name="android.intent.category.LAUNCHER"/>
3838
</intent-filter>
3939
</activity>
40+
<meta-data
41+
android:name="flutterEmbedding"
42+
android:value="2" />
4043
</application>
4144
</manifest>

android/app/src/main/java/co/appbrewery/quizzler/MainActivity.java

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,18 @@
11
package io.flutter.plugins;
22

3-
import io.flutter.plugin.common.PluginRegistry;
4-
import io.flutter.plugins.sharedpreferences.SharedPreferencesPlugin;
3+
import androidx.annotation.Keep;
4+
import androidx.annotation.NonNull;
5+
6+
import io.flutter.embedding.engine.FlutterEngine;
57

68
/**
79
* Generated file. Do not edit.
10+
* This file is generated by the Flutter tool based on the
11+
* plugins that support the Android platform.
812
*/
13+
@Keep
914
public final class GeneratedPluginRegistrant {
10-
public static void registerWith(PluginRegistry registry) {
11-
if (alreadyRegisteredWith(registry)) {
12-
return;
13-
}
14-
SharedPreferencesPlugin.registerWith(registry.registrarFor("io.flutter.plugins.sharedpreferences.SharedPreferencesPlugin"));
15-
}
16-
17-
private static boolean alreadyRegisteredWith(PluginRegistry registry) {
18-
final String key = GeneratedPluginRegistrant.class.getCanonicalName();
19-
if (registry.hasPlugin(key)) {
20-
return true;
21-
}
22-
registry.registrarFor(key);
23-
return false;
15+
public static void registerWith(@NonNull FlutterEngine flutterEngine) {
16+
flutterEngine.getPlugins().add(new io.flutter.plugins.sharedpreferences.SharedPreferencesPlugin());
2417
}
2518
}

assets/MPLUS1p-Black.ttf

1.69 MB
Binary file not shown.

assets/MPLUS1p-Bold.ttf

1.68 MB
Binary file not shown.

assets/MPLUS1p-ExtraBold.ttf

1.69 MB
Binary file not shown.

assets/MPLUS1p-Light.ttf

1.68 MB
Binary file not shown.

assets/MPLUS1p-Medium.ttf

1.67 MB
Binary file not shown.

assets/MPLUS1p-Regular.ttf

1.67 MB
Binary file not shown.

assets/MPLUS1p-Thin.ttf

1.69 MB
Binary file not shown.

assets/apple-tp_bold.ttf

-1.09 MB
Binary file not shown.

assets/apple-tp_extrathin.ttf

-1.09 MB
Binary file not shown.

assets/apple-tp_medium.ttf

-1.08 MB
Binary file not shown.

assets/apple-tp_semibold.ttf

-1.08 MB
Binary file not shown.

assets/apple-tp_text.ttf

-1.1 MB
Binary file not shown.

assets/apple-tp_thin.ttf

-1.09 MB
Binary file not shown.

assets/apple-tp_ultralight.ttf

-1.1 MB
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* Дададзена функцыя зваротнага тэставання (Rōmaji -> Kana)
2+
* Выпраўленая віктарына пасля вяртання ў меню
3+
* Нязначныя змены ў карыстальніцкім інтэрфейсе
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* Added reverse function (Rōmaji to Kana)
2+
* Fixed quiz after back to main menu
3+
* Minor UI changes
Loading
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* Añadida la función de test inverso (Rōmaji a Kana)
2+
* Arreglado el cuestionario tras volver al menú principal
3+
* Cambios menores en la interfaz de usuario
Loading
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* Ajout de la fonction de test inversé (Rōmaji -> Kana)
2+
* Amélioration du questionnaire après le passage au menu
3+
* Changements mineurs dans l'interface utilisateur
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* Добавлена функция обратного теста (Rōmaji -> Kana)
2+
* Исправлена викторина после возврата в меню
3+
* Незначительные изменения пользовательского интерфейса
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* Додана функція зворотного тестування (Rōmaji -> Kana)
2+
* Виправлена ​​вікторина після повернення до меню
3+
* Незначні зміни в інтерфейсі користувача

i18n/be.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,9 @@
1414
"quiz_enter": "Увядзіце рамаджы",
1515
"quiz_correct": "Правільны адказ",
1616
"quiz_stoptit" : "Спыніць тэст",
17-
"quiz_stopmes" : "Вярнуцца ў галоўнае меню?"
18-
}
17+
"quiz_stopmes" : "Вярнуцца ў галоўнае меню?",
18+
"main_rset" : "Reverse",
19+
"main_reverse" : "Паказаць rōmaji/Enter Kana",
20+
"quiz_enter_hira" : "Увядзіце Хіраганы",
21+
"quiz_enter_kata" : "Увядзіце Катаканы"
22+
}

i18n/en.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,9 @@
1414
"quiz_enter": "Input rōmaji",
1515
"quiz_correct": "Correct answer",
1616
"quiz_stoptit" : "Stop quiz",
17-
"quiz_stopmes" : "Return to the main menu?"
17+
"quiz_stopmes" : "Return to the main menu?",
18+
"main_rset" : "Reverse",
19+
"main_reverse" : "Show rōmaji/Enter Kana",
20+
"quiz_enter_hira" : "Input hiragana",
21+
"quiz_enter_kata" : "Input katakana"
1822
}

i18n/es.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,9 @@
1414
"quiz_enter": "Escribe rōmaji",
1515
"quiz_correct": "Respuesta correcta",
1616
"quiz_stoptit" : "Detener prueba",
17-
"quiz_stopmes" : "¿Volver al menú principal?"
17+
"quiz_stopmes" : "¿Volver al menú principal?",
18+
"main_rset" : "Inversa",
19+
"main_reverse" : "Muestra rōmaji/Introduce Kana",
20+
"quiz_enter_hira" : "Escribe hiragana",
21+
"quiz_enter_kata" : "Escribe katakana"
1822
}

i18n/fr.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,9 @@
1414
"quiz_enter": "Écris rōmaji",
1515
"quiz_correct": "Réponse correcte",
1616
"quiz_stoptit" : "Arrêter le test",
17-
"quiz_stopmes" : "Retour au menu principal?"
17+
"quiz_stopmes" : "Retour au menu principal?",
18+
"main_rset" : "Investi",
19+
"main_reverse" : "Montrer rōmaji/Écris Kana",
20+
"quiz_enter_hira" : "Écris hiragana",
21+
"quiz_enter_kata" : "Écris katakana"
1822
}

i18n/ru.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,9 @@
1414
"quiz_enter": "Введите ромадзи",
1515
"quiz_correct": "Верный ответ",
1616
"quiz_stoptit" : "Остановить тест",
17-
"quiz_stopmes" : "Вернуться в главное меню?"
17+
"quiz_stopmes" : "Вернуться в главное меню?",
18+
"main_rset" : "Задний ход",
19+
"main_reverse" : "Покажи ромаджи/Введите Кана",
20+
"quiz_enter_hira" : "Введите Хираганы",
21+
"quiz_enter_kata" : "Введите Катаканы"
1822
}

i18n/uk.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,10 @@
1414
"quiz_enter": "Введіть ромадзі",
1515
"quiz_correct": "Правильна відповідь",
1616
"quiz_stoptit" : "Зупинити тест",
17-
"quiz_stopmes" : "Повернутися в головне меню?"
17+
"quiz_stopmes" : "Повернутися в головне меню?",
18+
"main_reverse" : "Reverse",
19+
"main_rset" : "Reverse",
20+
"main_reverse" : "Покажи ромадзі/Введіть Кана",
21+
"quiz_enter_hira" : "Введіть Хіраґани",
22+
"quiz_enter_kata" : "Введіть Катакани"
1823
}

lib/Question.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@ class Question{
2121

2222
String question;
2323
String answer;
24+
String type;
2425

25-
Question(String q, String a) {
26+
27+
Question(String q, String a, String t) {
2628
question = q;
2729
answer = a;
30+
type = t;
2831
}
2932
}

lib/UI.Utils/IconCreator.dart

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import 'package:flutter/cupertino.dart';
2+
import 'package:flutter/material.dart';
3+
4+
class IconCreator extends StatelessWidget {
5+
6+
IconCreator(this.icon);
7+
8+
final String icon;
9+
10+
@override
11+
Widget build(BuildContext context) {
12+
return new Container(
13+
decoration: new BoxDecoration(
14+
color: Colors.white,
15+
borderRadius: new BorderRadius.circular(4.0),
16+
),
17+
padding: EdgeInsets.symmetric(vertical: 1, horizontal: 1),
18+
//padding: new EdgeInsets.all(4.0),
19+
height: 25.0,
20+
width: 25.0,
21+
child: Align(
22+
alignment: Alignment.center,
23+
child: new Text(
24+
icon,
25+
style: new TextStyle(
26+
fontSize: 16.0,
27+
fontFamily: "MP1P_BOLD",
28+
fontStyle: FontStyle.normal,
29+
color: Colors.black,
30+
),
31+
),
32+
),
33+
);
34+
}
35+
}

0 commit comments

Comments
 (0)