29 lines
753 B
Dart
29 lines
753 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:imagini/theme/style.dart';
|
|
import 'package:imagini/routes.dart';
|
|
import 'package:imagini/bloc/bloc-prov-tree.dart';
|
|
import 'package:imagini/bloc/bloc-prov.dart';
|
|
import 'package:imagini/blocs/blocs.dart';
|
|
import 'blocs/blocs.dart';
|
|
|
|
void main() {
|
|
runApp(ExampleApp());
|
|
}
|
|
class ExampleApp extends StatelessWidget {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return BlocProviderTree(
|
|
blocProviders: <BlocProvider>[
|
|
BlocProvider<AuthBloc>(bloc: AuthBloc()),
|
|
BlocProvider<PrefBloc>(bloc: PrefBloc()),
|
|
],
|
|
child: MaterialApp(
|
|
title: 'ExampleApp',
|
|
theme: appTheme(),
|
|
initialRoute: '/',
|
|
routes: routes,
|
|
),
|
|
);
|
|
}
|
|
}
|