Skip to content

Commit

Permalink
fix: theme lerp (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzanardo authored Jan 3, 2024
1 parent 9324d9a commit fcbb86b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.12.1
- fix: theme lerp causing error on null access.


# 0.12.0
- feat: adding `NesBlinker`.
- fix: `NesRunningText` would not update its text.
Expand Down
8 changes: 4 additions & 4 deletions lib/src/theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ class NesButtonTheme extends ThemeExtension<NesButtonTheme> {
).lerp(t) ??
borderColor,
pixelSize: IntTween(
begin: pixelSize,
end: otherExt?.pixelSize,
begin: pixelSize ?? 1,
end: otherExt?.pixelSize ?? 1,
).lerp(t),
);
}
Expand Down Expand Up @@ -517,8 +517,8 @@ class NesContainerTheme extends ThemeExtension<NesContainerTheme> {
end: otherExt?.padding,
).lerp(t),
pixelSize: IntTween(
begin: pixelSize,
end: otherExt?.pixelSize,
begin: pixelSize ?? 1,
end: otherExt?.pixelSize ?? 1,
).lerp(t),
);
}
Expand Down

0 comments on commit fcbb86b

Please sign in to comment.