fsuper 2.2.1
fsuper: ^2.2.1 copied to clipboard
FSuper can help developers build complex views quickly and comfortably.
2.2.1 #
FSupernow accepts akey. It was the only public widget in the package that did not forward one tosuper, which made it impossible to control element reuse when severalFSupers sit in aListVieworColumn.- Fix a crash path in the size-measurement callback: the render object was
fetched with
as RenderBox, which throws when the context disappears between frames. The!= nullguard placed after it could never help, because the cast runs first. It now pattern-matches withis RenderBoxand skips a torn-down tree. - Remove ten dead null comparisons and asserts on values whose types are
non-nullable, and drop a
== nulltest againstshadowBlur, which is a non-nullabledoubledefaulting to1. _Stack'salignment,textDirectionandfitwere constructor parameters that its only call site never passed, so the defaults always applied. They are now plain fields carrying those same defaults; behaviour is unchanged.- Document why
WidgetsBinding.instance?./SchedulerBinding.instance?.keep the null-aware operator: the declared SDK floor still covers Flutter 2.x, whereinstanceis nullable and.would not compile. The warnings are now suppressed at the source, so they no longer appear in consumers' builds. dart analyzeonlib,testandpubspec.yamlnow reports no issues.
2.2.0 #
- Add
maxLinesandoverflowso text can be truncated with an ellipsis instead of always being clipped. - Add
pressedColorfor tap-down highlight feedback. It reuses the existing gesture detector, soonClick/onChild1Click/onChild2Clickbehaviour is unchanged, and leaving it null keeps the previous no-feedback behaviour. - Remove a leftover
printfrom the size-measurement path. - Drop dartdoc links to the
Overflowtype, which Flutter removed long ago. - Remove internal-only metadata from the public repository.
2.1.3 #
- 修复一个获取 size 时的异常
2.1.2 #
- 修复从 RenderBox 获取 size 时的异常
2.1.0 #
- Support null-safety
2.0.2 #
- fix
maxWidthnot work
2.0.1 #
- optimization
2.0.0 #
-
Remove the following parameters and use the
styleparameter instead: -textColor-textSize-textStyle-textWeight-fontHeight -
Remove the following parameters and use the
redPointTextStyleparameter instead: -redPointTextColor-redPointTextSize
-corner parameter type changed from Corner to FCorner
-cornerStyle parameter type changed from CornerStyle to FCornerStyle
-
Optimize the layout of Child
-
Add Neumorphism style support.
- Neumorphism style support can be turned on/off through the
isSupportNeumorphismparameter - The
highlightShadowColorparameter can configure the bright shadow color after enabling the Neumorphism style - Through the
floatparameter, you can configure the Neumorphism effect to float / reduce the visual effect - The
lightOrientationparameter can adjust the direction of the light source
- Neumorphism style support can be turned on/off through the
-
Now, under certain scenarios, even child child can respond to events normally even if it exceeds the range of FSuper
0.1.5 #
- Optimize fsuper.dart
0.1.4 #
-
Rich corner effect
-
Exquisite border decoration
-
Naturally supports wonderful rich text
-
Gradient effect
-
More sense of space Shadow
-
Not simple Red Point
-
Flexible and powerful relative layout