Skip to content

Instantly share code, notes, and snippets.

@ConProgramming
Created December 15, 2019 05:27
Show Gist options
  • Save ConProgramming/5512b4477c5be74265dc15c91701a6b6 to your computer and use it in GitHub Desktop.
Save ConProgramming/5512b4477c5be74265dc15c91701a6b6 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
import 'package:example/theme/style.dart';
import 'package:example/routes.dart';
import 'package:example/bloc/bloc-prov-tree.dart';
import 'package:example/bloc/bloc-prov.dart';
import 'package:example/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,
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment