Fix excessive rebuilds when tapping the same tab
This commit is contained in:
parent
6f3259ff45
commit
c8187fc719
1 changed files with 3 additions and 1 deletions
|
|
@ -13,6 +13,8 @@ abstract class _HomeStoreBase with Store {
|
|||
|
||||
@action
|
||||
void handleTap(int index) {
|
||||
selectedIndex = index;
|
||||
if (index != selectedIndex) {
|
||||
selectedIndex = index;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue