Misspellings and Check boxes.
This commit is contained in:
parent
b20d017b82
commit
5431fb87de
1 changed files with 9 additions and 9 deletions
|
|
@ -151,12 +151,12 @@ class _NotesPageState extends State<NotesPage> {
|
||||||
keyboardType: TextInputType.multiline,
|
keyboardType: TextInputType.multiline,
|
||||||
),
|
),
|
||||||
CheckboxListTile(
|
CheckboxListTile(
|
||||||
title: Text('Can Score Alge'),
|
title: Text('Can Score Algae'),
|
||||||
value: _switchvalue.text.contains('Can Score Alge'),
|
value: _switchvalue.text.contains('Can Score Algae'),
|
||||||
onChanged: (bool? value) {
|
onChanged: (bool? value) {
|
||||||
setState(() {
|
setState(() {
|
||||||
if (value == true) {
|
if (value == true) {
|
||||||
_switchvalue.text = 'Yes ';
|
_switchvalue.text = 'Can Score Algae ';
|
||||||
} else {
|
} else {
|
||||||
_switchvalue.text = '';
|
_switchvalue.text = '';
|
||||||
}
|
}
|
||||||
|
|
@ -164,12 +164,12 @@ class _NotesPageState extends State<NotesPage> {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
CheckboxListTile(
|
CheckboxListTile(
|
||||||
title: Text('Cannot Score Alge'),
|
title: Text('Cannot Score Algae'),
|
||||||
value: _switchvalue.text.contains('Cannot Score Alge'),
|
value: _switchvalue.text.contains('Cannot Score Algae'),
|
||||||
onChanged: (bool? value) {
|
onChanged: (bool? value) {
|
||||||
setState(() {
|
setState(() {
|
||||||
if (value == true) {
|
if (value == true) {
|
||||||
_switchvalue.text = 'No ';
|
_switchvalue.text = 'Cannot Score Algae ';
|
||||||
} else {
|
} else {
|
||||||
_switchvalue.text = '';
|
_switchvalue.text = '';
|
||||||
}
|
}
|
||||||
|
|
@ -218,7 +218,7 @@ class _TeamPickerState extends State<TeamPicker> {
|
||||||
header.add('Team Number');
|
header.add('Team Number');
|
||||||
header.add('Bot Position');
|
header.add('Bot Position');
|
||||||
header.add('Auton Rundown');
|
header.add('Auton Rundown');
|
||||||
header.add('Can Score Alge');
|
header.add('Can Score Algae');
|
||||||
header.add('Coral Level');
|
header.add('Coral Level');
|
||||||
List<List<String>> dataLists = [];
|
List<List<String>> dataLists = [];
|
||||||
for (int i = 0; i < teamCodes.length; i++) {
|
for (int i = 0; i < teamCodes.length; i++) {
|
||||||
|
|
@ -227,11 +227,11 @@ class _TeamPickerState extends State<TeamPicker> {
|
||||||
SharedPreferences prefs = await SharedPreferences.getInstance();
|
SharedPreferences prefs = await SharedPreferences.getInstance();
|
||||||
String botPosition = prefs.getString('${teamCodes[i]}_${widget.eventCode}_note1') ?? '';
|
String botPosition = prefs.getString('${teamCodes[i]}_${widget.eventCode}_note1') ?? '';
|
||||||
String autonRundown = prefs.getString('${teamCodes[i]}_${widget.eventCode}_note2') ?? '';
|
String autonRundown = prefs.getString('${teamCodes[i]}_${widget.eventCode}_note2') ?? '';
|
||||||
String canScoreAlge = prefs.getString('${teamCodes[i]}_${widget.eventCode}_note3') ?? '';
|
String canScoreAlgae = prefs.getString('${teamCodes[i]}_${widget.eventCode}_note3') ?? '';
|
||||||
String coralLevel = prefs.getString('${teamCodes[i]}_${widget.eventCode}_note4') ?? '0.0';
|
String coralLevel = prefs.getString('${teamCodes[i]}_${widget.eventCode}_note4') ?? '0.0';
|
||||||
data.add(botPosition);
|
data.add(botPosition);
|
||||||
data.add(autonRundown);
|
data.add(autonRundown);
|
||||||
data.add(canScoreAlge);
|
data.add(canScoreAlgae);
|
||||||
data.add(coralLevel);
|
data.add(coralLevel);
|
||||||
dataLists.add(data);
|
dataLists.add(data);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue