bs_flutter_buttons 1.0.0 copy "bs_flutter_buttons: ^1.0.0" to clipboard
bs_flutter_buttons: ^1.0.0 copied to clipboard

outdated

Bootstrap’s custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.

bs_flutter_buttons #

Alt text

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

Alt text

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,
  ),
// ...
3
likes
0
pub points
54%
popularity

Publisher

unverified uploader

Bootstrap’s custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

bs_flutter_utils, flutter

More

Packages that depend on bs_flutter_buttons