https://github.com/davigmacode/flutter_wx_box
Const widget that provides a box-like layout with customizable elevation.
https://github.com/davigmacode/flutter_wx_box
Last synced: 3 months ago
JSON representation
Const widget that provides a box-like layout with customizable elevation.
- Host: GitHub
- URL: https://github.com/davigmacode/flutter_wx_box
- Owner: davigmacode
- License: bsd-3-clause
- Created: 2024-03-31T03:36:46.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-05T05:20:51.000Z (11 months ago)
- Last Synced: 2025-02-14T17:07:45.397Z (4 months ago)
- Language: Dart
- Homepage: https://pub.dev/packages/wx_box
- Size: 384 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[](https://pub.dev/packages/wx_box)  [](https://www.buymeacoffee.com/davigmacode) [](https://ko-fi.com/davigmacode)
Const widget that provides a box-like layout with customizable elevation.
## Usage
To read more about classes and other references used by `wx_box`, see the [API Reference](https://pub.dev/documentation/wx_box/latest/).
```dart
WxBox(
width: 50,
height: 50,
)WxBox(
color: Theme.of(context).colorScheme.surface,
width: 50,
height: 50,
elevation: 2,
border: CircleBorder(),
)WxBox.circle(
color: Colors.amber,
radius: 25,
borderWidth: 5,
borderStyle: BorderStyle.solid,
borderColor: Theme.of(context).colorScheme.surface,
borderOffset: BorderSide.strokeAlignOutside,
alignment: Alignment.center,
child: Text(
'1',
style: Theme.of(context).textTheme.titleLarge,
),
)WxBox.stadium(
color: Colors.amber,
width: 150,
height: 50,
borderSide: BorderSide(
width: 5,
style: BorderStyle.solid,
color: Colors.black,
strokeAlign: BorderSide.strokeAlignOutside,
),
alignment: Alignment.center,
child: Text(
'text',
style: Theme.of(context).textTheme.titleLarge,
),
)
```## 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.