feat: complete leave approval MVP

This commit is contained in:
selfrelease
2026-07-18 19:20:07 +08:00
parent 2105fe3bac
commit 090a7e33ce
133 changed files with 7845 additions and 100 deletions
+16 -2
View File
@@ -1,12 +1,26 @@
import 'package:aioa_mobile/app/router.dart';
import 'package:aioa_mobile/app/theme.dart';
import 'package:aioa_mobile/core/auth/auth_session_controller.dart';
import 'package:aioa_mobile/core/auth/login_page.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:aioa_mobile/core/notifications/push_registration_controller.dart';
class AioaApp extends StatelessWidget {
class AioaApp extends ConsumerWidget {
const AioaApp({super.key});
@override
Widget build(BuildContext context) {
Widget build(BuildContext context, WidgetRef ref) {
final auth = ref.watch(authSessionProvider);
if (auth.isLoading) {
return MaterialApp(
debugShowCheckedModeBanner: false,
theme: buildAioaTheme(),
home: const Scaffold(body: Center(child: CircularProgressIndicator())),
);
}
if (auth.value == null) return const LoginPage();
ref.watch(pushRegistrationProvider);
return MaterialApp.router(
title: 'AIOA',
debugShowCheckedModeBanner: false,