sura_flutter library

Classes

ConditionalWidget
build a widget depend on provided condition
Debouncer
Divider0
DotTabIndicator
EllipsisText
KeyboardDismiss
LoadingOverlayBuilder
LoadingOverlayPopScope
LoadingOverlayProvider
ShadowInputBorder
An InputBorder for TextField
SmallUnderLineTabIndicator
An Underline tab indicator but customizable and work best if isScrollable is true
SpaceX
Create a horizontal blank space
SpaceY
Create a vertical blank space
SuraAccordion
Custom accordion that similar to Flutter's ExpansionTile
SuraActionSheet<T>
A cupertino action sheet that use to create an option selector
SuraAsyncButton
Create a Material Elevated Button that can contain a loadingWiidget whenever you execute a Future function in onPressed callback
SuraAsyncIconButton
SuraBadge
A badge that often us in fpr notification
SuraColor
SuraConfirmationDialog
A dialog that provide onCancel and Confirm action
SuraDecoration
SuraExpandable
SuraFlatButton
SuraFormValidator
SuraFutureHandler<T extends Object>
SuraIconButton
SuraJwtDecoder
SuraListTile
SuraLoadingDialog
SuraNavigator
SuraNotifier<T>
SuraPageNavigator
Less boilerplate MaterialPageRoute builder
SuraPaginatedGridBuilder
SuraPaginatedList
SuraPlatformChecker
SuraProvider
SuraRaisedButton
SuraResponsive
SuraResponsiveBreakpoint
SuraResponsiveBuilder
SuraSimpleDialog
SuraStreamHandler<T>
SuraToolbar
Custom AppBar or ToolBar that often use if you're only need a BackButton for pop navigator or define a custom toolbar
SuraUtils
TokenPayload
ValueNotifierWrapper<T>
WidgetDisposer

Mixins

AfterBuildMixin<T extends StatefulWidget>
Create an override method that call after build method has been called
BoolNotifierMixin<T extends StatefulWidget>
Create a bool type ValueNotifier to indicate or define loading state
SuraFormMixin<T extends StatefulWidget>
Provide some field to use in a Widget that contains form

Constants

emptySizedBox → const SizedBox

Functions

errorLog([dynamic log, dynamic additional = ""]) → void
httpLog([dynamic log, dynamic additional = ""]) → void
infoLog([dynamic log, dynamic additional = ""]) → void
showSuraSimpleDialog(BuildContext context, String content) Future
Shorthand method to show SuraSimpleDialog