widgets/ny_widgets
library
Classes
-
AlertTab
-
AlertTab is a class that holds the state, icon, initialCount, backgroundColor, textColor, smallSize, largeSize, textStyle, padding, alignment, offset, and isLabelVisible of an alert tab.
-
AnimatedButtonWrapper
-
A wrapper widget that applies animation effects to buttons.
Wraps the button output rather than modifying individual button implementations.
-
AnimatedButtonWrapperState
-
-
BadgeTab
-
BadgeTab is a class that holds the state, icon, initialCount, backgroundColor, textColor, smallSize, largeSize, textStyle, padding, alignment, offset, and isLabelVisible of a badge tab.
-
BottomModalSheetStyle
-
BottomModalSheetStyle
-
BottomNavStyle
-
Style configuration for bottom navigation bar
-
ButtonState
-
ButtonState is a stateful widget that manages the state of a button.
-
CollectionItem<T>
-
Wrapper class containing item data and position helpers.
-
CollectionView<T>
-
The CollectionView widget is a wrapper for the ListView widget.
It provides a simple way to display a list of items with full type safety.
-
Connective
-
A widget that rebuilds based on connectivity state.
-
DecoratorTextField
-
DecoratorTextField is a class that helps in managing form text fields
-
FadeOverlay
-
A widget that applies a gradient fade effect over its child.
-
Field
-
Represents a form field with configuration, validation, and state management capabilities.
-
FieldBaseState<T extends StatefulWidget>
-
Abstract base class for form field widget states.
-
FieldStyle
-
Base class for defining styling options for form fields.
-
FieldStyleCheckbox
-
Style configuration for checkbox fields.
-
FieldStyleChip
-
Style configuration for chip-based selection fields.
-
FieldStyleDateTimePicker
-
Style configuration for date and time picker fields.
-
FieldStylePicker
-
FieldStylePicker is used to define the style for a picker field.
-
FieldStyleRadio
-
Style configuration for radio button fields.
-
FieldStyleRangeSlider
-
Style configuration for range slider fields.
-
FieldStyleSlider
-
Style configuration for slider fields.
-
FieldStyleSwitchBox
-
FieldStyleSwitchBox is used to define the style for a switch box field.
-
FieldStyleTextField
-
Comprehensive style configuration for text input fields.
-
FormCheckboxStateActions
-
Provides state management actions for NyFormCheckbox widgets.
-
FormChipStateActions
-
Provides state management actions for NyFormChip widgets.
-
FormCollection
-
A collection of form options that can be used with various form field widgets.
-
FormDateTimePickerStateActions
-
State actions for the NyFormDateTimePicker widget
-
FormOption
-
Represents a single option item for form components like dropdowns, radios, and chips.
-
FormPickerStateActions
-
Provides state management actions for NyFormPicker widgets.
-
FormRadioStateActions
-
Provides state management actions for NyFormRadio widgets.
-
FormRangeSliderStateActions
-
Provides state management actions for NyFormRangeSlider widgets.
-
FormRule
-
Base class for all form validation rules.
-
FormRuleBeginsWith
-
-
FormRuleBooleanFalse
-
-
FormRuleBooleanTrue
-
-
FormRuleCapitalized
-
-
FormRuleContains
-
-
FormRuleCustom
-
-
FormRuleDate
-
-
FormRuleDateAgeIsOlder
-
-
FormRuleDateAgeIsYounger
-
-
FormRuleDateInFuture
-
-
FormRuleDateInPast
-
-
FormRuleEmail
-
-
FormRuleEndsWith
-
-
FormRuleEquals
-
FormRuleEquals
This rule checks if the input data is equal to a specified data source.
-
FormRuleLowercase
-
-
FormRuleMaxLength
-
-
FormRuleMaxSize
-
-
FormRuleMaxValue
-
-
FormRuleMinLength
-
-
FormRuleMinSize
-
-
FormRuleMinValue
-
-
FormRuleNotEmpty
-
-
FormRuleNumeric
-
-
FormRulePassword
-
-
FormRulePhoneNumberUk
-
-
FormRulePhoneNumberUs
-
-
FormRulePostcodeUk
-
-
FormRuleRegex
-
-
FormRuleUppercase
-
-
FormRuleUrl
-
-
FormRuleZipcodeUs
-
-
FormSliderStateActions
-
Provides state management actions for NyFormSlider widgets.
-
FormStateActions
-
The base class for form state actions
This class is used to manage the state of the form fields
-
FormSwitchBoxStateActions
-
Provides state management actions for NyFormSwitchBox widgets.
-
FormTextFieldStateActions
-
Provides state management actions for NyFormTextField widgets.
-
FormValidationError
-
Represents a validation failure response.
-
FormValidationResponse
-
Represents the response of a form validation process.
This class is used to encapsulate the result of a validation check,
indicating whether the form is valid or not, along with an optional message.
-
FormValidationResult
-
-
FormValidationSuccess
-
Represents a successful validation response
-
FormValidator
-
-
FutureWidget<T>
-
Simple way to render Future's in your project.
-
InputField
-
Nylo's Text Field Widget
-
JourneyButtonStyle
-
Base class for defining the style and parameters of journey buttons.
JourneyButtonStyles:
-
JourneyCircularProgress
-
A circular progress indicator for journeys
-
JourneyContent
-
A reusable content widget for journey pages
-
JourneyDotProgress
-
A dot-based progress indicator for journeys
-
JourneyNumberedProgress
-
A numbered step progress indicator for journeys
-
JourneyProgressIndicator
-
Base class for defining the style and parameters of a journey progress indicator.
JourneyProgressIndicators:
-
JourneyProgressStyle
-
Comprehensive configuration for journey progress display.
-
JourneySegmentProgress
-
A segmented progress bar for journeys
-
JourneyState<T extends StatefulWidget>
-
A specialized state class for journey pages in NavigationHub journey layouts
-
JourneyTimelineProgress
-
A timeline-style progress indicator for journeys
-
LanguageSwitcher
-
LanguageSwitcher is a widget that allows you to switch languages in your app.
You can use it in the AppBar or as a bottom sheet modal using the showBottomModal method.
Example:
-
NavBarData
-
Data passed to custom nav bar builders
-
NavigationHub<T extends StatefulWidget>
-
-
NavigationHubLayout
-
-
NavigationHubStateActions
-
Navigation hub state actions
-
NavigationTab
-
NavigationTab is a class that holds the title, page, icon, activeIcon, backgroundColor, tooltip, and meta data of a bottom navigation tab.
-
NyApp
-
A unified widget that combines theme management and localization.
-
NyBaseModal
-
NyBaseModal
-
NyBaseState<T extends StatefulWidget>
-
-
NyColor
-
Helper to find correct color from the
context.
-
NyFieldStatefulWidget
-
A stateful widget base class for creating form field widgets.
-
NyFormActions
-
Helper class for dispatching form actions by name.
-
NyFormCheckbox
-
A checkbox widget for forms that allows users to toggle a boolean value.
-
NyFormChip
-
A customizable chip selection widget for forms that allows users to select multiple options.
-
NyFormData
-
Base class for defining form structure, data, and behavior in Nylo applications.
-
NyFormDateTimePicker
-
A NyFormDateTimePicker widget for Form Fields
-
NyFormPicker
-
A dropdown/picker selection widget for forms that allows users to choose from a list of options.
-
NyFormRadio
-
A radio button group widget for forms that allows users to select a single option.
-
NyFormRangeSlider
-
A range slider widget for forms that allows users to select a range of values.
-
NyFormSlider
-
A slider widget for forms that allows users to select a value from a range.
-
NyFormSwitchBox
-
A switch toggle widget for forms that allows users to toggle a boolean value.
-
NyFormTextField
-
A text input field widget designed for use within forms.
-
NyFormWidget
-
NyFormWidget is an abstract StatefulWidget for building forms declaratively.
-
NyModalLayout
-
NyModalLayout
-
NyPage<T extends StatefulWidget>
-
-
NyState<T extends StatefulWidget>
-
-
NyStatefulWidget<T extends BaseController>
-
StatefulWidget's include a BaseController to access from your child state.
-
OfflineBanner
-
Widget that shows an offline banner at the top of the screen.
-
Pullable
-
The Pullable widget helps you refresh and load more content with a flexible API.
-
PullableConfig
-
Configuration for the Pullable widget
-
Spacing
-
A utility widget that creates consistent spacing between UI elements.
-
StateActions
-
State actions
-
StyledText
-
StyledText allows you to display rich text with different styles.
-
TextFieldStateActions
-
Provides state management actions for InputField widgets.
-
TextTr
-
A Text widget that automatically translates its content using Nylo's
localization system.
-
TransitionType
-
A utility class that simplifies the creation of page transitions by encapsulating
transition types and their associated settings.
-
UpdateState
-
UpdateState Model.
Typedefs
-
CollectionItemBuilder<T>
= Widget Function(BuildContext context, CollectionItem<T> item)
-
Type-safe builder function signature.
-
ModalShowFunction
= Future<T?> Function<T>(BuildContext context, {List<Widget> actionsColumn, List<Widget> actionsRow, Color? backgroundColor, required Widget child, Color? closeButtonColor, Color? closeButtonIconColor, Color? handleColor, double? height, bool isScrollControlled, Color? modalBackgroundColor, BoxDecoration? modalDecoration, bool showCloseButton, bool showHandle, bool useRootNavigator, bool useSafeArea})
-
Type definition for the NyBaseModal.show method.
Use this to preserve type information when creating references to the show method.