fbutton_nullsafety 5.0.0
fbutton_nullsafety: ^5.0.0 copied to clipboard
Let developers just need to grasp only one button component.
5.0.0 #
4.0.0 #
- bug修复
2.0.2 #
- 适配flutter 2.5.0
2.0.1 #
- optimization
2.0.0 #
-
Delete the following parameters and use style instead:
textColorfontSizefontStylefontHeighttextWeight
-
Delete the following parameters:
splashColorfocusNodeautofocus
-
Delete the
effectparameter -
Delete
disabledTextColorand usedisableStyleinstead -
FButtonCorner changed to FCorner
-
FButtonCornerStyle changed to FornerStyle
-
Add the
activeMaskColorparameter. The color of the mask when the button is pressed. Adjust the alpha of the color value to ensure that the view behind can be displayed. -
Add Hover support.
- The color in hover state can be configured through
hoverColor. onHovercan help developers perceive hover state changes.
- The color in hover state can be configured through
-
Add
onPressedDownandonPressedUpandonPressedCancelto help developers to make corresponding changes when pressing, lifting or canceling the press. -
Add
loadingWidgetparameter, so that developers can define their own loading style -
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 - The
lightOrientationparameter can adjust the direction of the light source
- Neumorphism style support can be turned on/off through the
-
Add
surfaceStyleparameter to support the definition of surface style.- Flat
- Convex
- Concave
1.1.0 #
-
Add style parameter to configure text style. The following parameters will be removed in subsequent versions:
textColorfontSizefontStylefontHeighttextWeight
-
Add the alignment parameter to cancel the default centering
-
Remove default Padding
-
Remove the default background color
-
`onPress' is no longer a required parameter
1.0.4 #
-
add @immutable to fbutton.dart
-
minSDK 2.2
1.0.3 #
-
Remove a few bad attributes
-
Increase text configurability