framework library

Classes

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

Mixins

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

Constants

borderSide → const BorderSide
const BorderSide(color: Colors.grey, width: 0.3)
colorError → const MaterialColor
Colors.red
kBackgroundColor → const Color
const Color(0xFFF1F5FA)
kDividerBig → const Divider
const Divider(height: kSpaceBig)
kDividerGiant → const Divider
const Divider(height: kSpaceGiant)
kDividerHuge → const Divider
const Divider(height: kSpaceHuge)
kDividerLarge → const Divider
const Divider(height: kSpaceLarge)
kDividerLittleBig → const Divider
const Divider(height: kSpaceLittleBig)
kDividerNormal → const Divider
const Divider()
kDividerSmall → const Divider
const Divider(height: kSpaceSmall)
kDividerTiny → const Divider
const Divider(height: kSpaceTiny)
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
17.0
kTextNormal → const double
16.0
kTextSmall → const double
14.0
leftRightBorder → const Border
const Border(left: borderSide, right: borderSide)
SPACE_BIG → const SizedBox
const SizedBox(width: kSpaceBig, height: kSpaceBig)
SPACE_BIG_HORIZONTAL → const SizedBox
const SizedBox(width: kSpaceBig, height: kSpaceZero)
SPACE_BIG_VERTICAL → const SizedBox
const SizedBox(width: kSpaceZero, height: kSpaceBig)
SPACE_GIANT → const SizedBox
const SizedBox(width: kSpaceGiant, height: kSpaceGiant)
SPACE_GIANT_HORIZONTAL → const SizedBox
const SizedBox(width: kSpaceGiant, height: kSpaceZero)
SPACE_GIANT_VERTICAL → const SizedBox
const SizedBox(width: kSpaceZero, height: kSpaceGiant)
SPACE_HUGE → const SizedBox
const SizedBox(width: kSpaceHuge, height: kSpaceHuge)
SPACE_HUGE_HORIZONTAL → const SizedBox
const SizedBox(width: kSpaceHuge, height: kSpaceZero)
SPACE_HUGE_VERTICAL → const SizedBox
const SizedBox(width: kSpaceZero, height: kSpaceHuge)
SPACE_LARGE → const SizedBox
const SizedBox(width: kSpaceLarge, height: kSpaceLarge)
SPACE_LARGE_HORIZONTAL → const SizedBox
const SizedBox(width: kSpaceLarge, height: kSpaceZero)
SPACE_LARGE_VERTICAL → const SizedBox
const SizedBox(width: kSpaceZero, height: kSpaceLarge)
SPACE_LITTLE_BIG → const SizedBox
const SizedBox(width: kSpaceLittleBig, height: kSpaceLittleBig)
SPACE_LITTLE_BIG_HORIZONTAL → const SizedBox
const SizedBox(width: kSpaceLittleBig, height: kSpaceZero)
SPACE_LITTLE_BIG_VERTICAL → const SizedBox
const SizedBox(width: kSpaceZero, height: kSpaceLittleBig)
SPACE_NORMAL → const SizedBox
const SizedBox(width: kSpaceNormal, height: kSpaceNormal)
SPACE_NORMAL_HORIZONTAL → const SizedBox
const SizedBox(width: kSpaceNormal, height: kSpaceZero)
SPACE_NORMAL_VERTICAL → const SizedBox
const SizedBox(width: kSpaceZero, height: kSpaceNormal)
SPACE_SMALL → const SizedBox
const SizedBox(width: kSpaceSmall, height: kSpaceSmall)
SPACE_SMALL_HORIZONTAL → const SizedBox
const SizedBox(width: kSpaceSmall, height: kSpaceZero)
SPACE_SMALL_VERTICAL → const SizedBox
const SizedBox(width: kSpaceZero, height: kSpaceSmall)
SPACE_TINY → const SizedBox
const SizedBox(width: kSpaceTiny, height: kSpaceTiny)
SPACE_TINY_HORIZONTAL → const SizedBox
const SizedBox(width: kSpaceTiny, height: kSpaceZero)
SPACE_TINY_VERTICAL → const SizedBox
const SizedBox(width: kSpaceZero, height: kSpaceTiny)
SPACE_ZERO → const SizedBox
const SizedBox.shrink()
textColorMinor → const MaterialColor
Colors.grey
topBottomBorder → const Border
const Border(top: borderSide, bottom: borderSide)

Properties

notEmpty → (dynamic) → bool
final
notEqual → (dynamic, dynamic) → bool
final
notNull → (dynamic) → bool
final
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) → 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
显示警告信息

Enums

Actions
BuildMode
ErrorLevel
SlideDirection

Typedefs

ContextCallback(BuildContext context) → void
Equal<T>(T data1, T data2) → bool
Listener<T>(T data) → void
PickerConfirmCallback(Picker picker, List<int> selecteds) → void
PickerSelectedCallback(Picker picker, int index, List<int> selecteds) → void
PressedCallback(BuildContext context) → void
RatingChangeCallback(double rating) → void