Global 처리(시스템 점검, fore->back 등)
시스템 점검
global dialog
global dialog 구현
import 'package:flutter/cupertino.dart';
import 'package:go_router/go_router.dart';
import '../../barrel.dart';
import '../environments/environment.dart';
class RouterConfiguration {
static GlobalKey<NavigatorState> navigatorKey = GlobalKey<NavigatorState>();
static final GoRoute signIn = GoRoute(
path: RouterLocation.signIn,
name: RouterLocation.signIn,
builder: (context, state) {
return const SignInScreen();
},
);
static final GoRouter router = GoRouter(
navigatorKey: navigatorKey,
initialLocation: RouterLocation.splash,
debugLogDiagnostics: Environment.isProduction ? false : true,
routes: [
GoRoute(
path: RouterLocation.splash,
name: RouterLocation.splash,
builder: (context, state) {
return const SplashScreen();
},
routes: [
signIn,
],
),
],
);
}background 에서 foreground 로의 전환
왜, 어떤 경우를 위해 이것을 인지하여야 하는가
폰트 크기 강제
Last updated