Closed kamike closed 4 years ago
class MyView extends View { MyView (): super(MyViewModel()){ TabController tableController = TabController(vsync: this, length: tableTypes.length); } }
TabController初始化当前类必须with TickerProviderStateMixin View是不可以with TickerProviderStateMixin
所以就用不了带TabController的控件了
@kamike
how could you resolve this problem?
class MyView extends View {
MyView (): super(MyViewModel()){
TabController tableController = TabController(vsync: this, length: tableTypes.length);
}
}
TabController初始化当前类必须with TickerProviderStateMixin View是不可以with TickerProviderStateMixin
所以就用不了带TabController的控件了