-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge new app framework into the old project
Rewrote the app to use better code and make it easier to modify This marks beta 1.0
- Loading branch information
Showing
58 changed files
with
1,842 additions
and
837 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"cmake.configureOnOpen": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,121 +1,150 @@ | ||
{ | ||
"pre-match": [ | ||
[ | ||
|
||
{ | ||
"title": "Team Number", | ||
"data-type": "int" | ||
}, | ||
{ | ||
"title": "Match Number", | ||
"data-type": "matchnum" | ||
}, | ||
{ | ||
"title": "Scouter Name", | ||
"data-type": "string" | ||
} | ||
], | ||
"auton": [ | ||
{ | ||
"title": "Pre-Match Data", | ||
"data": [ | ||
|
||
{ | ||
"title": "High Hub Scored", | ||
"data-type": "counter" | ||
}, | ||
{ | ||
"title": "Low Hub Scored", | ||
"data-type": "counter" | ||
}, | ||
{ | ||
"title": "Starting Location", | ||
"data-type": "choice", | ||
"choices": [ | ||
"1", "2", "3", "4" | ||
] | ||
}, | ||
{ | ||
"title": "Left Tarmac", | ||
"data-type": "choice", | ||
"choices": [ | ||
"Yes", "No" | ||
] | ||
} | ||
], | ||
"teleop": [ | ||
{ | ||
"title": "Team Number", | ||
"data-type": "field", | ||
"validation": "^[0-9]*$", | ||
"validate-help": "This should be a valid FRC team" | ||
}, | ||
{ | ||
"title": "Match Number", | ||
"data-type": "field", | ||
"validation": "^[0-9]*$", | ||
"validate-help": "This should be a match number" | ||
}, | ||
{ | ||
"title": "Scouter Name", | ||
"data-type": "field", | ||
"validation": "^[^;]*$", | ||
"validate-help": "This cannot have semicolons in it" | ||
} | ||
] | ||
}, | ||
{ | ||
"title": "Auton Data", | ||
"data": [ | ||
|
||
{ | ||
"title": "High Hub Scored", | ||
"data-type": "counter" | ||
}, | ||
{ | ||
"title": "High Hub Missed", | ||
"data-type": "counter" | ||
}, | ||
{ | ||
"title": "Low Hub Scored", | ||
"data-type": "counter" | ||
}, | ||
{ | ||
"title": "Low Hub Missed", | ||
"data-type": "counter" | ||
}, | ||
{ | ||
"title": "Defense", | ||
"data-type": "choice", | ||
"choices": [ | ||
"None", "Not Effective", "Effective", "Very Effective" | ||
] | ||
} | ||
], | ||
"endgame": [ | ||
{ | ||
"title": "High Hub Scored", | ||
"data-type": "counter" | ||
}, | ||
{ | ||
"title": "Low Hub Scored", | ||
"data-type": "counter" | ||
}, | ||
{ | ||
"title": "Tarmac Image", | ||
"data-type": "displayImage", | ||
"location": "assets/tarmac.png" | ||
}, | ||
{ | ||
"title": "Starting Location", | ||
"data-type": "choice", | ||
"choices": [ | ||
"1", "2", "3", "4" | ||
] | ||
}, | ||
{ | ||
"title": "Left Tarmac", | ||
"data-type": "choice", | ||
"choices": [ | ||
"Yes", "No" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"title": "Teleop Data", | ||
"data": [ | ||
|
||
{ | ||
"title": "Hang Time", | ||
"data-type": "stopwatch" | ||
}, | ||
{ | ||
"title": "Hang Type", | ||
"data-type": "choice", | ||
"choices": [ | ||
"No Hang", "Low Rung", "Mid Rung", "High Rung", "Traversal Rung" | ||
] | ||
} | ||
], | ||
"post-match": [ | ||
{ | ||
"title": "High Hub Scored", | ||
"data-type": "counter" | ||
}, | ||
{ | ||
"title": "High Hub Missed", | ||
"data-type": "counter" | ||
}, | ||
{ | ||
"title": "Low Hub Scored", | ||
"data-type": "counter" | ||
}, | ||
{ | ||
"title": "Low Hub Missed", | ||
"data-type": "counter" | ||
}, | ||
{ | ||
"title": "Defense", | ||
"data-type": "choice", | ||
"choices": [ | ||
"None", "Not Effective", "Effective", "Very Effective" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"title": "Endgame Data", | ||
"data": [ | ||
|
||
{ | ||
"title": "Would you pick this robot?", | ||
"data-type": "choice", | ||
"choices": [ | ||
"1st Pick", "2nd Pick", "No Pick" | ||
] | ||
}, | ||
{ | ||
"title": "Robot Role", | ||
"data-type": "choice", | ||
"choices": [ | ||
"Offense - Launch Pad", | ||
"Offense - Hub Cleanup", | ||
"Defense - Bot to Bot ", | ||
"Defense - Launch Pad Zone", | ||
"Defense - Center Line Zone", | ||
"Defense - Terminal Zone", | ||
"Defense - Circling Hub", | ||
"Defense - Cargo Hitter" | ||
{ | ||
"title": "Hang Time", | ||
"data-type": "stopwatch" | ||
}, | ||
{ | ||
"title": "Hang Type", | ||
"data-type": "choice", | ||
"choices": [ | ||
"No Hang", "Low Rung", "Mid Rung", "High Rung", "Traversal Rung" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"title": "Post-Match Data", | ||
"data": [ | ||
|
||
] | ||
}, | ||
{ | ||
"title": "Penalties", | ||
"data-type": "choice", | ||
"choices": ["Yes", "No"] | ||
}, | ||
{ | ||
"title": "Disabled", | ||
"data-type": "choice", | ||
"choices": ["Yes", "No"] | ||
}, | ||
{ | ||
"title": "General Comments", | ||
"data-type": "string" | ||
} | ||
] | ||
} | ||
{ | ||
"title": "Would you pick this robot?", | ||
"data-type": "choice", | ||
"choices": [ | ||
"1st Pick", "2nd Pick", "No Pick" | ||
] | ||
}, | ||
{ | ||
"title": "Robot Role", | ||
"data-type": "choice", | ||
"choices": [ | ||
"Offense - Launch Pad", | ||
"Offense - Hub Cleanup", | ||
"Defense - Bot to Bot", | ||
"Defense - Launch Pad Zone", | ||
"Defense - Center Line Zone", | ||
"Defense - Terminal Zone", | ||
"Defense - Circling Hub", | ||
"Defense - Cargo Hitter" | ||
|
||
] | ||
}, | ||
{ | ||
"title": "Penalties", | ||
"data-type": "choice", | ||
"choices": ["Yes", "No"] | ||
}, | ||
{ | ||
"title": "Disabled", | ||
"data-type": "choice", | ||
"choices": ["Yes", "No"] | ||
}, | ||
{ | ||
"title": "General Comments", | ||
"data-type": "field", | ||
"validation": "^[^;]*$", | ||
"validate-help": "This cannot have semicolons in it" | ||
} | ||
] | ||
} | ||
] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -478,4 +478,4 @@ | |
/* End XCConfigurationList section */ | ||
}; | ||
rootObject = 97C146E61CF9000F007C117D /* Project object */; | ||
} | ||
} |
Binary file modified
BIN
+46.7 KB
(540%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-85 Bytes
(85%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-74 Bytes
(94%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+488 Bytes
(130%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-252 Bytes
(75%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+290 Bytes
(120%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.59 KB
(180%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-74 Bytes
(94%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.2 KB
(160%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.4 KB
(190%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.4 KB
(190%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4.25 KB
(210%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.05 KB
(160%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.48 KB
(210%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.83 KB
(210%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import 'dart:convert'; | ||
|
||
import 'package:flutter/services.dart'; | ||
|
||
class Configurator { | ||
static Configurator? _instance; | ||
|
||
List _data = []; | ||
|
||
Configurator._(); | ||
|
||
static Configurator getInstance() { | ||
_instance ??= Configurator._(); | ||
return _instance!; | ||
} | ||
|
||
Future<void> readConfigJson() async { | ||
rootBundle.loadString("assets/config.json").then((response) { | ||
_data = json.decode(response); | ||
}); | ||
} | ||
|
||
List getEntireData() { | ||
return _data; | ||
} | ||
|
||
Map getSection(int index) { | ||
return _data[index]; | ||
} | ||
|
||
int getListLength() { | ||
return _data.length; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.