fluentUiBtn function
- BuildContext context
Returns the button style used in Fluent UI.
This function returns a ButtonStyle object with the background color and shape
properties set based on the provided context
.
Implementation
ButtonStyle fluentUiBtn(BuildContext context) {
return ButtonStyle(
backgroundColor: MaterialStateProperty.resolveWith(
(states) => Theme.of(context).focusColor,
),
shape: MaterialStateProperty.resolveWith(
(states) => RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8),
),
),
);
}