111
This commit is contained in:
@@ -18,12 +18,9 @@ import 'data/services/trade_service.dart';
|
||||
import 'data/services/asset_service.dart';
|
||||
import 'data/services/fund_service.dart';
|
||||
import 'data/services/bonus_service.dart';
|
||||
import 'data/services/kline_service.dart';
|
||||
import 'data/services/kline_websocket_service.dart';
|
||||
import 'providers/auth_provider.dart';
|
||||
import 'providers/market_provider.dart';
|
||||
import 'providers/asset_provider.dart';
|
||||
import 'providers/kline_provider.dart';
|
||||
import 'providers/theme_provider.dart';
|
||||
import 'ui/pages/auth/login_page.dart';
|
||||
import 'ui/pages/main/main_page.dart';
|
||||
@@ -104,8 +101,6 @@ class MyApp extends StatelessWidget {
|
||||
Provider<AssetService>(create: (_) => AssetService(dioClient)),
|
||||
Provider<FundService>(create: (_) => FundService(dioClient)),
|
||||
Provider<BonusService>(create: (_) => BonusService(dioClient)),
|
||||
Provider<KlineService>(create: (_) => KlineService(dioClient)),
|
||||
Provider<KlineWebSocketService>(create: (_) => KlineWebSocketService()),
|
||||
// State Management
|
||||
ChangeNotifierProvider<AuthProvider>(
|
||||
create: (ctx) {
|
||||
@@ -125,12 +120,6 @@ class MyApp extends StatelessWidget {
|
||||
ctx.read<AppEventBus>(),
|
||||
),
|
||||
),
|
||||
ChangeNotifierProvider<KlineProvider>(
|
||||
create: (ctx) => KlineProvider(
|
||||
ctx.read<KlineService>(),
|
||||
ctx.read<KlineWebSocketService>(),
|
||||
),
|
||||
),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user