Project structure changes

This commit is contained in:
estevez-dev
2019-09-09 18:50:35 +03:00
parent 56a333a852
commit d5baabdd53
25 changed files with 34 additions and 34 deletions

View File

@ -0,0 +1,22 @@
part of '../main.dart';
class EntityModel extends InheritedWidget {
const EntityModel({
Key key,
@required this.entityWrapper,
@required this.handleTap,
@required Widget child,
}) : super(key: key, child: child);
final EntityWrapper entityWrapper;
final bool handleTap;
static EntityModel of(BuildContext context) {
return context.inheritFromWidgetOfExactType(EntityModel);
}
@override
bool updateShouldNotify(InheritedWidget oldWidget) {
return true;
}
}