framework library

Classes

AutoCloseKeyboard
BaseIO<T>
业务单元基类
BaseParam
BLoC
BLoCProvider<T extends BLoC>
Blur
BoolIO
只接收bool类型数据的IO
BoolOutput<ARG_TYPE>
只接收bool类型数据的Output
Build
CaptchaBuilder
倒计时控件 目标: [...]
CaptchaController
负责控制倒计时的类
Codec
CoverCard
CustomMaterialRoute<T>
DebounceTextField
可以设置在停止接收到TextFieldonChanged方法多久后再触发DebounceTextFieldonChanged方法 适用场景: TextField一边输入内容, 一边根据内容进行网络请求(或其他耗资源的操作), 这时需要 根据输入的节奏来调整网络请求的次数, duration参数可以设置在用户停止输入多久之后, 开始网络 请求(或其他耗资源操作).
DecoratedColumn
DecoratedFlex
DecoratedRoute<B extends BLoC, T extends Object>
B是指定的BLoC, T是Route的返回类型
DecoratedRow
DecoratedText
DecoratedWidget<B extends BLoC>
B是指定的BLoC
Delayed<T>
DotTabIndicator
DoubleBackExitApp
连续点击返回按钮退出应用, 如果要使用默认的提示信息(由SnackBar实现)的话, 那么要放在Scaffold 下方!
Empty
EmptyPlaceholder
ErrorPlaceholder
FadeSlideTransition
Faker
FeaturedItem
FlatText
这里的Flat并不是视觉上的Flat, 只是把TextStyle里的参数提取到Text的构造器里, 减少层级
FormSheet
表单Widget [...]
FractionalScreen
FreeBottomSheet
可以自由设置高度的bottom sheet, 就是解除了系统自带sheet的高度限制
FreeCheckbox
去除了官方checkbox中默认padding的限制
FreeDialog
解除了Material Design对于Dialog的边距限制的Dialog 大体部分之间拷贝了原始的Dialog类, 就修改了下padding
FutureListView<T>
FutureWidget<T>
Global
全局常量
GlobalBLoC
全局BLoC, 全局BLoC和局部BLoC目前没用什么功能上的区别, 只是做一下区分
GradientButton
HttpUtils
ImageView
Input<T>
只输入数据的业务单元
IO<T>
既可以输入又可以输出的事件
ListInput<T>
内部数据类型是List的输入业务单元
ListIO<T>
内部数据类型是List的输入输出业务单元
ListOutput<T, ARG_TYPE>
内部数据类型是List的输出业务单元
LoadingBLoC
LoadingWidget
LocalBLoC
局部BLoC, 局部BLoC通常包在Screen的外面, 作用范围就是这个Screen内部
NotificationBadge
Output<T, ARG_TYPE>
只输出数据的业务单元
PageAnalytics
PreferredFutureBuilder<T>
Preferred表达的语义是对目标widget预定义了一些参数 Decorated表达的语义是对目标widget进行了一些外围的包装
PreferredStreamBuilder<T>
PrimaryIcon
使用primaryColor的Icon
RootBLoC
顶层BLoC, 这个BLoC只有子BLoC, 没有Event, 并且子BLoC都是GlobalBLoC
RouteInfo
Router
Runtime
显示运行时信息的widget
RuntimeScaffold<T extends LocalBLoC>
ShowUpTransition
SnapList
StarRating
Static<T>
BLoC内的静态值, 也就是供初始化时的值, 之前都是直接写成字段, 这里提供一个类, 保持与IO的一致性
StreamListView<T>
StreamWidget<T>
TapTooltip
点击即出现帮助信息的Tooltip, 基本上复用了官方的Tooltip, 就是长按触发换成了点击触发
ToastBLoC
Toggleable
UnknownScreen
Value<T>
ValueBLoC<T>

Mixins

BoolMixin
CaptchaManagerMixin
DisposeBag<T extends StatefulWidget>
FutureMixin<DATA>
InputMixin<T>
输入单元特有的成员
ListMixin<T>
内部数据是List特有的成员
OutputMixin<T, ARG_TYPE>
输出单元特有的成员
StreamMixin<DATA>

Extensions

BuildContextX
FutureX

Constants

