// Chanora Flutter application entry point. // // Scaffold only. This file is the minimum viable wiring to demonstrate // the i18n architecture (DEC-015: English + Chinese Simplified) and to // give `flutter analyze` and `flutter build linux --debug` something // to compile. Real product UI lands later when the Chanora Design // System is implemented per docs/ui-ux/. import 'package:flutter/material.dart'; import 'l10n/generated/app_localizations.dart'; void main() { runApp(const ChanoraApp()); } class ChanoraApp extends StatelessWidget { const ChanoraApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( onGenerateTitle: (ctx) => AppL10n.of(ctx).appTitle, theme: ThemeData( useMaterial3: true, colorSchemeSeed: const Color(0xFF3F51B5), ), // DEC-015 (register v0.9.5): English + Chinese Simplified at MVP. // i18n-ready architecture; additional locales add an ARB file // under lib/l10n and a Locale entry here. localizationsDelegates: AppL10n.localizationsDelegates, supportedLocales: AppL10n.supportedLocales, home: const _HomeScreen(), ); } } class _HomeScreen extends StatelessWidget { const _HomeScreen(); @override Widget build(BuildContext context) { final l10n = AppL10n.of(context); final theme = Theme.of(context); return Scaffold( appBar: AppBar(title: Text(l10n.appTitle)), body: Padding( padding: const EdgeInsets.all(24), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Text(l10n.homeGreeting, style: theme.textTheme.headlineSmall), const SizedBox(height: 16), Container( padding: const EdgeInsets.all(12), decoration: BoxDecoration( color: theme.colorScheme.surfaceContainerHighest, borderRadius: BorderRadius.circular(8), ), child: Text(l10n.homeNotProductionReadyBanner), ), const SizedBox(height: 24), FilledButton( onPressed: null, // wired in a later phase child: Text(l10n.connectAction), ), ], ), ), ); } }