When I try to put multiple [su_label type=”success”]FloatingActionButton[/su_label] in a page, it will show the below error:
There are multiple heroes that share the same tag within a subtree
This is because need to set the [su_label type=”important”]heroTag[/su_label] in each [su_label type=”success”]FloatingActionButton[/su_label] , so the solution is as below:
new FloatingActionButton( heroTag: "btn1", ... ) new FloatingActionButton( heroTag: "btn2", ... )
Views: 4
Total Views: 110 ,