easyflu
library
Classes
ActionPane
An action pane.
ActionPaneData
Data of the ambient ActionPane accessible from its children.
AlignedGridView
A scrollable, 2D array of widgets placed according to the aligned layout.
AndroidBuildVersion
Version values of the current Android operating system build derived from
android.os.Build.VERSION
.
AndroidDeviceInfo
Information derived from android.os.Build
.
AndroidEditor
AnsiColor
This class handles colorizing of terminal output.
ArabicTextDelegate
AssetsPickerTextDelegate implements with Arabic.
الترجمة العربية
AssetEntity
Used to describe an asset.
AssetEntityGridItemBuilder
AssetEntityGridItemWidgetState
AssetEntityImageProvider
AssetPathEntity
asset entity, for entity info.
AssetPicker <Asset , Path >
AssetPickerBuilderDelegate <Asset , Path >
The delegate to build the whole picker's components.
Built a slide page transition for the picker.
为选择器构造一个上下进出的页面过渡动画
AssetPickerProvider <Asset , Path >
ChangeNotifier for assets picker.
AssetPickerState <Asset , Path >
AssetPickerViewer <Asset , Path >
AssetPickerViewerBuilderDelegate <Asset , Path >
AssetPickerViewerProvider <A >
ChangeNotifier for assets picker viewer.
资源选择查看器的 provider model.
AssetPickerViewerState <Asset , Path >
AssetsPickerTextDelegate
Author
Alex (https://github.com/Alex525 )
Date
2020/4/7 10:25
AutoOrientation
球脉冲Footer
球脉冲组件
球脉冲Header
球脉冲组件
BasePainter
BehindMotion
An ActionPane motion which reveals actions as if they were behind the
Slidable .
BezierBounceFooter
BezierBounceFooter组件
弹出圆圈Header
弹出小球组件
BezierHourGlassHeader
BezierHourGlassHeader组件
Bindings
Bindings should be extended or implemented.
When using GetMaterialApp
, all GetPage
s and navigation
methods (like Get.to()) have a binding
property that takes an
instance of Bindings to manage the
dependencies() (via Get.put()) for the Route you are opening.
BindingsBuilder <T >
Simplifies Bindings generation from a single callback.
To avoid the creation of a custom Binding instance per route.
ChangeNotifierProvider <T extends ChangeNotifier ? >
Listens to a ChangeNotifier , expose it to its descendants and rebuilds
dependents whenever ChangeNotifier.notifyListeners is called.
ChangeNotifierProxyProvider <T , R extends ChangeNotifier ? >
A ChangeNotifierProvider that builds and synchronizes a ChangeNotifier
with external values.
ChangeNotifierProxyProvider0 <R extends ChangeNotifier ? >
A ChangeNotifierProvider that builds and synchronizes a ChangeNotifier
with external values.
ChangeNotifierProxyProvider2 <T , T2 , R extends ChangeNotifier ? >
A ChangeNotifierProvider that builds and synchronizes a ChangeNotifier
with external values.
ChangeNotifierProxyProvider3 <T , T2 , T3 , R extends ChangeNotifier ? >
A ChangeNotifierProvider that builds and synchronizes a ChangeNotifier
with external values.
ChangeNotifierProxyProvider4 <T , T2 , T3 , T4 , R extends ChangeNotifier ? >
A ChangeNotifierProvider that builds and synchronizes a ChangeNotifier
with external values.
ChangeNotifierProxyProvider5 <T , T2 , T3 , T4 , T5 , R extends ChangeNotifier ? >
A ChangeNotifierProvider that builds and synchronizes a ChangeNotifier
with external values.
ChangeNotifierProxyProvider6 <T , T2 , T3 , T4 , T5 , T6 , R extends ChangeNotifier ? >
A ChangeNotifierProvider that builds and synchronizes a ChangeNotifier
with external values.
CirclePainter
圆面切割
经典Footer
经典Footer组件
经典Header
经典Header组件
ColorPainter
CommonSortPathDelegate
Common sort path delegate.
常用的路径排序实现
Connectivity
Discover network connectivity configurations: Distinguish between WI-FI and cellular, check WI-FI status and more.
ConsoleOutput
Default implementation of LogOutput .
Consumer <T >
Obtains Provider<T> from its ancestors and passes its value to builder .
Consumer2 <A , B >
Obtains Provider<T> from its ancestors and passes its value to builder .
Consumer3 <A , B , C >
Obtains Provider<T> from its ancestors and passes its value to builder .
Consumer4 <A , B , C , D >
Obtains Provider<T> from its ancestors and passes its value to builder .
Consumer5 <A , B , C , D , E >
Obtains Provider<T> from its ancestors and passes its value to builder .
Consumer6 <A , B , C , D , E , F >
Obtains Provider<T> from its ancestors and passes its value to builder .
通用Footer构造器
通用Header
CustomLayoutOption
CustomSlidableAction
Represents an action of an ActionPane .
CustomTransition
DateTimeCond
CreateDate
DefaultAssetPickerBuilderDelegate
DefaultAssetPickerProvider
DefaultAssetPickerViewerBuilderDelegate
DeferredInheritedProvider <T , R >
An InheritedProvider where the object listened is not the object
emitted.
DelayTween
气球快递Header
气球快递组件
DevelopmentFilter
Prints all logs with level >= Logger.level
while in development mode (eg
when assert
s are evaluated, Flutter calls this debug mode).
DeviceInfoPlugin
Provides device and operating system information.
DismissiblePane
A widget wich controls how a Slidable dismisses.
DisposableInterface
DrawerMotion
An ActionPane motion which reveals actions as if they were drawers.
DropPainter
DurationConstraint
Constraints of duration.
EasyRefresh
EasyRefresh
下拉刷新,上拉加载组件
EasyRefreshController
EasyRefresh控制器
EasyRefreshSliverLoadControl
A sliver widget implementing the iOS-style pull to refresh content control.
EasyRefreshSliverRefreshControl
A sliver widget implementing the iOS-style pull to refresh content control.
Editor
EnglishTextDelegate
AssetsPickerTextDelegate implements with English.
English Localization
EventBus
Dispatches events to listeners using the Dart Stream API. The EventBus
enables decoupled applications. It allows objects to interact without
requiring to explicitly define listeners and keeping track of them.
ExtendedGridView
A scrollable, 2D array of widgets.
ExtendedImage
extended image base on official
ExtendedListDelegate
A delegate that provides extensions within the ExtendedGridView ,ExtendedList
,WaterfallFlow
.
ExtendedListView
create by zmtzawqlp on 2019/11/23
ExtendedSliverFixedExtentList
A sliver that places multiple box children with the same main axis extent in
a linear array.
ExtendedSliverGrid
A sliver that places multiple box children in a two dimensional arrangement.
ExtendedSliverList
create by zmtzawqlp on 2019/11/23
FastList <T >
FileOutput
FilterOption
Filter option
筛选选项的详细情况
FilterOptionGroup
Filter option for get asset.
首次刷新Header
FloatFormatter
FlutterSmartDialog
FontSizeResolvers
Header
Formatter
FormData
FrenchTextDelegate
AssetsPickerTextDelegate implements with French.
Délégué texte français
FullLifeCycleController
FutureProvider <T >
Listens to a Future and exposes its result to child
and its descendants.
GermanTextDelegate
AssetsPickerTextDelegate implementiert mit der deutschen Übersetzung.
Deutsche Textimplementierung.
GetBar
GetBuilder <T extends GetxController >
GetBuilderState <T extends GetxController >
GetConnect
GetConnectInterface
GetCupertinoApp
GetDelegate
GetHttpClient
GetInformationParser
GetInstance
GetInterface
GetInterface allows any auxiliary package to be merged into the "Get"
class through extensions
GetLifeCycle
GetMaterialApp
GetMaterialController
GetMicrotask
GetMiddleware
The Page Middlewares.
The Functions will be called in this order
(( redirect -> onPageCalled -> onBindingsStart ->
onPageBuildStart -> onPageBuilt -> onPageDispose ))
GetModalBottomSheetRoute <T >
GetNavConfig
This config enables us to navigate directly to a sub-url
GetNavigator
GetNotifier <T >
GetObserver
GetPage <T >
GetPlatform
GetQueue
GetResponsiveView <T >
Extend this widget to build responsive view.
this widget contains the screen
property that have all
information about the screen size and type.
You have two options to build it.
1- with builder
method you return the widget to build.
2- with methods desktop
, tablet
,phone
, watch
. the specific
method will be built when the screen type matches the method
when the screen is ScreenType.Tablet the tablet
method
will be exuded and so on.
Note if you use this method please set the
property alwaysUseBuilder
to false
With settings
property you can set the width limit for the screen types.
GetResponsiveWidget <T extends GetLifeCycleBase ? >
GetRouterOutlet
GetSnackBar
GetSnackBarState
GetSocket
GetStream <T >
GetStream is the lightest and most performative way of working
with events at Dart. You sintaxe is like StreamController, but it works
with simple callbacks. In this way, every event calls only one function.
There is no buffering, to very low memory consumption.
event add will add a object to stream. addError will add a error
to stream. listen is a very light StreamSubscription interface.
Is possible take the last value with value property.
GetStreamTransformation <T >
GetUtils
GetView <T >
GetView is a great way of quickly access your Controller
without having to call Get.find
GetWidget <S extends GetLifeCycleBase ? >
GetWidget is a great way of quickly access your individual Controller
without having to call Get.find
GetX <T extends DisposableInterface >
GetxController
GetxService
Unlike GetxController, which serves to control events on each of its pages,
GetxService is not automatically disposed (nor can be removed with
Get.delete()).
It is ideal for situations where, once started, that service will
remain in memory, such as Auth control for example. Only way to remove
it is Get.reset().
GetXState <T extends DisposableInterface >
GraphQLResponse <T >
Header
HebrewTextDelegate
AssetsPickerTextDelegate implements with Hebrew.
תרגום בשפה העברית
HeroDialogRoute <T >
A PageRoute with a semi transparent background.
HybridPrinter
A decorator for a LogPrinter that allows for the composition of
different printers to handle different log messages. Provide it's
constructor with a base printer, but include named parameters for
any levels that have a different printer:
IndexController
InheritedContext <T >
A BuildContext associated to an InheritedProvider .
InheritedProvider <T >
A generic implementation of an InheritedWidget .
InstanceInfo
InteractiveviewerGallery <T >
InternalFinalCallback <T >
Special callable class to keep the contract of a regular method, and avoid
overrides if you extend the class that uses it, as Dart has no final
methods.
Used in DisposableInterface
to avoid the danger of overriding onStart.
IntFormatter
InversedDrawerMotion
A DismissiblePane motion which will make the furthest action grows faster
as the Slidable dismisses.
IosDeviceInfo
Information derived from UIDevice
.
IosEditor
For iOS
IosUtsname
Information derived from utsname
.
See http://pubs.opengroup.org/onlinepubs/7908799/xsh/sysutsname.h.html for details.
JapaneseTextDelegate
AssetsPickerTextDelegate implements with Japanese.
日本語の TextDelegate
KeyboardDismisser
A widget that can dismiss the keyboard when performing a gesture.
LatLng
Longitude and latitude
LightSubscription <T >
链接通知器
链接器Header
链接通知器
ListenableProvider <T extends Listenable ? >
Listens to a Listenable , expose it to its descendants and rebuilds
dependents whenever the listener emits an event.
ListenableProxyProvider <T , R extends Listenable ? >
A variation of ListenableProvider that builds its value from
values obtained from other providers.
ListenableProxyProvider0 <R extends Listenable ? >
A variation of ListenableProvider that builds its value from
values obtained from other providers.
ListenableProxyProvider2 <T , T2 , R extends Listenable ? >
A variation of ListenableProvider that builds its value from
values obtained from other providers.
ListenableProxyProvider3 <T , T2 , T3 , R extends Listenable ? >
A variation of ListenableProvider that builds its value from
values obtained from other providers.
ListenableProxyProvider4 <T , T2 , T3 , T4 , R extends Listenable ? >
A variation of ListenableProvider that builds its value from
values obtained from other providers.
ListenableProxyProvider5 <T , T2 , T3 , T4 , T5 , R extends Listenable ? >
A variation of ListenableProvider that builds its value from
values obtained from other providers.
ListenableProxyProvider6 <T , T2 , T3 , T4 , T5 , T6 , R extends Listenable ? >
A variation of ListenableProvider that builds its value from
values obtained from other providers.
LogEvent
LogFilter
An abstract filter of log messages.
LogfmtPrinter
Outputs a logfmt message:
Logger
Use instances of logger to send log messages to the LogPrinter .
LogOutput
Log output receives a OutputEvent from LogPrinter and sends it to the
desired destination.
LogPrinter
An abstract handler of log events.
MasonryGridView
A scrollable, 2D array of widgets placed according to the masonry layout.
质感设计Footer
质感设计Footer组件
质感设计Header
质感设计Header组件
MemoryOutput
Buffers OutputEvent s.
MiddlewareRunner
MiniStream <T >
MiniSubscription <T >
MixinBuilder <T extends GetxController >
MultiOutput
Logs simultaneously to multiple LogOutput outputs.
MultipartFile
MultiProvider
A provider that merges multiple providers into a single linear widget tree.
It is used to improve readability and reduce boilerplate code of having to
nest multiple layers of providers.
Node <T >
NonePainter
通知器Footer
通知器Header
Obx
The simplest reactive widget in GetX.
ObxState
ObxValue <T extends RxInterface >
Similar to Obx, but manages a local state.
Pass the initial data in constructor.
Useful for simple local states, like toggles, visibility, themes,
button states, etc.
Sample:
ObxValue((data) => Switch(
value: data.value,
onChanged: (flag) => data.value = flag,
),
false.obs,
),
ObxWidget
The ObxWidget is the base for all GetX reactive widgets
OpacityTransformBuilder
OrderOption
OutputEvent
PackageInfo
Application metadata. Provides application bundle information on iOS and
application package information on Android.
PageIndicator
PathDecoded
Permission
Defines the permissions which can be checked and requested.
PermissionWithService
A special kind of permission, used to access a service.
PermisstionRequestOption
金色校园Footer
金色校园组件
金色校园Header
金色校园组件
PhotoCachingManager
Cached thumbnails for album management.
PhotoManager
use the class method to help user load asset list and asset info.
PMProgressHandler
Only works in iOS.
PMProgressState
Status of progress for PMProgressHandler .
PrefixPrinter
A decorator for a LogPrinter that allows for the prepending of every
line in the log output with a string for the level of that log. For
example:
PrettyPrinter
Default implementation of LogPrinter .
PrintFormat
ProductionFilter
Prints all logs with level >= Logger.level
even in production.
Provider <T >
A Provider that manages the lifecycle of the value it provides by
delegating to a pair of Create and Dispose .
ProviderBinding
ProxyProvider <T , R >
A provider that builds a value based on other providers.
ProxyProvider0 <R >
A provider that builds a value based on other providers.
ProxyProvider2 <T , T2 , R >
A provider that builds a value based on other providers.
ProxyProvider3 <T , T2 , T3 , R >
A provider that builds a value based on other providers.
ProxyProvider4 <T , T2 , T3 , T4 , R >
A provider that builds a value based on other providers.
ProxyProvider5 <T , T2 , T3 , T4 , T5 , R >
A provider that builds a value based on other providers.
ProxyProvider6 <T , T2 , T3 , T4 , T5 , T6 , R >
A provider that builds a value based on other providers.
QuiltedGridRepeatPattern
Defines how a pattern is repeating.
QuiltedGridTile
A tile for SliverQuiltedGridDelegate .
ReassembleHandler
If you need your provider to be notified when 'Hot Reload' occurs,
use this class
RebuildFactors
REdgeInsets
REdgeInsetsDirectional
RenderSliverMasonryGrid
A sliver that places multiple box children in a two dimensional arrangement.
RequestType
ResizeRequest
A request made to resize a Slidable after a dismiss.
Response <T >
ResponsiveScreen
ResponsiveScreenSettings
RotateTransformBuilder
RouterOutlet <TDelegate extends RouterDelegate <T > , T extends Object >
RouterOutletState <TDelegate extends RouterDelegate <T > , T extends Object >
Routing
RPadding
RSizedBox
RussianTextDelegate
AssetsPickerTextDelegate implements with Russian.
Локализация на русский язык.
Rx <T >
Foundation class used for custom Types
outside the common native Dart
types.
For example, any custom "Model" class, like User().obs will use Rx
as
wrapper.
RxBool
RxController
RxDouble
RxInt
RxInterface <T >
This class is the foundation for all reactive (Rx) classes that makes Get
so powerful.
This interface is the contract that _RxImpl]
RxList <E >
Create a list similar to List<T>
RxMap <K , V >
Rxn <T >
RxnBool
RxnDouble
RxnInt
RxnNum
RxNotifier <T >
RxnString
Rx class for String
Type.
RxNum
RxSet <E >
RxStatus
RxString
Rx class for String
Type.
ScaleAndFadeTransformer
ScalePainter
ScaleTransformBuilder
ScreenUtil
ScreenUtilInit
ScrollMotion
An ActionPane motion which reveals actions as if they were scrolling
from the outside.
ScrollNotificationInterceptor
滚动通知拦截器(用于拦截其他UI组件的滑动事件)
Selector <A , S >
An equivalent to Consumer that can filter updates by selecting a limited
amount of values and prevent rebuild if they don't change.
Selector0 <T >
A base class for custom Selector .
Selector2 <A , B , S >
An equivalent to Consumer that can filter updates by selecting a limited
amount of values and prevent rebuild if they don't change.
Selector3 <A , B , C , S >
An equivalent to Consumer that can filter updates by selecting a limited
amount of values and prevent rebuild if they don't change.
Selector4 <A , B , C , D , S >
An equivalent to Consumer that can filter updates by selecting a limited
amount of values and prevent rebuild if they don't change.
Selector5 <A , B , C , D , E , S >
An equivalent to Consumer that can filter updates by selecting a limited
amount of values and prevent rebuild if they don't change.
Selector6 <A , B , C , D , E , F , S >
An equivalent to Consumer that can filter updates by selecting a limited
amount of values and prevent rebuild if they don't change.
SimpleBuilder
SimpleBuilderState
SimplePrinter
Outputs simple log messages:
SizeConstraint
Constraints of asset pixel width and height.
Slidable
A widget which can be dragged to reveal contextual actions.
SlidableAction
An action for Slidable which can show an icon, a label, or both.
SlidableAutoCloseBehavior
A widget that forces the Slidable widgets below it to close when another
Slidable widget with the same groupTag
opens.
SlidableAutoCloseNotification
A notification used to close other Slidable widgets with the same
groupTag .
SlidableController
Represents a way to control a slidable from outside.
SlidableGroupBehavior <T >
A widget which can dispatch notifications to a group of Slidable below it.
SlidableGroupBehaviorListener <T >
A widget which listens to notifications dispatched by a
SlidableGroupBehavior of the same type.
SlidableGroupNotification
Used to dispatch a Slidable notification.
SlidableGroupNotificationDispatcher <T >
A dispatcher used to dispatch a Slidable notification.
SlidableNotification
A Slidable notification that can bubble up the widget tree.
SlidableNotificationListener
A widget that listens for SlidableNotification s bubbling up the tree.
SlidableRatioNotification
A specific SlidableNotification which holds the current ratio value.
SlidePainter
SliverAlignedGrid
A sliver that places multiple box children in a two dimensional arrangement.
SliverMasonryGrid
A sliver that places multiple box children in a two dimensional arrangement.
SliverMasonryGridParentData
Parent data structure used by RenderSliverMasonryGrid .
SliverQuiltedGridDelegate
Controls the layout of a quilted grid.
SliverSimpleGridDelegate
Controls the layout of tiles in a some slivers.
SliverSimpleGridDelegateWithFixedCrossAxisCount
Creates grid layouts with a fixed number of tiles in the cross axis.
SliverSimpleGridDelegateWithMaxCrossAxisExtent
Creates grid layouts with tiles that each have a maximum cross-axis extent.
SliverStairedGridDelegate
Controls the layout of tiles in a staired grid.
SliverWovenGridDelegate
Controls the layout of tiles in a woven grid.
SmartDialog
SnackbarController
SortPathDelegate <Path >
Delegate to sort asset path entities.
用于资源路径排序的实现
SpinKitHourGlass
HourGlass
来源于flutter_spinkit
StaggeredGrid
A grid which lays out children in a staggered arrangement.
Each child can have a different size.
Wrap your children with a StaggeredGridTile to specify their size if it's
different from a 1x1 tile.
StaggeredGridTile
Represents the size of a StaggeredGrid 's tile.
StairedGridTile
A tile of a staired pattern.
StreamOutput
StreamProvider <T >
Listens to a Stream and exposes its content to child
and descendants.
StretchMotion
An ActionPane motion which reveals actions by stretching their extent
while sliding the Slidable .
StringFormatter
SuperController <T >
Swiper
SwiperControl
SwiperController
SwiperPlugin
plugin to display swiper components
SwiperPluginConfig
SwiperPluginView
TaskState
任务状态
冲上云霄Footer
冲上云霄组件
冲上云霄Header
冲上云霄组件
ThumbOption
TransformBuilder <T >
TranslateTransformBuilder
Translations
TrustedCertificate
Value <T >
ValueBuilder <T >
Manages a local state like ObxValue, but uses a callback instead of
a Rx value.
ValueBuilderState <T >
ValueListenableProvider <T >
Listens to a ValueListenable and exposes its current value.
WarmPainter
Worker
Workers
WovenGridTile
A tile of a woven pattern.
Enums
ActionPaneType
The different kinds of action panes.
AssetType
asset type
ConnectivityResult
Connection status check result.
DeliveryMode
DeviceType
GestureType
The gestures available to dismiss the keyboard with KeyboardDismisser .
ImageFileType
IosAccessLevel
LastChildLayoutType
Level
Level s to control logging output. Logging can be enabled to include all
levels above certain Level .
LoadMode
The current state of the refresh control.
LocationAuthorizationStatus
The status of the location service authorization.
OrderOptionType
PageIndicatorLayout
PermissionState
Android: The effective values are authorized or denied .
PermissionStatus
Defines the state of a Permission .
PMRequestState
Current asset loading status
PopMode
Enables the user to customize the intended pop behavior
PreventDuplicateHandlingMode
Enables the user to customize the behavior when pushing multiple routes that
shouldn't be duplicates
RefreshMode
The current state of the refresh control.
ResizeContentMode
Resize content mode
ResizeMode
Resize strategy, useful when need exact image size. It's must be used only for iOS
Apple resize mode documentation
RowStyle
ScreenType
ServiceStatus
Defines the different states a service can be in.
SmartManagement
GetX by default disposes unused controllers from memory,
Through different behaviors.
SmartManagement.full
SmartManagement.full is the default one. Dispose classes that are
not being used and were not set to be permanent. In the majority
of the cases you will want to keep this config untouched.
If you new to GetX then don't change this.
SmartManagement.onlyBuilder only controllers started in init:
or loaded into a Binding with Get.lazyPut() will be disposed. If you use
Get.put() or Get.putAsync() or any other approach, SmartManagement
will not have permissions to exclude this dependency. With the default
behavior, even widgets instantiated with "Get.put" will be removed,
unlike SmartManagement.onlyBuilders.
SmartManagement.keepFactory Just like SmartManagement.full,
it will remove it's dependencies when it's not being used anymore.
However, it will keep their factory, which means it will recreate
the dependency if you need that instance again.
SmartStatus
SmartToastType
SnackbarStatus
Indicates Status of snackbar
SnackbarStatus.OPEN Snack is fully open, SnackbarStatus.CLOSED Snackbar
has closed,
SnackbarStatus.OPENING Starts with the opening animation and ends
with the full
snackbar display, SnackbarStatus.CLOSING Starts with the closing animation
and ends
with the full snackbar dispose
SnackPosition
Indicates if snack is going to start at the TOP or at the BOTTOM
SnackStyle
Indicates if snack will be attached to the edge of the screen or not
SpecialImageType
SpecialItemPosition
Provide an item slot for custom widget insertion.
提供一个自定义位置供特殊item放入资源列表中。
SpecialPickerType
Author
Alex (https://github.com/Alex525 )
Date
2020/7/8 12:32
StorageDirectory
Corresponds to constants defined in Androids android.os.Environment
class.
SwiperLayout
ThumbFormat
For generality, only support jpg and png.
Transition
Properties
disablePathProviderPlatformOverride
← bool
no getter
Get
→ _GetImpl
final
navigator
→ NavigatorState ?
It replaces the Flutter Navigator, but needs no context.
You can to use navigator.push(YourRoute()) rather
Navigator.push(context, YourRoute());
no setter
sprintf
↔ PrintFormat
getter/setter pair
Functions
ambiguate <T > (T? value )
→ T?
bodyBytesToString (Stream <List <int > > bodyBytes , Map <String , String > headers )
→ Future <String >
debounce <T > (RxInterface <T > listener , WorkerCallback <T > callback , {Duration ? time , Function ? onError , void onDone ()?, bool ? cancelOnError })
→ Worker
debounce is similar to interval , but sends the last value.
Useful for Anti DDos, every time the user stops typing for 1 second,
for instance.
When listener
emits the last "value", when time
hits,
it calls callback
with the last "value" emitted.
defaultLogWriterCallback (String value , {bool isError = false })
→ void
default logger from GetX
ever <T > (RxInterface <T > listener , WorkerCallback <T > callback , {dynamic condition = true , Function ? onError , void onDone ()?, bool ? cancelOnError })
→ Worker
Called every time listener
changes. As long as the condition
returns true.
everAll (List <RxInterface > listeners , WorkerCallback callback , {dynamic condition = true , Function ? onError , void onDone ()?, bool ? cancelOnError })
→ Worker
Similar to ever , but takes a list of listeners
, the condition
for the callback
is common to all listeners
,
and the callback
is executed to each one of them. The Worker is
common to all, so worker.dispose()
will cancel all streams.
getApplicationCacheDirectory ()
→ Future <Directory >
Path to a directory where the application may place application-specific
cache files.
getApplicationDocumentsDirectory ()
→ Future <Directory >
Path to a directory where the application may place data that is
user-generated, or that cannot otherwise be recreated by your application.
getApplicationSupportDirectory ()
→ Future <Directory >
Path to a directory where the application may place application support
files.
getDownloadsDirectory ()
→ Future <Directory ? >
Path to the directory where downloaded files can be stored.
getExternalCacheDirectories ()
→ Future <List <Directory > ? >
Paths to directories where application specific cache data can be stored
externally.
getExternalStorageDirectories ({StorageDirectory ? type })
→ Future <List <Directory > ? >
Paths to directories where application specific data can be stored
externally.
getExternalStorageDirectory ()
→ Future <Directory ? >
Path to a directory where the application may access top level storage.
getLibraryDirectory ()
→ Future <Directory >
Path to the directory where application can store files that are persistent,
backed up, and not visible to the user, such as sqlite.db.
getTemporaryDirectory ()
→ Future <Directory >
Path to the temporary directory on the device that is not backed up and is
suitable for storing caches of downloaded files.
interval <T > (RxInterface <T > listener , WorkerCallback <T > callback , {Duration time = const Duration(seconds: 1) , dynamic condition = true , Function ? onError , void onDone ()?, bool ? cancelOnError })
→ Worker
Ignore all changes in listener
during time
(1 sec by default) or until
condition
is met (can be a bool expression or a bool Function()
),
It brings the 1st "value" since the period of time, so
if you click a counter button 3 times in 1 sec, it will show you "1"
(after 1 sec of the first press)
click counter 3 times in 1 sec, it will show you "4" (after 1 sec)
click counter 2 times in 1 sec, it will show you "7" (after 1 sec).
once <T > (RxInterface <T > listener , WorkerCallback <T > callback , {dynamic condition = true , Function ? onError , void onDone ()?, bool ? cancelOnError })
→ Worker
once()
will execute only 1 time when condition
is met and cancel
the subscription to the listener
stream right after that.
condition
defines when callback
is called, and
can be a bool or a bool Function()
.
openAppSettings ()
→ Future <bool >
Opens the app settings page.
Typedefs
AddSubscription <T >
= FutureOr <void > Function(LightSubscription <T > subs )
AfterPaintImage
= void Function(Canvas canvas , Rect rect , Image image , Paint paint )
Call after paint image
AssetSelectPredicate <Asset >
= FutureOr <bool > Function(BuildContext context , Asset asset , bool isSelected )
Predicate whether an asset can be selected or unselected.
判断资源可否被选择
AsyncInstanceBuilderCallback <S >
= Future <S > Function()
BeforePaintImage
= bool Function(Canvas canvas , Rect rect , Image image , Paint paint )
rect
is render size
if return true, it will not paint original image,
BindingBuilderCallback
= void Function()
BindLoadIndicator
= void Function(FinishLoad finishLoad , VoidCallback resetLoadState )
绑定加载指示剂
BindRefreshIndicator
= void Function(FinishRefresh finishRefresh , VoidCallback resetRefreshState )
绑定刷新指示剂
BuildGestureImage
= Widget Function(GestureDetails gestureDetails )
Build Gesture Image
CanScaleImage
= bool Function(GestureDetails? details )
Whether should scale image
CanScrollPage
= bool Function(GestureDetails? gestureDetails )
Whether we can scroll page
CollectGarbage
= void Function(List <int > garbages )
Return indexes of children which are disposed to collect
Condition
= bool Function()
ConfirmDismissCallback
= Future <bool > Function()
Signature used by DismissiblePane to give the application an opportunity
to confirm or veto a dismiss gesture.
Create <T >
= T Function(BuildContext context )
A function that creates an object of type T
.
Decoder <T >
= T Function(dynamic data )
DeferredStartListening <T , R >
= VoidCallback Function(InheritedContext <R? > context , void setState (R value ), T controller , R? value )
A callback used to handle the subscription of controller
.
Dispose <T >
= void Function(BuildContext context , T value )
A function that disposes an object of type T
.
DoubleTap
= void Function(ExtendedImageGestureState state )
Double tap call back
EasyRefreshChildBuilder
= Widget Function(BuildContext context , ScrollPhysics physics , )
子组件构造器
EditActionDetailsIsChanged
= void Function(EditActionDetails? details )
Call when EditActionDetails is changed
EditorMaskColorHandler
= Color Function(BuildContext context , bool pointerDown )
Get editor mask color base on pointerDown
ErrorBuilder <T >
= T Function(BuildContext context , Object ? error )
A callback used to build a valid value from an error.
FinishLoad
= void Function({bool noMore , bool success })
结束加载
success 为是否成功(为false时,noMore无效)
noMore 为是否有更多数据
FinishRefresh
= void Function({bool noMore , bool success })
结束刷新
success 为是否成功(为false时,noMore无效)
noMore 为是否有更多数据
FlutterSmartLoadingBuilder
= Widget Function(String msg , Color background )
FlutterSmartStyleBuilder
= Widget Function(Widget child )
FlutterSmartToastBuilder
= Widget Function(String msg , AlignmentGeometry alignment )
FontSizeResolver
= double Function(num fontSize , ScreenUtil instance )
GestureDetailsIsChanged
= void Function(GestureDetails? details )
Call when GestureDetails is changed
GestureOffsetAnimationCallBack
= void Function(Offset offset )
Animation call back for inertia drag
GestureScaleAnimationCallBack
= void Function(double scale )
Animation call back for scale
GetControllerBuilder <T extends DisposableInterface >
= Widget Function(T controller )
GetPageBuilder
= Widget Function()
GetXControllerBuilder <T extends DisposableInterface >
= Widget Function(T controller )
HeroBuilderForSlidingPage
= Widget Function(Widget widget )
Build Hero only for sliding page
the transform of sliding page must be working on Hero
so that Hero animation wouldn't be strange when pop page
ImageBuilderForGesture
= Widget Function(Widget image )
Build image for gesture, we can handle custom Widget about gesture
IndexedFocusedWidgetBuilder
= Widget Function(BuildContext context , int index , bool isFocus )
Builds a carousel controlled by a PageView for the tweet media sources.
IndexedTagStringBuilder
= String Function(int index )
IndicatorBuilder
= Widget Function(BuildContext context , bool isAssetsEmpty )
InitDestinationRect
= void Function(Rect initialDestinationRect )
Return initial destination rect
InitEditorConfigHandler
= EditorConfig? Function(ExtendedImageState? state )
Init GestureConfig when image is ready.
InitGestureConfigHandler
= GestureConfig Function(ExtendedImageState state )
Init GestureConfig when image is ready.
InjectorBuilderCallback <S >
= S Function(GetInstance )
InstanceBuilderCallback <S >
= S Function()
LastChildLayoutTypeBuilder
= LastChildLayoutType Function(int index )
The builder to get layout type of last child
Notice: it should only for last child
LoadControlBuilder
= Widget Function(BuildContext context , LoadMode loadState , double pulledExtent , double loadTriggerPullDistance , double loadIndicatorExtent , AxisDirection axisDirection , bool float , Duration ? completeDuration , bool enableInfiniteLoad , bool success , bool noMore )
Signature for a builder that can create a different widget to show in the
refresh indicator space depending on the current state of the refresh
control and the space available.
LoadStateChanged
= Widget ? Function(ExtendedImageState state )
extended_image_typedef.dart
create by zmtzawqlp on 2019/4/3
Locator
= T Function<T >()
A generic function that can be called to read providers, without having a
reference on BuildContext .
LogCallback
= void Function(LogEvent event )
LogWriterCallback
= void Function(String text , {bool isError })
VoidCallback from logs
MergeEditRect
= Rect Function(Rect editRect )
Return merged editRect rect
NotifierBuilder <T >
= Widget Function(T state )
OnLoadCallback
= Future <void > Function()
A callback function that's invoked when the EasyRefreshSliverLoadControl is
pulled a loadTriggerPullDistance
. Must return a Future . Upon
completion of the Future , the EasyRefreshSliverLoadControl enters the
LoadMode.done state and will start to go away.
OnRefreshCallback
= Future <void > Function()
A callback function that's invoked when the EasyRefreshSliverRefreshControl is
pulled a refreshTriggerPullDistance
. Must return a Future . Upon
completion of the Future , the EasyRefreshSliverRefreshControl enters the
RefreshMode.done state and will start to go away.
OnSlidingPage
= void Function(ExtendedImageSlidePageState state )
Call on sliding page
OnTap
= void Function(GetSnackBar snack )
OutputCallback
= void Function(OutputEvent event )
PaintExtentOf
= double Function(RenderBox ? child )
Return paint extent of child
PrintFormatFormatter
= Formatter Function(dynamic arg , dynamic options )
PrintFunctionCallback
= void Function(String prefix , dynamic value , String info , {bool ? isError })
Progress
= dynamic Function(double percent )
ProviderBuilder <R >
= Widget Function(BuildContext context , R value , Widget child )
ProxyProviderBuilder <T , R >
= R Function(BuildContext context , T value , R? previous )
ProxyProviderBuilder2 <T , T2 , R >
= R Function(BuildContext context , T value , T2 value2 , R? previous )
ProxyProviderBuilder3 <T , T2 , T3 , R >
= R Function(BuildContext context , T value , T2 value2 , T3 value3 , R? previous )
ProxyProviderBuilder4 <T , T2 , T3 , T4 , R >
= R Function(BuildContext context , T value , T2 value2 , T3 value3 , T4 value4 , R? previous )
ProxyProviderBuilder5 <T , T2 , T3 , T4 , T5 , R >
= R Function(BuildContext context , T value , T2 value2 , T3 value3 , T4 value4 , T5 value5 , R? previous )
ProxyProviderBuilder6 <T , T2 , T3 , T4 , T5 , T6 , R >
= R Function(BuildContext context , T value , T2 value2 , T3 value3 , T4 value4 , T5 value5 , T6 value6 , R? previous )
RebuildFactor
= bool Function(MediaQueryData old , MediaQueryData data )
RefreshControlBuilder
= Widget Function(BuildContext context , RefreshMode refreshState , double pulledExtent , double refreshTriggerPullDistance , double refreshIndicatorExtent , AxisDirection axisDirection , bool float , Duration ? completeDuration , bool enableInfiniteRefresh , bool success , bool noMore )
Signature for a builder that can create a different widget to show in the
refresh indicator space depending on the current state of the refresh
control and the space available.
RemoveSubscription <T >
= FutureOr <bool ? > Function(LightSubscription <T > subs )
ScreenUtilInitBuilder
= Widget Function(BuildContext context , Widget ? child )
ShouldRebuild <T >
= bool Function(T previous , T next )
Used by providers to determine whether dependents needs to be updated
when the value exposed changes
SlidableActionCallback
= void Function(BuildContext context )
Signature for CustomSlidableAction.onPressed .
SlideEndHandler
= bool ? Function(Offset offset , {ScaleEndDetails details , ExtendedImageSlidePageState state })
if return true ,pop page
else reset page state
SlideOffsetHandler
= Offset ? Function(Offset offset , {ExtendedImageSlidePageState state })
customize offset of page when slide page
SlidePageBackgroundHandler
= Color Function(Offset offset , Size pageSize )
Build page background when slide page
SlideScaleHandler
= double ? Function(Offset offset , {ExtendedImageSlidePageState state })
Customize scale of page when slide page
SnackbarStatusCallback
= void Function(SnackbarStatus ? status )
StartListening <T >
= VoidCallback Function(InheritedContext <T? > element , T value )
A callback used to start the listening of an object and return a function
that cancels the subscription.
SwiperDataBuilder
= dynamic Function(BuildContext context , dynamic data , int index )
SwiperOnTap
= dynamic Function(int index )
UpdateShouldNotify <T >
= bool Function(T previous , T current )
A function that returns true when the update from previous
to current
should notify listeners, if any.
ValueBuilderBuilder <T >
= Widget Function(T snapshot , ValueBuilderUpdateCallback <T > updater )
ValueBuilderUpdateCallback <T >
= void Function(T snapshot )
ValueUpdater <T >
= T Function()
ViewportBuilder
= void Function(int firstIndex , int lastIndex )
The builder to get indexes in viewport
if sliver is all out of viewport then return -1,-1
WidgetCallback
= Widget Function()
WorkerCallback <T >
= dynamic Function(T callback )