Skip to content

Commit

Permalink
Merge pull request #37 from Robert3141/beta
Browse files Browse the repository at this point in the history
v6.2.1
  • Loading branch information
Robert3141 authored Sep 22, 2019
2 parents 50eae20 + dec64ae commit c84ee7d
Show file tree
Hide file tree
Showing 7 changed files with 1,445 additions and 22 deletions.
1 change: 1 addition & 0 deletions android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
org.gradle.jvmargs=-Xmx1536M
android.enableR8=true
10 changes: 10 additions & 0 deletions ios/Flutter/flutter_export_environment.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
# This is a generated file; do not edit or check into version control.
export "FLUTTER_ROOT=C:\src\flutter"
export "FLUTTER_APPLICATION_PATH=C:\Users\Robert\AndroidStudioProjects\Flashcards\master\flashcards"
export "FLUTTER_TARGET=lib\main.dart"
export "FLUTTER_BUILD_DIR=build"
export "SYMROOT=${SOURCE_ROOT}/../build\ios"
export "FLUTTER_FRAMEWORK_DIR=C:\src\flutter\bin\cache\artifacts\engine\ios"
export "FLUTTER_BUILD_NAME=6.2.1"
export "FLUTTER_BUILD_NUMBER=22"
22 changes: 11 additions & 11 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ class Strings{
static String editCardsCardNo = "Card Number: ";
static String editCardsFront = "Front of Card";
static String editCardsRear = "Back of Card";
static String editDelete = "Deleting Card";
static String editDeleting = "Are you sure you want to delete this?";

//Error Messages
static String errorImport = "Error Importing Flashcards:\n";
Expand All @@ -86,7 +88,6 @@ class Strings{
static String errorEdit = "Error Editing Flashcards:\n";
static String errorLoad = "Error Loading Flashcards:\n";
static String errorDelete = "Error Deleting Flashcards:\n";
static String errorDeleting = "Are you sure you want to delete this?";
static String errorNewCard = "Error Getting Next Flashcard:\n";
static String errorLoadPrefs = "Error Loading Settings:\n";
static String errorSettingsOrdered = "Error Changing Ordered Cards:\n";
Expand Down Expand Up @@ -389,8 +390,8 @@ class _MyHomePageState extends State<MyHomePage> {
showDialog(
context: context,
builder: (BuildContext context) => AlertDialog(
title: Text(Strings.errorDelete),
content: Text(Strings.errorDeleting),
title: Text(Strings.editDelete),
content: Text(Strings.editDeleting),
actions: <Widget>[
FlatButton(
child: Text(Strings.errorCancel),
Expand Down Expand Up @@ -584,7 +585,7 @@ class _MyHomePageState extends State<MyHomePage> {
final _tabPages = <Widget>[
//Main Tab
Container(
child: Column(
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
Card(
Expand Down Expand Up @@ -712,8 +713,7 @@ class _MyHomePageState extends State<MyHomePage> {

//Settings Tab
Container(
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
child: ListView(
children: <Widget>[
// Cards Ordered
InkWell(
Expand Down Expand Up @@ -823,7 +823,7 @@ class _MyHomePageState extends State<MyHomePage> {
),
),
],
)
),
),
];

Expand Down Expand Up @@ -924,7 +924,7 @@ class _FlashcardsPage extends MaterialPageRoute<Null> {
//generate random
Random _rng = new Random();
int _randomNumber = 0;
int _amountOfFlashcards = _currentFileData.length ~/ 2 - 1;
int _amountOfFlashcards = _currentFileData.length ~/ 2;

// make random flashcard as next in list
_randomNumber = _rng.nextInt(_amountOfFlashcards) * 2;
Expand Down Expand Up @@ -967,7 +967,7 @@ class _FlashcardsPage extends MaterialPageRoute<Null> {
controller: _scrollControl,
itemBuilder: (BuildContext context, int index) {
return FlipCard(
key: UniqueKey(),
//key: UniqueKey(),
direction: FlipDirection.HORIZONTAL,
speed: 1500,
front: InkWell(
Expand Down Expand Up @@ -1196,8 +1196,8 @@ class _EditCardsState extends State<EditCards> {
showDialog<String>(
context: context,
builder: (BuildContext context) => AlertDialog(
title: Text(Strings.errorEditDelete),
content: Text(Strings.errorDeleting),
title: Text(Strings.editDelete),
content: Text(Strings.editDeleting),
actions: <Widget>[
FlatButton(
child: Text(Strings.errorCancel),
Expand Down
Loading

0 comments on commit c84ee7d

Please sign in to comment.