Skip to content

Commit

Permalink
Add BlocProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
SepehrFakoori committed Jul 11, 2024
1 parent dc6ceb4 commit 057124a
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
import 'package:currency_exchange_rate_app_flutter/bloc/home/home_bloc.dart';
import 'package:currency_exchange_rate_app_flutter/bloc/home/home_event.dart';
import 'package:currency_exchange_rate_app_flutter/constants/app_colors.dart';
import 'package:currency_exchange_rate_app_flutter/data/model/financial_Item.dart';
import 'package:currency_exchange_rate_app_flutter/di/di.dart';
import 'package:currency_exchange_rate_app_flutter/screens/home_screen.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:hive_flutter/hive_flutter.dart';

void main() async {
await Hive.initFlutter();
Hive.registerAdapter(FinancialItemAdapter());
await Hive.openBox<FinancialItem>('FinancialItemBox');
await getItInit();
runApp(const MyApp());
}
Expand All @@ -21,19 +26,18 @@ class MyApp extends StatelessWidget {
debugShowCheckedModeBanner: false,
theme: ThemeData(
textTheme: GoogleFonts.poppinsTextTheme(
TextTheme(
headlineLarge: const TextStyle(
fontSize: 25,
const TextTheme(
titleLarge: TextStyle(
fontWeight: FontWeight.bold,
color: AppColors.highEmphasisColor
),
headlineMedium: const TextStyle(
fontSize: 20,
fontWeight: FontWeight.w700,
bodyLarge: TextStyle(
fontWeight: FontWeight.bold,
color: AppColors.highEmphasisColor
),
headlineSmall: TextStyle(
fontSize: 18,
fontWeight: FontWeight.w700,
color: AppColors.mediumEmphasisColor,
labelLarge: TextStyle(
fontWeight: FontWeight.bold,
color: AppColors.lowEmphasisColor,
),
),
),
Expand Down

0 comments on commit 057124a

Please sign in to comment.