unicreators / mvvm

A Flutter MVVM (Model-View-ViewModel) implementation. It uses property-based data binding to establish a connection between the ViewModel and the View, and drives the View changes through the ViewModel.
https://pub.dev/packages/mvvm
MIT License
134 stars 22 forks source link

View里面有TabController就用不了 #13

Closed kamike closed 4 years ago

kamike commented 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的控件了

pishguy commented 1 year ago

@kamike

how could you resolve this problem?