Commit 3098abf7 authored by Hans Muller's avatar Hans Muller

Tab updates

parent febfdf69
...@@ -502,8 +502,7 @@ class TabBarSelectionState<T> extends State<TabBarSelection<T>> { ...@@ -502,8 +502,7 @@ class TabBarSelectionState<T> extends State<TabBarSelection<T>> {
void set value(T newValue) { void set value(T newValue) {
if (newValue == _value) if (newValue == _value)
return; return;
if (!_valueIsChanging) _previousValue = _value;
_previousValue = _value;
_value = newValue; _value = newValue;
_writeValue(); _writeValue();
_valueIsChanging = true; _valueIsChanging = true;
...@@ -779,6 +778,7 @@ class _TabBarState<T> extends ScrollableState<TabBar<T>> implements TabBarSelect ...@@ -779,6 +778,7 @@ class _TabBarState<T> extends ScrollableState<TabBar<T>> implements TabBarSelect
setState(() { setState(() {
_tabBarSize = tabBarSize; _tabBarSize = tabBarSize;
_tabWidths = tabWidths; _tabWidths = tabWidths;
_indicatorRect = _tabIndicatorRect(_selection.index);
_updateScrollBehavior(); _updateScrollBehavior();
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment