Skip to content

Commit

Permalink
Fixing textSize set
Browse files Browse the repository at this point in the history
  • Loading branch information
caduandrade committed Oct 26, 2024
1 parent 291cb9d commit 71ba7d6
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.19.1

* Bugfix
* Error setting text size

## 1.19.0

* Allows you to define a maximum width for the tab text.
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.18.1"
version: "1.19.0"
term_glyph:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion lib/src/tab_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class TabData extends ChangeNotifier with TabIndex {
if (value != null) {
value = math.max(value, 0);
}
if (_text != value) {
if (_textSize != value) {
_textSize = value;
notifyListeners();
}
Expand Down
2 changes: 1 addition & 1 deletion lib/src/tabbed_view_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class TabbedViewController extends ChangeNotifier {
TabbedViewController(this._tabs,
{this.onReorder, this.data, bool reorderEnable = true})
: this._reorderEnable = reorderEnable {
if (_tabs.length > 0) {
if (_tabs.isNotEmpty) {
_selectedIndex = 0;
}
for (TabData tab in _tabs) {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: tabbed_view
description: Flutter widget inspired by the classic Desktop-style tab component. Supports customizable themes.
version: 1.19.0
version: 1.19.1
repository: https://github.com/caduandrade/tabbed_view
homepage: https://caduandrade.github.io/tabbed_view

Expand Down

0 comments on commit 71ba7d6

Please sign in to comment.