anyway/frontend/lib/main.dart
Remy Moll 03cf58ce43
Some checks failed
Build and deploy the backend to staging / Build and push image (pull_request) Successful in 2m36s
Run linting on the backend code / Build (pull_request) Successful in 28s
Run testing on the backend code / Build (pull_request) Failing after 18m37s
Build and release debug APK / Build APK (pull_request) Failing after 4m42s
Build and deploy the backend to staging / Deploy to staging (pull_request) Successful in 31s
revamped onboarding
2025-02-25 19:18:44 +01:00

27 lines
722 B
Dart

import 'package:flutter/material.dart';
import 'package:anyway/constants.dart';
import 'package:anyway/utils/get_first_page.dart';
import 'package:anyway/utils/load_trips.dart';
void main() => runApp(const App());
// Some global variables
final GlobalKey<ScaffoldMessengerState> rootScaffoldMessengerKey = GlobalKey<ScaffoldMessengerState>();
final SavedTrips savedTrips = SavedTrips();
// the list of saved trips is then populated implicitly by getFirstPage()
class App extends StatelessWidget {
const App({super.key});
@override
Widget build(BuildContext context) => MaterialApp(
title: APP_NAME,
home: getFirstPage(),
theme: APP_THEME,
scaffoldMessengerKey: rootScaffoldMessengerKey
);
}