warcraft_flutter_components 0.1.0
warcraft_flutter_components: ^0.1.0 copied to clipboard
Warcraft-themed Flutter UI components inspired by WarcraftCN.
Warcraft Flutter Components #
Warcraft-themed Flutter UI components inspired by the WarcraftCN React UI. Includes ready-to-use widgets, themed assets, and a full example app.
Features #
- Ready-made Warcraft UI widgets (buttons, cards, tabs, inputs, etc).
- Faction-themed tabs and visual variants.
- Custom 9-slice border box rendering for frames and panels.
- Example app showcasing all components.
Components #
WarcraftAccordionWarcraftAvatarWarcraftBadgeWarcraftButtonWarcraftCardWarcraftCheckboxWarcraftDropdownMenuWarcraftInputWarcraftLabelWarcraftPaginationWarcraftRadioGroup/WarcraftRadioWarcraftSkeletonWarcraftSpinnerWarcraftTabsWarcraftTextareaWarcraftTooltip
Install #
flutter pub add warcraft_flutter_components
Or add to pubspec.yaml:
dependencies:
warcraft_flutter_components: ^0.1.0
Usage #
import 'package:warcraft_flutter_components/warcraft_flutter_components.dart';
WarcraftButton(
variant: WarcraftButtonVariant.frame,
child: const Text('For the Horde'),
onPressed: () {},
);
More examples #
WarcraftInput(
hintText: 'Enter your name...',
capWidth: 28,
maxWidth: 520,
);
WarcraftCard(
child: const Text('Card content'),
);
WarcraftPagination(
currentPage: 3,
pageCount: 10,
onPageChanged: (page) {},
);
Example app #
cd example
flutter run
Hosted example (web): https://allingaming.github.io/warcraft_flutter_components/
Notes #
- Asset-heavy widgets rely on the bundled assets under
assets/warcraft/. - The package uses the Cinzel font via
google_fontsfor the fantasy look.
Tests #
flutter test
License #
MIT (see LICENSE).