Skip to content

Commit

Permalink
Updating CHANGELOG and README. (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
caduandrade committed Aug 8, 2021
1 parent 8936db4 commit c1d26b6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,7 @@
## 1.2.0

* Added `keepAlive` parameter to prevent loss of tab content state due to tree change during tab selection event.

## 1.1.2

* Bug fix
Expand Down
7 changes: 7 additions & 0 deletions README.md
Expand Up @@ -20,6 +20,7 @@ Flutter widget inspired by the classic Desktop-style tab component. Supports cus
* [Close listener](#close-listener)
* [Selection listener](#selection-listener)
* [Draggable](#draggable-tab-builder)
* [Keep alive](#keep-alive)
* [Tabs area](#tabs-area)
* [Tabs area buttons](#tabs-area-buttons)
* [Themes](#themes)
Expand Down Expand Up @@ -199,6 +200,12 @@ It allows creating the contents of the tab dynamically during the selection even
});
```

### Keep alive

The `keepAlive` parameter indicates whether to keep the tab content widget in memory even if it is not visible. Indicated to prevent loss of state due to tree change by tab selection. If enabled, the Widget will continue to be instantiated in the tree but will remain invisible. The default value is `FALSE`.

A more efficient alternative is to keep the data in `TabData`'s `value` parameter as long as the `TabbedViewController` is being kept in the state of its class.

## Tabs area

### Tabs area buttons
Expand Down

0 comments on commit c1d26b6

Please sign in to comment.