Skip to content

Commit 6aed2df

Browse files
PanteCopilot
andauthored
Fix checkbox error (#653)
* Fix checkbox error * Prepare Forui for review * Update changelog * Update forui/CHANGELOG.md Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Pante <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent 1edd861 commit 6aed2df

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

forui/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ We've done an overhaul of `FSelect` to make it more consistent and easier to use
159159

160160
* Fix `FProgress.circularIcon()` using incorrect color.
161161
* Fix `FScaffold` not propagating `IconTheme` from `FStyle.iconStyle`.
162+
* Fix `FSelectGroup` throwing a duplicate error when rapidly hovering over several `FCheckbox`es.
162163
* Fix `FTabs` throwing an assertion error if `FTabController` is provided with a `initialIndex` > 0.
163164

164165

forui/lib/src/widgets/checkbox.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ class FCheckbox extends StatelessWidget {
135135
child: AnimatedSwitcher(
136136
duration: style.animationDuration,
137137
switchInCurve: style.curve,
138+
// This transition builder is necessary because of https://github.com/flutter/flutter/issues/121336#issuecomment-1482620874
139+
transitionBuilder: (child, opacity) => FadeTransition(opacity: opacity, child: child),
138140
child: SizedBox.square(
139141
key: SetKey(states),
140142
dimension: style.size,

0 commit comments

Comments
 (0)