Deleted the provider for the home bloc

This commit is contained in:
Mariano Uvalle 2019-04-05 01:07:01 -06:00
parent 87be737780
commit 0725b2700e

View file

@ -1,21 +0,0 @@
import 'package:flutter/material.dart';
import './home_bloc.dart';
export './home_bloc.dart';
class HomeProvider extends InheritedWidget {
final HomeBloc bloc;
HomeProvider({
Key key,
Widget child,
}) : bloc = HomeBloc(),
super(key: key, child: child);
bool updateShouldNotify(InheritedWidget oldWidget) => true;
static HomeBloc of(BuildContext context) {
return (context.inheritFromWidgetOfExactType(HomeProvider) as HomeProvider)
.bloc;
}
}