- optimization
-
Delete the following parameters and use style instead:
textColor
fontSize
fontStyle
fontHeight
textWeight
-
Delete the following parameters:
splashColor
focusNode
autofocus
-
Delete the
effect
parameter -
Delete
disabledTextColor
and usedisableStyle
instead -
FButtonCorner changed to FCorner
-
FButtonCornerStyle changed to FornerStyle
-
Add the
activeMaskColor
parameter. 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
. onHover
can help developers perceive hover state changes.
- The color in hover state can be configured through
-
Add
onPressedDown
andonPressedUp
andonPressedCancel
to help developers to make corresponding changes when pressing, lifting or canceling the press. -
Add
loadingWidget
parameter, so that developers can define their own loading style -
Add Neumorphism style support.
- Neumorphism style support can be turned on/off through the
isSupportNeumorphism
parameter - The
highlightShadowColor
parameter can configure the bright shadow color after enabling the Neumorphism style - The
lightOrientation
parameter can adjust the direction of the light source
- Neumorphism style support can be turned on/off through the
-
Add
surfaceStyle
parameter to support the definition of surface style.- Flat
- Convex
- Concave
-
Add style parameter to configure text style. The following parameters will be removed in subsequent versions:
textColor
fontSize
fontStyle
fontHeight
textWeight
-
Add the alignment parameter to cancel the default centering
-
Remove default Padding
-
Remove the default background color
-
`onPress' is no longer a required parameter
-
add @immutable to fbutton.dart
-
minSDK 2.2
-
Remove a few bad attributes
-
Increase text configurability