add auth, format

This commit is contained in:
Phuoc Nguyen
2025-11-07 11:52:06 +07:00
parent 24a8508fce
commit 3803bd26e0
173 changed files with 8505 additions and 7116 deletions

View File

@@ -33,7 +33,6 @@ class WorkerApp extends ConsumerWidget {
theme: AppTheme.lightTheme(),
darkTheme: AppTheme.darkTheme(),
themeMode: ThemeMode.light, // TODO: Make this configurable from settings
// ==================== Localization Configuration ====================
// Support for Vietnamese (primary) and English (secondary)
localizationsDelegates: const [
@@ -53,8 +52,10 @@ class WorkerApp extends ConsumerWidget {
],
// Default locale (Vietnamese)
locale: const Locale('vi', 'VN'), // TODO: Make this configurable from settings
locale: const Locale(
'vi',
'VN',
), // TODO: Make this configurable from settings
// Locale resolution strategy
localeResolutionCallback: (locale, supportedLocales) {
// Check if the device locale is supported
@@ -71,9 +72,7 @@ class WorkerApp extends ConsumerWidget {
// ==================== Material App Configuration ====================
// Builder for additional context-dependent widgets
builder: (context, child) {
return _AppBuilder(
child: child ?? const SizedBox.shrink(),
);
return _AppBuilder(child: child ?? const SizedBox.shrink());
},
);
}
@@ -86,9 +85,7 @@ class WorkerApp extends ConsumerWidget {
/// - Connectivity listener
/// - Global overlays (loading, snackbars)
class _AppBuilder extends ConsumerWidget {
const _AppBuilder({
required this.child,
});
const _AppBuilder({required this.child});
final Widget child;
@@ -116,4 +113,3 @@ class _AppBuilder extends ConsumerWidget {
);
}
}