The Nuxify WidgetBook is a modular, reusable library of Flutter widgets designed to streamline development and maintain consistency across projects.
The library is divided into core components and optional extensions, ensuring the core module stays lightweight and free of unnecessary dependencies. This makes it easier to integrate into various projects without introducing unwanted third-party libraries.
Widgets that rely on third-party dependencies, such as the QR Reader, are separated into individual modules.
To include these widgets in your project, you can import them as needed.
For example, to use the QR Reader widget, add the following to your pubspec.yaml
:
nuxify_widgetbook_qr_scanner:
git:
url: https://github.com/Nuxify/widgetbook.git
path: qr_scanner
ref: v1.6.0
You can explore and interact with all available widgets through our web interface at widgetbook.nuxify.tech.
-
Action Button:
UseFilledButton()
for primary actions requiring emphasis. -
Outlined Action Button:
UseOutlinedButton()
for secondary actions that require less emphasis. -
Icon Button:
UseIconButton.filled()
for buttons that consist of icons, ideal for minimalist UIs or toolbar actions.
-
Horizontal Step Indicator:
UseHorizontalStepper()
to visually represent a multi-step process. -
Chip Indicator:
UseChipIndicator()
to show small, customizable status indicators. -
Chip Selection:
UseChipsSelection()
for a quick, user-friendly method of selecting options. -
Empty View Placeholder:
UseEmptyViewPlaceholder()
to show an empty state with an icon and text, centered in the view. -
Avatar (with fallback initials):
UseCircleAvatar()
to display a profile image or fallback initials if no image is available. -
CardLoader:
UseCardLoader()
to create a customizable skeleton loader for card-like UI elements. It allows you to specify the height and width, with default values for base and highlight colors.
-
Filled TextField:
UseFilledTextField()
for text input fields that require a filled background. -
Outlined TextField:
UseOutlinedTextField()
for text input fields with a border outline. -
Dropdown Menu:
UseDropdownMenu()
to present users with a dropdown selection. -
Pincode TextField:
UsePincodeView()
for secure pin code input. -
QR Reader:
UseQRScanner()
to integrate QR code scanning functionality in your app. Note: This widget is not included in the core module. To use it, you must import thenuxify_widgetbook_qr_scanner
module separately.
-
Alert Modal:
UseAppAlertDialog()
for simple pop-up alerts with customizable content. -
BottomSheet:
UseAppBottomSheet()
to show a draggable bottom panel, triggered viaopenBottomSheet()
. -
Expanded BottomSheet:
Similar toAppBottomSheet()
, but extends the height for more content. -
List Item:
UseListTile()
for a variety of list items:- Single-line item
- Two-line item
- Three-line item
- Dashboard Scaffold:
UseDashboardScaffold()
for a dashboard layout, perfect for admin panels or content-rich pages.
- App Bottom Navigation:
UseAppBottomNavigation()
for customizable bottom navigation in your app, ideal for quick access to key sections.