import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; import 'providers/auth_provider.dart'; import 'providers/user_provider.dart'; import 'providers/wallet_provider.dart'; import 'providers/transaction_provider.dart'; import 'package:robo_advisory/config/Routes.dart'; import 'package:robo_advisory/injection/dependency_injection.dart'; void main() { Injector.configure(Flavor.MOCK); runApp(MyApp()); } class MyApp extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context) { return MultiProvider( providers: [ ChangeNotifierProvider(create: (_) => AuthProvider()), ChangeNotifierProvider(create: (_) => UserProvider()), ChangeNotifierProvider(create: (_) => WalletProvider()), ChangeNotifierProvider(create: (_) => TransactionProvider()), ], child: MaterialApp( initialRoute: Routes.login, routes: Routes.getRoute(), title: 'Robo Advisory', // theme: ThemeData.dark(), ), ); } }