35 lines
933 B
Dart
35 lines
933 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_localizations/flutter_localizations.dart';
|
|
import 'package:intl/date_symbol_data_local.dart';
|
|
|
|
import 'screens/login_page.dart';
|
|
|
|
Future<void> main() async {
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
await initializeDateFormatting('it_IT');
|
|
runApp(const MyApp());
|
|
}
|
|
|
|
class MyApp extends StatelessWidget {
|
|
const MyApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
debugShowCheckedModeBanner: false,
|
|
title: 'Yogibook',
|
|
theme: ThemeData(useMaterial3: true),
|
|
|
|
localizationsDelegates: const [
|
|
GlobalMaterialLocalizations.delegate,
|
|
GlobalWidgetsLocalizations.delegate,
|
|
GlobalCupertinoLocalizations.delegate,
|
|
],
|
|
supportedLocales: const [Locale('it', 'IT'), Locale('en', 'US')],
|
|
locale: const Locale('it', 'IT'),
|
|
|
|
home: const LoginPage(),
|
|
);
|
|
}
|
|
}
|