widgets/ny_widgets library

Classes

BottomModalSheetStyle
BottomModalSheetStyle
ButtonState
ButtonState is a stateful widget that manages the state of a button.
DecoratorTextField
DecoratorTextField is a class that helps in managing form text fields
Field
Field is a class that helps in managing form fields
FormCast
FormCast is a class that helps in managing form casts
Forms
Forms class
FormValidator
FormValidator is a class that helps in managing form validation It is used in the NyFormData class Example:
JourneyContent
A reusable content widget for journey pages
JourneyHelper
A helper class for journey navigation
JourneyState<T extends StatefulWidget>
A specialized state class for journey pages in NavigationHub journey layouts
Navigation hub state actions
NavigationTab is a class that holds the title, page, icon, activeIcon, backgroundColor, tooltip, and meta data of a bottom navigation tab.
NyBaseState<T extends StatefulWidget>
NyColor
Helper to find correct color from the context.
NyForm
NyForm is a class that helps in managing forms To create a form, you need to extend the NyFormData class Example:
NyFormData
NyFormData is a class that helps in managing form data
NyFormPicker
A NyFormPicker widget for Form Fields
NyFormStyle
NyFormStyle is a class that helps in managing form styles
NyFutureBuilder<T>
Simple way to render Future's in your project.
NyLanguageSwitcher
NyLanguageSwitcher 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:
NyListView<T>
The NyListView widget is a wrapper for the ListView widget. It provides a simple way to display a list of items. Example:
NyPage<T extends StatefulWidget>
NyPullToRefresh<T>
NyPullToRefresh is a widget that shows a list of items with a pull to refresh. Example:
NyRadioTileStyle
NyRadioTileStyle
NyRichText
NyRichText allows you to display rich text with different styles. Example:
NyState<T extends StatefulWidget>
NyStatefulWidget<T extends BaseController>
StatefulWidget's include a BaseController to access from your child state.
NyTextField
Nylo's Text Field Widget
NyTextStyle
Helper to define text styles
PageTransition<T>
A flexible page transition class that extends PageRouteBuilder to provide a variety of customizable transition animations between screens.
Pullable
The Pullable widget helps you refresh the content.
Spacing
A utility widget that creates consistent spacing between UI elements.
StateActions
State actions
TransitionType
A utility class that simplifies the creation of page transitions by encapsulating transition types and their associated settings.
UpdateState
UpdateState Model.

Enums

JourneyButtonLayout
The layout of the journey buttons
PageTransitionType
Transition enum
ProgressIndicatorPosition
The position of the progress indicator in the journey layout
TextAreaSize
TextAreaSize is an enum that helps in managing textarea sizes

Mixins

BottomNavPageControls
Mixin for the page controls

Extensions

NyFieldStyle on String

Typedefs

ChildBuilder = Widget Function(BuildContext context)
Builder function type for creating child widget
FieldStyle = String
FormStyleCheckbox = Map<String, FormCast Function()>
FormStyleCheckbox is a typedef that helps in managing form style checkboxes
FormStyleSwitchBox = Map<String, FormCast Function()>
FormStyleSwitchBox is a typedef that helps in managing form style switch boxes
FormStyleTextField = Map<String, NyTextField Function(NyTextField)>
FormStyleTextField is a typedef that helps in managing form style text fields
FormSubmitCallback = (dynamic, dynamic Function(dynamic data))?
FormSubmitCallback is a typedef that helps in managing form submit callbacks
TransitionPageBuilder = Widget Function(BuildContext context, Animation<double> animation, Animation<double> secondaryAnimation)
Builder function type for creating the transition page