wx_button 1.0.0 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.
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.
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 #
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.