Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 406 Bytes

File metadata and controls

10 lines (9 loc) · 406 Bytes

Adding mixin to widget's states

In the previous example we created AnimationController and passed this (which is the State with SingleTickerProviderStateMixin mixin) to the controller, but how to add this mixin to the widget? This is done through the <with /> tag:

<MyPage controller="MyController">
  <with mixin="SingleTickerProviderStateMixin" />
  ...
</MyPage>