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

29 lines
753 B
Dart
Raw Normal View History

2021-01-06 19:36:09 +00:00
import 'package:flutter/material.dart';
2021-01-06 21:12:32 +00:00
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';
2021-01-06 19:36:09 +00:00
void main() {
2021-01-06 21:12:32 +00:00
runApp(ExampleApp());
2021-01-06 19:36:09 +00:00
}
2021-01-06 21:12:32 +00:00
class ExampleApp extends StatelessWidget {
2021-01-06 19:36:09 +00:00
@override
Widget build(BuildContext context) {
2021-01-06 21:12:32 +00:00
return BlocProviderTree(
blocProviders: <BlocProvider>[
BlocProvider<AuthBloc>(bloc: AuthBloc()),
BlocProvider<PrefBloc>(bloc: PrefBloc()),
],
child: MaterialApp(
title: 'ExampleApp',
theme: appTheme(),
initialRoute: '/',
routes: routes,
2021-01-06 19:36:09 +00:00
),
);
}
}