borderSide → const BorderSide
BorderSide(color: Colors.grey, width: 0.3)
colorError → const MaterialColor
Colors.red
kBackgroundColor → const Color
Color(4294047226)
kDividerBig → const Divider
Divider(height: kSpaceBig)
kDividerGiant → const Divider
Divider(height: kSpaceGiant)
kDividerHuge → const Divider
Divider(height: kSpaceHuge)
kDividerLarge → const Divider
Divider(height: kSpaceLarge)
kDividerLittleBig → const Divider
Divider(height: kSpaceLittleBig)
kDividerNormal → const Divider
kDividerSmall → const Divider
Divider(height: kSpaceSmall)
kDividerTiny → const Divider
Divider(height: kSpaceTiny)
kDividerZero → const Divider
Divider(height: kSpaceZero)
kDuration → const int
60
kElevationBig → const double
8.0
kElevationGiant → const double
32.0
kElevationHuge → const double
16.0
kElevationNormal → const double
4.0
kElevationSmall → const double
2.0
kElevationTiny → const double
1.0
kElevationZero → const double
0.0
kSpaceBig → const double
16.0
kSpaceGiant → const double
64.0
kSpaceHuge → const double
32.0
kSpaceLarge → const double
24.0
kSpaceLittleBig → const double
12.0
kSpaceNormal → const double
8.0
kSpaceSmall → const double
4.0
kSpaceTiny → const double
1.0
kSpaceZero → const double
0.0
kTextBig → const double
18.0
kTextLittleBig → const double
16.0
kTextNormal → const double
14.0
kTextSmall → const double
12.0
kTextTiny → const double
10.0
leftRightBorder → const Border
Border(left: borderSide, right: borderSide)
SPACE_BIG → const SizedBox
SizedBox(width: kSpaceBig, height: kSpaceBig)
SPACE_BIG_HORIZONTAL → const SizedBox
SizedBox(width: kSpaceBig, height: kSpaceZero)
SPACE_BIG_VERTICAL → const SizedBox
SizedBox(width: kSpaceZero, height: kSpaceBig)
SPACE_GIANT → const SizedBox
SizedBox(width: kSpaceGiant, height: kSpaceGiant)
SPACE_GIANT_HORIZONTAL → const SizedBox
SizedBox(width: kSpaceGiant, height: kSpaceZero)
SPACE_GIANT_VERTICAL → const SizedBox
SizedBox(width: kSpaceZero, height: kSpaceGiant)
SPACE_HUGE → const SizedBox
SizedBox(width: kSpaceHuge, height: kSpaceHuge)
SPACE_HUGE_HORIZONTAL → const SizedBox
SizedBox(width: kSpaceHuge, height: kSpaceZero)
SPACE_HUGE_VERTICAL → const SizedBox
SizedBox(width: kSpaceZero, height: kSpaceHuge)
SPACE_LARGE → const SizedBox
SizedBox(width: kSpaceLarge, height: kSpaceLarge)
SPACE_LARGE_HORIZONTAL → const SizedBox
SizedBox(width: kSpaceLarge, height: kSpaceZero)
SPACE_LARGE_VERTICAL → const SizedBox
SizedBox(width: kSpaceZero, height: kSpaceLarge)
SPACE_LITTLE_BIG → const SizedBox
SizedBox(width: kSpaceLittleBig, height: kSpaceLittleBig)
SPACE_LITTLE_BIG_HORIZONTAL → const SizedBox
SizedBox(width: kSpaceLittleBig, height: kSpaceZero)
SPACE_LITTLE_BIG_VERTICAL → const SizedBox
SizedBox(width: kSpaceZero, height: kSpaceLittleBig)
SPACE_NORMAL → const SizedBox
SizedBox(width: kSpaceNormal, height: kSpaceNormal)
SPACE_NORMAL_HORIZONTAL → const SizedBox
SizedBox(width: kSpaceNormal, height: kSpaceZero)
SPACE_NORMAL_VERTICAL → const SizedBox
SizedBox(width: kSpaceZero, height: kSpaceNormal)
SPACE_SMALL → const SizedBox
SizedBox(width: kSpaceSmall, height: kSpaceSmall)
SPACE_SMALL_HORIZONTAL → const SizedBox
SizedBox(width: kSpaceSmall, height: kSpaceZero)
SPACE_SMALL_VERTICAL → const SizedBox
SizedBox(width: kSpaceZero, height: kSpaceSmall)
SPACE_TINY → const SizedBox
SizedBox(width: kSpaceTiny, height: kSpaceTiny)
SPACE_TINY_HORIZONTAL → const SizedBox
SizedBox(width: kSpaceTiny, height: kSpaceZero)
SPACE_TINY_VERTICAL → const SizedBox
SizedBox(width: kSpaceZero, height: kSpaceTiny)
SPACE_ZERO → const SizedBox
SizedBox.shrink()
textColorMinor → const MaterialColor
Colors.grey
topBottomBorder → const Border
Border(top: borderSide, bottom: borderSide)

