automatically save a trip when it is first created
Some checks failed
Build and deploy the backend to staging / Build and push image (pull_request) Successful in 2m38s
Run linting on the backend code / Build (pull_request) Successful in 28s
Run testing on the backend code / Build (pull_request) Failing after 5m22s
Build and deploy the backend to staging / Deploy to staging (pull_request) Successful in 24s
Build and release debug APK / Build APK (pull_request) Failing after 3m29s

This commit is contained in:
2025-03-23 20:05:18 +01:00
parent 02133a4abe
commit 2288a50b60
2 changed files with 4 additions and 3 deletions

View File

@@ -19,8 +19,6 @@ class _saveButtonState extends State<saveButton> {
return ElevatedButton(
onPressed: () async {
savedTrips.addTrip(widget.trip);
// SharedPreferences prefs = await SharedPreferences.getInstance();
// setState(() => widget.trip.toPrefs(prefs));
rootScaffoldMessengerKey.currentState!.showSnackBar(
SnackBar(
content: Text('Trip saved'),