This repository has been archived on 2023-11-13. You can view files and clone it, but cannot push or open issues or pull requests.
imagini/web_native/lib/main.dart
2021-01-06 16:12:32 -05:00

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,
),
);
}
}