diff --git a/lib/view_builder.class.dart b/lib/view_builder.class.dart index b0935df..78abe3a 100644 --- a/lib/view_builder.class.dart +++ b/lib/view_builder.class.dart @@ -13,8 +13,8 @@ class ViewBuilder{ } Widget buildWidget(BuildContext context) { - return ViewWrapperWidget( - children: _views + return TabBarView( + children: _views ); } @@ -76,22 +76,4 @@ class ViewBuilder{ }); return result; } -} - -class ViewWrapperWidget extends StatelessWidget { - - final List children; - - const ViewWrapperWidget({ - Key key, - this.children - }) : super(key: key); - - @override - Widget build(BuildContext context) { - return TabBarView( - children: children - ); - } - } \ No newline at end of file