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,
  );
}