Properties

L → _Logger
final
notEmpty → bool Function(dynamic data)
final
notEqual → bool Function(dynamic prev, dynamic next)
final
notNull → bool Function(dynamic data)
final
structNormal StrutStyle
read / write
textBig TextStyle
read / write
textBlack TextStyle
read / write
textBlackBold TextStyle
read / write
textBlackThin TextStyle
read / write
textGrey TextStyle
read / write
textNormal TextStyle
read / write
textNormalThin TextStyle
read / write
textSmall TextStyle
read / write
textTiny TextStyle
read / write
textUnderline TextStyle
read / write
textWhite TextStyle
read / write
textWhiteBig TextStyle
read / write
textWhiteBigBold TextStyle
read / write
textWhiteSmall TextStyle
read / write
textWhiteSpacing TextStyle
read / write
textWhiteTiny TextStyle
read / write
transparent1 Color
read-only
transparent2 Color
read-only
transparent3 Color
read-only
transparent4 Color
read-only
transparent5 Color
read-only
transparent6 Color
read-only
transparent7 Color
read-only
transparent8 Color
read-only
transparent9 Color
read-only

Functions

clearFocus(BuildContext context) → void
enumName(dynamic enumValue) → String
handle(BuildContext context) → _HandlerErrorCallback
handleError(BuildContext context, Object error) → void
highContrast(Color input) Color
isAllEmpty(List<Object> list) → bool
isAllNotEmpty(List<Object> list) → bool
isEmpty(Object object) → bool
isNotEmpty(Object object) → bool
loading<T>(BuildContext context, Future<T> futureTask, {bool cancelable: true}) → Future<T>
等待页
mapIndexed<T, R>(Iterable<T> list, R f(int index, T val)) → Iterable<R>
parseJsonRoute(String routeName) RouteInfo
parseKeyValueRoute(String routeName) RouteInfo
parseRoute(String routeName) RouteInfo
@Deprecated('使用parseKeyValueRoute代替')
showError(BuildContext context, String content, {String title, dynamic position: FlushbarPosition.BOTTOM, bool isExit: false, String exitTo, Duration duration: const Duration(milliseconds: _duration)}) → Future
显示错误信息
showFlushBar(BuildContext context, String content, {String title, Color color, ErrorLevel errorLevel: ErrorLevel.none, dynamic position: FlushbarPosition.BOTTOM, bool isExit: false, String exitTo, Duration duration: const Duration(milliseconds: _duration)}) → Future
showFreeBottomSheet<T>({BuildContext context, WidgetBuilder builder}) PersistentBottomSheetController<T>
showFreeModalBottomSheet<T>({BuildContext context, WidgetBuilder builder}) → Future<T>
showInfo(BuildContext context, String content, {String title, dynamic position: FlushbarPosition.BOTTOM, bool isExit: false, String exitTo, Duration duration: const Duration(milliseconds: _duration)}) → Future
显示普通信息
showMessage(BuildContext context, String content, {ErrorLevel errorLevel: ErrorLevel.none, bool isExit: false, String exitTo, Duration duration: const Duration(milliseconds: _duration)}) → Future<SnackBarClosedReason>
显示信息底层方法, 当需要动态选择是错误还是正常信息时, 调用这个方法
@Deprecated('使用[showFlushBar]代替, 因为FlushBar没有Scaffold限制, 并且定制程度更高')
showWarn(BuildContext context, String content, {String title, dynamic position: FlushbarPosition.BOTTOM, bool isExit: false, String exitTo, Duration duration: const Duration(milliseconds: _duration)}) → Future
显示警告信息
toast(String message, {ToastPosition position: ToastPosition.bottom, double radius: 32, EdgeInsets padding: const EdgeInsets.symmetric(vertical: kSpaceLittleBig, horizontal: kSpaceBig), TextStyle textStyle, VoidCallback onDismiss, bool dismissOtherToast: true, TextAlign textAlign, bool error: false}) → void

Enums

Actions
BuildMode
ErrorLevel
Gravity
SlideDirection

Typedefs

ContextCallback(BuildContext context) → void
LoadingProgress(double progress, List<int> data) → void
PressedCallback(BuildContext context) → void
RatingChangeCallback(double rating) → void