Deleted the provider for the home bloc
This commit is contained in:
parent
87be737780
commit
0725b2700e
1 changed files with 0 additions and 21 deletions
|
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue