David PHAM-VAN

Fix InheritedWidget issue with multiple pages

... ... @@ -4,6 +4,7 @@
- Fix justified text softWrap issue
- Set a default color for Dividers
- Fix InheritedWidget issue with multiple pages
## 1.7.0
... ...
... ... @@ -203,15 +203,8 @@ class InheritedWidget extends Widget {
@override
void layout(Context context, BoxConstraints constraints,
{bool parentUsesSize = false}) {
if (_context == null) {
// final Inherited inherited = build(context);
if (inherited != null) {
_context = context.inheritFrom(inherited);
}
}
_context ??= context;
_child ??= build(_context);
_context = inherited != null ? context.inheritFrom(inherited) : context;
_child = build(_context);
if (_child != null) {
_child.layout(_context, constraints, parentUsesSize: parentUsesSize);
... ...