GF Button is a clickable element, that can be used for click events like click functions, page routing, social authentications, form submissions or anywhere that needs simple, standard button functionality. Buttons has a broad area to be used and can be used with any other widgets as well.
We can get simple standard button using below code.
To use of Flutter Disable Button we have set Default GFButton's onPressed be null, that gives Disabled button.
GF Buttons can be styled with several attributes to look a specific way. Each and every attribute is described below.
GFColors is used to change the background of the button.
The color to use from application's color palette
The GFButton Size
The GFButton Shape
The GFButton Type
Position of icon in the button.
callback i.e, called when the button is tapped
callback i.e, called when the button is long-pressed
describe button's label. text will be priority over child
describe button's label with icon
child of type Widget alternative to text
the color to use for this button's text when the button is enabled
defines the styling of the text
the fillcolor of the button when the button is disabled
the color to use for this button's text when the button is disabled
defines the border side
defines the shape of the border
defines the boxShadow
defines internal padding of the button
fillColor of the button when it has the input focused
fillColor of the button when the pointer is hovered over it
indicates that the button has been touched
indicates that the button is actively being pressed