bare implementation of comuncation with the api
All checks were successful
Build and push docker image / Build (pull_request) Successful in 2m6s
Build and release APK / Build APK (pull_request) Successful in 4m32s

This commit is contained in:
2024-08-01 22:48:28 +02:00
parent 016622c7af
commit 5748630b99
5 changed files with 94 additions and 39 deletions

View File

@@ -63,9 +63,8 @@ class _NewTripPageState extends State<NewTripPage> {
double.parse(latController.text),
double.parse(lonController.text)
];
UserPreferences preferences = UserPreferences();
preferences.load();
Future<Trip> trip = fetchTrip(startPoint, preferences);
Future<UserPreferences> preferences = loadUserPreferences();
Future<Trip>? trip = fetchTrip(startPoint, preferences);
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => BasePage(mainScreen: "map", trip: trip)