Skip to content

Commit

Permalink
scoreKeeper to manage assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrozopayares committed Oct 3, 2021
1 parent 843f6f2 commit 7b9910e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 21 deletions.
4 changes: 2 additions & 2 deletions ios/Flutter/flutter_export_environment.sh
@@ -1,14 +1,14 @@
#!/bin/sh
# This is a generated file; do not edit or check into version control.
export "FLUTTER_ROOT=/users/pedrozopayares/flutter"
export "FLUTTER_ROOT=/Users/pedrozopayares/flutter"
export "FLUTTER_APPLICATION_PATH=/Users/pedrozopayares/Development/quizzler-flutter"
export "COCOAPODS_PARALLEL_CODE_SIGN=true"
export "FLUTTER_TARGET=/Users/pedrozopayares/Development/quizzler-flutter/lib/main.dart"
export "FLUTTER_BUILD_DIR=build"
export "SYMROOT=${SOURCE_ROOT}/../build/ios"
export "FLUTTER_BUILD_NAME=1.0.0"
export "FLUTTER_BUILD_NUMBER=1"
export "DART_DEFINES=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ=="
export "DART_DEFINES=Zmx1dHRlci5pbnNwZWN0b3Iuc3RydWN0dXJlZEVycm9ycz10cnVl,RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ=="
export "DART_OBFUSCATION=false"
export "TRACK_WIDGET_CREATION=true"
export "TREE_SHAKE_ICONS=false"
Expand Down
49 changes: 30 additions & 19 deletions lib/main.dart
Expand Up @@ -25,6 +25,30 @@ class QuizPage extends StatefulWidget {
}

class _QuizPageState extends State<QuizPage> {

List<Icon> scoreKeeper = [
Icon(
Icons.check,
color: Colors.green,
),
Icon(
Icons.close,
color: Colors.red,
),
Icon(
Icons.check,
color: Colors.green,
),
Icon(
Icons.check,
color: Colors.green,
),
Icon(
Icons.check,
color: Colors.green,
),
];

@override
Widget build(BuildContext context) {
return Column(
Expand Down Expand Up @@ -61,7 +85,11 @@ class _QuizPageState extends State<QuizPage> {
),
),
onPressed: () {
//The user picked true.
setState(() {
scoreKeeper.add(
Icon( Icons.check, color: Colors.green )
);
});
},
),
),
Expand All @@ -85,24 +113,7 @@ class _QuizPageState extends State<QuizPage> {
),
),
Row(
children: <Widget>[
Icon(
Icons.check,
color: Colors.green,
),
Icon(
Icons.close,
color: Colors.red,
),
Icon(
Icons.check,
color: Colors.green,
),
Icon(
Icons.check,
color: Colors.green,
),
],
children: scoreKeeper,
)
],
);
Expand Down

0 comments on commit 7b9910e

Please sign in to comment.