bs_flutter_buttons 1.0.0 bs_flutter_buttons: ^1.0.0 copied to clipboard
Bootstrap’s custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.
bs_flutter_buttons #
Bootstrap’s custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.
Getting Started #
Add the dependency in pubspec.yaml
:
dependencies:
...
bs_flutter_buttons: any
Buttons #
Example: example_buttons.dart
We have 15 button style and 3 button size, but you can create custom size using BsButtonSize
and custom style using BsButtonStyle
static const BsButtonStyle primary = BsButtonStyle(
color: Colors.white,
borderColor: BsColor.primary,
backgroundColor: BsColor.primary,
borderRadius: BorderRadius.all(Radius.circular(3.0))
);
static const BsButtonSize btnIconSm = BsButtonSize(
iconSize: 12.0,
padding: EdgeInsets.only(left: 10.0, right: 10.0, top: 10.0, bottom: 10.0),
minimumSize: Size(30.0, 30.0),
);
To create some button use BsButton
// ...
BsButton(
margin: EdgeInsets.only(right: 10.0, bottom: 10.0),
onPressed: () {},
style: BsButtonStyle.primary,
size: BsButtonSize.btnIconMd,
prefixIcon: Icons.check,
),
// ...