Files
Yuriy Panov 2f97873095 Fix import paths and test issues
- Fixed test file import paths to point to correct Bloc file locations
- Fixed Bloc file import paths for models (../../../models/models.dart)
- Added explicit type annotations to resolve null safety warnings
- Fixed null safety issues in wishlist_bloc_test.dart
- All 70 tests now passing
2026-02-04 15:28:59 +06:00

43 lines
1.2 KiB
Dart

import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'bloc/app_bloc.dart';
import 'features/home/home_screen.dart';
void main() {
runApp(const BookshelfApp());
}
class BookshelfApp extends StatelessWidget {
const BookshelfApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Книжная полка',
debugShowCheckedModeBanner: false,
theme: ThemeData(
useMaterial3: true,
brightness: Brightness.dark,
scaffoldBackgroundColor: const Color(0xFF112116),
colorScheme: ColorScheme.dark(
primary: const Color(0xFF17CF54),
surface: const Color(0xFF1A3222),
surfaceContainer: const Color(0xFF244730),
onSurface: Colors.white,
onSurfaceVariant: const Color(0xFF93C8A5),
),
appBarTheme: const AppBarTheme(
backgroundColor: Color(0xFF112116),
elevation: 0,
centerTitle: true,
),
cardColor: const Color(0xFF1A3023),
fontFamily: 'Inter',
),
home: BlocProvider(
create: (context) => AppBloc(),
child: const HomeScreen(),
),
);
}
}