fair library
Classes
- Binding
- BindingData
- BundleLoader
- Interface of bundle loader
- Domain
- DynamicBuilder
- DynamicWidgetBuilder
- FairApp
- Application which can update the widget tree through bundle file.
- FairBinding
- Annotation to generate a library binding
- FairDelegate
- Delegate for business logic. The delegate share similar life-circle with State.
- FairMethod
-
FairModule<
T> - Define a custom component as FairModule
- FairPatch
- Annotation for Fair compiler, this indicate the top Widget need to generate as bundle resource
- FairPlugin
- FairPluginDispatcher
- FairProps
- FairState
- FairUtf8
- FairVoidCallbackModule
- Define a callback as FairModule, such as onPressed event. Override onCreateComponent to return a VoidCallback
- FairWell
- An annotation used to specify a class to generate code for.
- FairWidget
- FairWidget renders a dynamic DSL as Widget. Must be descendant of FairApp.
- FairWidgetModule
- Define a widget as FairModule
- FunctionDomain
- 通用的回调 Function 的域,用于替换域下面对应参数的值
- GeneratedModule
- IFairLibraryAdapter
- IFairPlugin
- IndexDomain
- MapEachDomain
- 暂时留着,适配之前的代码 Sugar.popMenuButton Sugar.listBuilder 现在可以简单支持,看需要移除不 Sugar.isNestedScrollViewHeaderSliversBuilder Sugar.sliverChildBuilderDelegate 现在可以简单支持,看需要移除不
- ProxyMirror
- Runtime
- Sugar
- The operations can be used in DSL.
-
SugarSwitchCaseObj<
T, K>
Mixins
- $BindingImpl
- FairCommonPluginMixin
- Here is a demo for FairCommonPlugin.
Constants
- apiCount → const int
- dartVersion → const String
- fairVersion → const String
- flutterVersion → const String
- widgetCount → const int
-
widgetNames
→ const Map<
String, bool>
Functions
-
$(
dynamic props) → BuildContext - Get context instance
-
as<
T> (List? children) → List< T> ? -
main(
) → void -
showFairAboutDialog(
BuildContext context) → void - Show a dialog displaying the Fair information.
Typedefs
- DynamicWidgetBuilderFunction = DynamicWidgetBuilder Function(ProxyMirror? proxyMirror, String? page, BindingData? bound, {String? bundle})
-
FairDelegateBuilder
= FairDelegate Function(BuildContext context, Map<
String, dynamic> ? data) - state delegate builder
- FairModuleBuilder = FairModule Function()
- FairRouteBuilder = void Function(BuildContext context, String routeName, {Object arguments})
- Custom router builder
-
PropertyValue<
T> = T Function()