From 33f9a1075e1f39bc8b837646d8f7df56c5bda04f Mon Sep 17 00:00:00 2001 From: Yegor Vialov Date: Sun, 21 Oct 2018 01:09:07 +0300 Subject: [PATCH] Remove ViewWrapper widget --- lib/view_builder.class.dart | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) 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