Remove ViewWrapper widget
This commit is contained in:
@ -13,7 +13,7 @@ class ViewBuilder{
|
|||||||
}
|
}
|
||||||
|
|
||||||
Widget buildWidget(BuildContext context) {
|
Widget buildWidget(BuildContext context) {
|
||||||
return ViewWrapperWidget(
|
return TabBarView(
|
||||||
children: _views
|
children: _views
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -77,21 +77,3 @@ class ViewBuilder{
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class ViewWrapperWidget extends StatelessWidget {
|
|
||||||
|
|
||||||
final List<View> children;
|
|
||||||
|
|
||||||
const ViewWrapperWidget({
|
|
||||||
Key key,
|
|
||||||
this.children
|
|
||||||
}) : super(key: key);
|
|
||||||
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return TabBarView(
|
|
||||||
children: children
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
Reference in New Issue
Block a user