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

Restructure the Flutter Button to allow for simpler styling and theming, ensuring it's not limited to specific platforms.

Pub Version GitHub GitHub GitHub

Revamp the Flutter Button to empower developers with more intuitive and streamlined styling and theming capabilities. This will eliminate platform-specific limitations, allowing for a truly cross-platform design experience. By decoupling the button's appearance from the underlying platform, developers gain greater control over the button's look and feel, making it easier to tailor it to their specific design requirements and brand identity.

Preview

Demo

Usage #

To read more about classes and other references used by wx_button, see the API Reference.

Basic Usage: #

The WxButton class provides various button types:

  • WxTextButton: A flat button with text label.
  • WxTonalButton: A button with a colored background and text label.
  • WxElevatedButton: A raised button with a shadow effect.
  • WxFilledButton: A button with filled background and text label.
  • WxOutlinedButton: A button with an outlined border and text label.

Each button type requires an onPressed callback function to handle button press events. You can also provide a text child using the child property.

WxTextButton(
  onPressed: () {},
  child: const Text('Text Button'),
),
WxTonalButton(
  onPressed: () {},
  child: const Text('Tonal Button'),
),
// ... and so on for other button types

Sponsoring #

Buy Me A Coffee Ko-Fi

If this package or any other package I created is helping you, please consider to sponsor me so that I can take time to read the issues, fix bugs, merge pull requests and add features to these packages.

1
likes
100
points
26
downloads

Publisher

verified publisherwidgetarian.com

Weekly Downloads

Restructure the Flutter Button to allow for simpler styling and theming, ensuring it's not limited to specific platforms.

Repository (GitHub)

Topics

#ui #button #event-driven #widgetarian

Documentation

API reference

Funding

Consider supporting this project:

buymeacoffee.com
ko-fi.com

License

BSD-3-Clause (license)

Dependencies

flutter, widget_event, wx_anchor, wx_sheet, wx_tile, wx_utils

More

Packages that depend on wx_button