Skip to content

Commit 01f2b01

Browse files
committed
pre provs inital
1 parent a9e600d commit 01f2b01

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

android/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ GeneratedPluginRegistrant.java
1111
key.properties
1212
**/*.keystore
1313
**/*.jks
14+
/app/.cxx

android/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pluginManagement {
1919
plugins {
2020
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
2121
id "com.android.application" version "7.4.2" apply false
22-
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
22+
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
2323
}
2424

2525
include ":app"

lib/components/navigation/components/SidebarItem.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ class _SidebarItemState extends State<SidebarItem> {
2727
const TextStyle(fontFamily: 'Futura', fontWeight: FontWeight.bold),
2828
),
2929
onTap: () =>
30-
Navigator.push(context, MaterialPageRoute(builder: (context) {
30+
Navigator.pushAndRemoveUntil(context, MaterialPageRoute(builder: (context) {
3131
return widget.route;
32-
})),
32+
}), (r) => false),
3333
);
3434
}
3535
}

lib/routes/qrcode/QRCodeRoute.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ class _QRCodeRouteState extends State<QRCodeRoute> {
119119
AppDataHelper.resetStates();
120120
});
121121
Navigator.of(context, rootNavigator: true).pop('dialog');
122-
Navigator.push(context, MaterialPageRoute(builder: (context) {
122+
Navigator.pushAndRemoveUntil(context, MaterialPageRoute(builder: (context) {
123123
return const PrematchRoute(title: "Prematch Data");
124-
}));
124+
}), (r) => false);
125125
},
126126
);
127127

lib/utils/data/values/TeleoperatedValues.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,7 @@ class TeleoperatedValues {
2525
TeleoperatedValues.algaeProcessor.text = "0";
2626
TeleoperatedValues.algaeBarge.text = "0";
2727
TeleoperatedValues.defenseTime.text = "0";
28+
TeleoperatedValues.stopwatch.stop();
29+
TeleoperatedValues.stopwatch.reset();
2830
}
2931
}

lib/utils/helpers/AppDataHelper.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class AppDataHelper {
3030
if (!await file.exists()) {
3131
await file.create();
3232
}
33-
await file.writeAsString("$data\n", mode: FileMode.append);
33+
await file.writeAsString(data);
3434
} else {
3535
throw Exception('Permission denied');
3636
}

0 commit comments

Comments
 (0)