* Created default project * Added client to .vscode/launch.json * Ignore .vscode/settings.json * Some data scraping * Client skeleton * Client data types and fromJson() functions * Final touches on JSON * Added ApiService * ApiService changes * Prototype for stops * ViewModel and UI * Basic client UI
27 lines
598 B
Dart
27 lines
598 B
Dart
import "package:flutter/material.dart";
|
|
|
|
import "package:client/models.dart";
|
|
import "package:client/pages.dart";
|
|
import "package:client/services.dart";
|
|
|
|
Future<void> main() async {
|
|
await services.init();
|
|
await models.init();
|
|
await models.initFromOthers();
|
|
runApp(const ClientApp());
|
|
}
|
|
|
|
/// The main app widget.
|
|
class ClientApp extends StatelessWidget {
|
|
/// A const constructor.
|
|
const ClientApp();
|
|
|
|
@override
|
|
Widget build(BuildContext context) => MaterialApp.router(
|
|
title: "Flutter Demo",
|
|
theme: ThemeData(
|
|
useMaterial3: true,
|
|
),
|
|
routerConfig: router,
|
|
);
|
|
}
|