how to conditionally pass multiple widget for flutter tabBarview
I have a tabview that I want to pass multiple widget to it depending on which screen the user navigated to. The first screen only contains two children while the other one contains four children. I have conditionally passed four Widgets to the other one but it only picked three meaning that my conditions are wrong and it’s also giving me this error. Controller’s length property (4) does not match the number of children (3) present in TabBarView’s children property.