31 lines
839 B
Dart
31 lines
839 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
|
import 'package:google_fonts/google_fonts.dart';
|
|
import 'bloc/book/book_bloc.dart';
|
|
import 'widgets/bottom_nav_shell.dart';
|
|
import 'theme/app_theme.dart';
|
|
|
|
void main() async {
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
await GoogleFonts.pendingFonts([GoogleFonts.inter()]);
|
|
runApp(const BookshelfApp());
|
|
}
|
|
|
|
class BookshelfApp extends StatelessWidget {
|
|
const BookshelfApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return BlocProvider(
|
|
create: (_) => BookBloc(),
|
|
child: MaterialApp(
|
|
title: 'Книжная полка',
|
|
debugShowCheckedModeBanner: false,
|
|
theme: AppTheme.lightTheme(),
|
|
themeMode: ThemeMode.light,
|
|
home: const BottomNavShell(),
|
|
),
|
|
);
|
|
}
|
|
}
|