111
This commit is contained in:
@@ -10,6 +10,7 @@ import 'package:shared_preferences/shared_preferences.dart';
|
||||
import 'core/network/dio_client.dart';
|
||||
import 'core/storage/local_storage.dart';
|
||||
import 'core/theme/app_color_scheme.dart';
|
||||
import 'core/event/app_event_bus.dart';
|
||||
import 'data/services/user_service.dart';
|
||||
import 'data/services/market_service.dart';
|
||||
import 'data/services/trade_service.dart';
|
||||
@@ -86,6 +87,7 @@ class MyApp extends StatelessWidget {
|
||||
),
|
||||
// Services
|
||||
Provider<DioClient>.value(value: dioClient),
|
||||
Provider<AppEventBus>(create: (_) => AppEventBus()),
|
||||
Provider<UserService>(create: (_) => UserService(dioClient)),
|
||||
Provider<MarketService>(create: (_) => MarketService(dioClient)),
|
||||
Provider<TradeService>(create: (_) => TradeService(dioClient)),
|
||||
@@ -108,6 +110,7 @@ class MyApp extends StatelessWidget {
|
||||
create: (ctx) => AssetProvider(
|
||||
ctx.read<AssetService>(),
|
||||
ctx.read<FundService>(),
|
||||
ctx.read<AppEventBus>(),
|
||||
),
|
||||
),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user