blueprint_widgets library
Fx UI toolkit: context mixin, layout, inputs, overlays, feedback, and display widgets.
import 'package:blueprint_flutter_core/blueprint_widgets.dart';
Classes
- DateFormatter
- FxAppBar
- A consistent app bar for the blueprint.
- FxAppBarStyle
- FxAvatar
- Displays a user avatar with image URL, initials fallback, and sizes.
- FxBottomSheetOptions
-
FxBottomSheetShell<
T> - Bottom sheet chrome: handle, title, and FxOverlayView body.
- FxButton
- A fully-featured button with loading state, disabled state, and variants.
- FxCountdownAction
- A tappable action widget with a countdown timer.
- FxCountdownActionState
- FxCounterBadge
- Overlays a numeric badge on child, typically for unread counts.
- FxCountryFlag
- FxDock
-
Bottom dock for FxSite.dock panes; hosts
FxBottomNav. - FxDockStyle
- Visual and layout tokens for FxDock.
- FxDottedDivider
- FxDottedDividerThemeData
- FxDrawer
- Material Drawer listing panes on FxSite.drawer.
- FxDrawerStyle
- Visual and layout tokens for FxDrawer and FxDrawer.end.
- FxFieldOptions
- FxFormControl
- FxFormGroup
- FxIconButton
- An icon button with an optional text label beneath it.
- FxKeyboard
- FxListTile
- A list tile with configurable leading, title, subtitle, trailing, and optional swipe-to-action support.
- FxLoader
- Full-screen and inline loading indicators.
-
FxOverlayBody<
T> - Scrollable custom body for overlays without a list configuration.
-
FxOverlayList<
T> - Searchable, selectable list body for overlay pickers.
-
FxOverlayOptions<
T> -
FxOverlaySelectionState<
T> - Mutable selection state for FxOverlayList.
- FxOverlayThemeData
-
FxOverlayTile<
T> - FxOverlayTileThemeData
-
FxOverlayTileView<
T> -
FxOverlayView<
T> -
Routes
FxOverlayDatato a list picker or custom body. - FxPane
- One shell row: chrome (dock / drawer / end drawer) and optional body.
- FxPaneDividerStyle
- Visual config for FxPaneType.divider rows.
- FxPasswordField
- A styled text input field with label, hint, error, prefix, suffix, and password visibility toggle support.
- FxPhoneInput
- FxPhoneInputConfig
- FxPhoneInputViewData
- FxPinInput
- FxPinInputState
- FxReveal
- Animates show/hide by collapsing along axis with optional fade.
- FxRevealPreferred
- Animated PreferredSizeWidget for Scaffold.appBar and similar slots.
- FxRevealTransitions
- FxRowTileStyle
- FxSafeAreaInsets
- FxScaffold
- FxScaffoldStyle
- FxScrollableForm
- FxSearchField
- A search field with debounced onChanged and a clear button.
-
FxSelectField<
Result, T> - FxShell
- Root layout for post-login home / dashboard / main flows.
- FxShellCtrl
- FxShellCtrlProvider
- FxShellScope
- Inherited scope for imperative shell actions from any descendant (including nested Scaffolds inside FxPane bodies).
- FxShellState
- FxShellStyle
- FxSnackbar
- Snackbar utility with themed variants.
- FxStateData
- FxStates
- FxStateStyle
- FxStateView
- Generic state display widget.
- FxText
- A rich text widget that supports inline tappable spans using a markdown-inspired bracket syntax.
- FxTextDivider
- FxTextField
- A styled text input field with label, hint, error, prefix, suffix, and password visibility toggle support.
- FxTextStyle
- Visual configuration for FxText.
- FxTile
- FxTileStyle
-
FxTileView<
T extends FxTile> - Vertical list or horizontal row of FxTiles.
- FxUiContext
- NumberFormatter
- PhoneFormatter
-
Phone parsing and normalization via
flutter_libphonenumber. - PhoneParseResult
-
Parsed phone data from libphonenumber (
parsemap). - ScreenUtil
- Responsive sizing utility.
- TextFormatter
- Validators
- Input validators for common field types.
Enums
- FxButtonVariant
- FxFlagShape
- FxLabelBehavior
- FxOverlayMode
- FxOverlayType
- FxPaneType
- Kind of row shown in dock / drawer chrome (not the main body).
- FxPhoneInputLayout
- FxSite
- Where a FxPane row is declared to appear in the shell chrome.
- FxSnackbarType
Mixins
Extensions
- FxDockStyleCopyWith on FxDockStyle
- FxDrawerStyleCopyWith on FxDrawerStyle
- FxPaneDividerStyleCopyWith on FxPaneDividerStyle
- FxShellScopeContext on BuildContext
- FxShellStatePatterns on FxShellState
- Adds pattern-matching-related methods to FxShellState.
- FxShellStyleCopyWith on FxShellStyle
- FxStateDataCopyWith on FxStateData
- FxUiToolkitContext on BuildContext
- ScreenUtilExtension on num
Properties
Functions
-
fxOverlayItemsEqual<
T> (T? a, T? b, bool comparer(T a, T b)?) → bool -
fxOverlayListContains<
T> (List< T> list, T item, bool comparer(T a, T b)?) → bool -
resolveFavoriteCountries(
List< String> codes) → List<FxCountry> -
showFxOverlay<
Result, T> (BuildContext context, {bool cancelable = true, bool useSafeArea = true, FxOverlayType type = FxOverlayType.bottomSheet, ScrollController? scrollController, FxBottomSheetOptions bottomSheetOptions = const FxBottomSheetOptions(), required FxOverlayOptions< T> options}) → Future<Result?>
Typedefs
-
FxDockStyleCopyWithFn
= FxDockStyle Function({Widget animationBuilder(Widget, Animation<
double> ), Duration animationDuration, Color? backgroundColor, Clip clipBehavior, CrossAxisAlignment crossAxisAlignment, double elevation, double? height, Widget? itemBuilder(FxPane, bool, void ())?, MainAxisAlignment mainAxisAlignment, MainAxisSize mainAxisSize, double notchMargin, NotchedShape? notchShape, EdgeInsetsGeometry padding, Color? shadowColor, double spacing, Color? surfaceTintColor, FxRowTileStyle tileStyle}) -
FxDrawerStyleCopyWithFn
= FxDrawerStyle Function({Widget animationBuilder(Widget, Animation<
double> ), Duration animationDuration, Color? backgroundColor, double elevation, Widget headerBuilder(BuildContext)?, EdgeInsetsGeometry padding, ScrollPhysics physics, FxSafeAreaInsets safeArea, Widget separatorBuilder, Color? shadowColor, ShapeBorder? shape, bool shrinkWrap, Color? surfaceTintColor, Widget? tileBuilder(FxTile, bool, void ())?, FxTileStyle tileStyle, double? width}) -
FxOverlayItemComparer<
T> = bool Function(T a, T b) -
FxOverlaySearchCallback<
T> = List< T> ? Function(String search, List<T> items) -
FxOverlayTileBuilder<
T> = Widget Function(BuildContext context, T item, bool isSelected, VoidCallback? onTap) -
FxOverlayTileWidgetBuilder<
T> = Widget Function(BuildContext context, T item, bool isSelected) - FxPaneBodyBuilder = Widget Function(BuildContext context, FxPane pane)
- Shell body for the active pane.
- FxPaneDividerStyleCopyWithFn = FxPaneDividerStyle Function({TextAlign align, Color? color, double dashSpace, double dashWidth, BoxDecoration? decoration, EdgeInsets margin, EdgeInsets padding, double spacing, double strokeWidth, TextStyle? textStyle})
- FxPhoneInputChanged = void Function(FxCountry country, String phone, [PhoneParseResult? parsed])
-
FxRevealTransitionBuilder
= Widget Function(Widget child, Animation<
double> animation) - FxShellStyleCopyWithFn = FxShellStyle Function({Duration animationDuration, FxAppBarStyle appBarStyle, FxDockStyle dockStyle, FxDrawerStyle drawerStyle, FxDrawerStyle endDrawerStyle, FloatingActionButtonLocation floatingActionButtonLocation, FxScaffoldStyle scaffoldStyle})
- FxStateDataCopyWithFn = FxStateData Function({String? actionLabel, String description, Widget icon, FxStateStyle? style, String title})
- FxTextOnLinkTap = void Function(int index, String text)
-
Callback fired when a tappable span is tapped.
indexis the zero-based position among link spans only.textis the raw content of the tapped span (without brackets). -
FxTileBuilder<
T extends FxTile> = Widget? Function(T tile, bool isActive, VoidCallback onTap) - FxTileIconBuilder = Widget Function(bool isActive, double? size, Color? color)
-
FxTileState<
T> = T Function(bool active) -
FxTileTap<
T extends FxTile> = void Function(T tile) -
FxTileTapWithContext<
T extends FxTile> = void Function(BuildContext context, T tile) - FxTileTrailingBuilder = Widget Function(BuildContext context, bool isActive)