AFSIDefaultTheme class
Constructors
-
AFSIDefaultTheme.new(AFThemeID id, AFFundamentalThemeState fundamentals, AFBuildContext<AFFlexibleStateView, AFRouteParam> context)
-
-
AFSIDefaultTheme.create(AFThemeID id, AFFundamentalThemeState fundamentals, AFBuildContext<AFFlexibleStateView, AFRouteParam> context)
-
factory
Methods
-
accessOnEventContext()
→ AFOnEventContext
-
Intended to be used in subclasses to access
AFOnEventContext
in event handlers for returned widgets.
inherited
-
accessTheme<TFunctionalTheme extends AFFunctionalTheme>(AFThemeID themeId)
→ TFunctionalTheme
-
inherited
-
background(dynamic idOrColor)
→ Color
-
inherited
-
borderRadiusScaled({double? all, double? left, double? right, double? top, double? bottom, double? leftTop, double? leftBottom, double? rightTop, double? rightBottom, Radius createRadius(double)?})
→ BorderRadius
-
inherited
-
bottomNavigationBarSignin(AFBuildContext<AFFlexibleStateView, AFRouteParam> context)
→ Widget?
-
-
childButton({AFWidgetID? wid, required Widget child, required AFPressedDelegate? onPressed, Color? color, Color? textColor})
→ Widget
-
inherited
-
childButtonFlat({AFWidgetID? wid, required Widget child, required AFPressedDelegate onPressed})
→ Widget
-
Create a button that the user is most likely to click.
inherited
-
childButtonFlatText({AFWidgetID? wid, Object? text, required AFPressedDelegate onPressed})
→ Widget
-
@see
translate
for all the ways text can be specified.
inherited
-
childButtonIcon({AFWidgetID? wid, required Widget child, required AFPressedDelegate onPressed, Color? color, VisualDensity? visualDensity})
→ Widget
-
inherited
-
childButtonPrimary({AFWidgetID? wid, required Widget child, required AFPressedDelegate? onPressed})
→ Widget
-
Create a button that the user is most likely to click.
inherited
-
childButtonPrimarySignin({required AFWidgetID wid, required dynamic text, required AFPressedDelegate onPressed})
→ Widget
-
Create a button that the user is most likely to click.
-
childButtonPrimaryText({AFWidgetID? wid, Object? text, required AFPressedDelegate onPressed})
→ Widget
-
Create a button that the user is most likely to click.
inherited
-
childButtonSecondary({AFWidgetID? wid, required Widget child, required AFPressedDelegate onPressed})
→ Widget
-
Create a button that the user is most likely to click.
inherited
-
childButtonSecondarySignin({required AFWidgetID wid, required dynamic text, required AFPressedDelegate onPressed})
→ Widget
-
Create a button that the user is most likely to click.
-
childButtonSecondaryText({AFWidgetID? wid, Object? text, required AFPressedDelegate onPressed})
→ Widget
-
Create a button that the user is most likely to click.
inherited
-
childButtonStandardBack(AFStateProgrammingInterface<AFComponentState, AFBuildContext<AFFlexibleStateView, AFRouteParam>, AFFunctionalTheme> spi, {required AFScreenID screen, AFWidgetID wid = AFUIWidgetID.buttonBack, dynamic iconIdOrWidget = AFUIThemeID.iconBack, dynamic iconColor, dynamic iconSize, String tooltip = "Back", bool worksInSingleScreenTest = true, AFShouldContinueCheckDelegate? shouldContinueCheck})
→ Widget
-
Creates a standard back button, which navigates up the screen hierarchy.
inherited
-
childCard({required Widget child, AFWidgetID? wid, EdgeInsets? margin, Color? color})
→ Widget
-
inherited
-
childCardColumn(List<Widget> rows, {EdgeInsets? padding, CrossAxisAlignment? align, AFWidgetID? widColumn, AFWidgetID? widCard, Color? color})
→ Widget
-
inherited
-
childCheckRememberSignin({required BuildContext buildContext, required bool checked, required ValueChanged<bool?> onChanged})
→ Widget?
-
-
childChoiceChip({AFWidgetID? wid, required Widget label, required bool selected, Color? selectedColor, required AFOnChangedBoolDelegate onSelected})
→ Widget
-
inherited
-
childColumn(List<Widget> children, {AFWidgetID? wid, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.start, MainAxisSize mainAxisSize = MainAxisSize.max})
→ Column
-
inherited
-
childDebugDrawerBegin(Widget? beginDrawer)
→ Widget?
-
As long as you are calling
AFFunctionalTheme.childScaffold
, you don't need
to worry about this, it will be done for you.
inherited
-
childDebugDrawerEnd(Widget? endDrawer)
→ Widget?
-
As long as you are calling
AFFunctionalTheme.childScaffold
, you don't need
to worry about this, it will be done for you.
inherited
-
childDeleteAccountAction({required AFWidgetID widConfirmText, required VoidCallback onPressedDeleteNow, required AFScreenRouteParamWithFlutterState routeParam, required String confirmText, required ValueChanged<String> onChangedConfirmText, required Widget statusMessage})
→ Widget
-
-
childDeleteAccountPreamble({required VoidCallback onPressedCancel})
→ Widget
-
-
childDivider({Color? color})
→ Widget
-
inherited
-
childEditEmailField({required AFWidgetID wid, required String email, required SigninScreenRouteParam parentParam, required ValueChanged<String> onChangedEmail})
→ Widget
-
-
childEditPasswordConfirmField({required AFWidgetID wid, required String password, required bool showPassword, required SigninScreenRouteParam parentParam, required ValueChanged<String> onChangedPassword})
→ Widget
-
-
childEditPasswordField({required AFWidgetID wid, required String password, required bool showPassword, required SigninScreenRouteParam parentParam, required ValueChanged<String> onChangedPassword})
→ Widget
-
-
childEmbeddedRender({required AFRenderEmbeddedChildDelegate render})
→ Widget
-
inherited
-
-
inherited
-
-
childMargin({AFWidgetID? wid, required Widget child, required EdgeInsets? margin})
→ Widget
-
inherited
-
childMarginStandard({AFWidgetID? wid, required Widget child})
→ Widget
-
inherited
-
childPadding({AFWidgetID? wid, required Widget child, EdgeInsets? padding})
→ Widget
-
inherited
-
children()
→ List<Widget>
-
A utility for creating a list of child widgets
inherited
-
childrenColumn()
→ List<Widget>
-
Identical to
column
, except prefixed with children to enhance discoverability
inherited
-
childrenDivideWidgets(List<Widget> rows, AFWidgetID? widBase, {dynamic colorLine, dynamic thickness, dynamic height, dynamic indent})
→ List<Widget>
-
Replaces ListTile.divideTiles, including a key based on
widBase
for each one.
inherited
-
childrenExpansionList()
→ List<ExpansionPanel>
-
A utility for creating a list of expansion panels in an expansion list.
inherited
-
childrenRow()
→ List<Widget>
-
Identical to
row
, except prefixed with children to enhance discoverability
inherited
-
childrenTable()
→ List<TableRow>
-
A utility for create a list of table rows in a table.
inherited
-
childRichTextBuilder({AFWidgetID? wid, dynamic styleNormal, dynamic styleBold, dynamic styleTapable, dynamic styleMuted})
→ AFRichTextBuilder
-
inherited
-
childRichTextBuilderOnCard({AFWidgetID? wid})
→ AFRichTextBuilder
-
inherited
-
childRow(List<Widget> children, {MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start})
→ Row
-
inherited
-
childScaffold<TBuildContext extends AFBuildContext<AFFlexibleStateView, AFRouteParam>>({Key? key, required AFStateProgrammingInterface<AFComponentState, AFBuildContext<AFFlexibleStateView, AFRouteParam>, AFFunctionalTheme> spi, AFConnectedUIBase<AFComponentState, AFFunctionalTheme, AFFlexibleStateView, AFRouteParam, AFStateProgrammingInterface<AFComponentState, AFBuildContext<AFFlexibleStateView, AFRouteParam>, AFFunctionalTheme>>? contextSource, PreferredSizeWidget? appBar, Widget? drawer, required Widget body, Widget? bottomNavigationBar, Widget? floatingActionButton, Color? backgroundColor, FloatingActionButtonLocation? floatingActionButtonLocation, FloatingActionButtonAnimator? floatingActionButtonAnimator, Widget? endDrawer, Widget? bottomSheet, bool? resizeToAvoidBottomPadding, bool? resizeToAvoidBottomInset, bool primary = true, DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start, bool extendBody = false, bool extendBodyBehindAppBar = false, Color? drawerScrimColor, double? drawerEdgeDragWidth, bool drawerEnableOpenDragGesture = true, bool endDrawerEnableOpenDragGesture = true})
→ Widget
-
A method used to create a standard scaffold, please use this instead of creating you scaffold
manually with return Scaffold(...
inherited
-
childSectionTitle(Object title)
→ Widget
-
-
childShowPasswordCheck(AFBuildContext<AFFlexibleStateView, AFRouteParam> context, {required bool showPassword, required AFOnChangedBoolDelegate onChanged})
→ Widget
-
-
childSplashScreenTitle({dynamic text})
→ Widget
-
-
childStandardSigninScaffold({required AFStateProgrammingInterface<AFComponentState, AFBuildContext<AFFlexibleStateView, AFRouteParam>, AFFunctionalTheme> spi, required Widget body, required bool isLoading})
→ Widget
-
-
childStatusMessage(AFSISigninStatus status, String statusMessage, {Color? colorBackground, TextTheme? textTheme})
→ Widget
-
-
childSwitch({AFWidgetID? wid, required bool value, required AFOnChangedBoolDelegate onChanged})
→ Widget
-
inherited
-
childText({Object? text, AFWidgetID? wid, dynamic style, dynamic textColor, dynamic fontSize, dynamic fontWeight, TextAlign? textAlign, TextOverflow? overflow, int? maxLines, bool? softWrap})
→ Text
-
@see
translate
for all the ways text can be specified.
inherited
-
childTextBuilder({AFWidgetID? wid, dynamic style})
→ AFTextBuilder
-
inherited
-
childTextEmpty()
→ Widget
-
inherited
-
childTextField({required AFScreenID screenId, required AFWidgetID wid, AFTextEditingControllers? controllers, AFTextEditingController? controller, AFBuildContext<AFFlexibleStateView, AFRouteParam>? context, AFRouteParamWithFlutterState? parentParam, required AFOnChangedStringDelegate onChanged, String? expectedText, bool? enabled, bool obscureText = false, bool autofocus = false, int? minLines, int maxLines = 1, FocusNode? focusNode, InputDecoration? decoration, bool autocorrect = true, TextAlign textAlign = TextAlign.start, TextInputType? keyboardType, TextStyle? style, Color? cursorColor, ValueChanged<String>? onSubmitted})
→ Widget
-
Create a text field with the specified text.
inherited
-
childTopBottomHostedControls(BuildContext context, Widget main, {Widget? bottomControls, Widget? topControls, double topHeight = 0.0})
→ Widget
-
Create a widget that has the
bottomControls
and topControls
permenantly
affixed above/below the main
widget.
inherited
-
childTopTab({AFWidgetID? wid, required Widget child, required bool isSel, required AFPressedDelegate onPressed})
→ Widget
-
inherited
-
childTopTabContainer({required List<Widget> children, Color? color, BorderRadius? borderRadius})
→ Widget
-
inherited
-
childTopTabText({AFWidgetID? wid, required String text, required bool isSel, required AFPressedDelegate onPressed})
→ Widget
-
inherited
-
color(dynamic idOrColor)
→ Color?
-
inherited
-
colorDarker(dynamic color, {int percent = 10})
→ Color
-
inherited
-
colorForeground(dynamic idOrColor)
→ Color
-
inherited
-
colorGreyShade(int shade)
→ Color
-
inherited
-
colorLighter(dynamic c, {int percent = 10})
→ Color
-
inherited
-
column()
→ List<Widget>
-
A utility for creating a list of widgets in a column.
inherited
-
columnTable()
→ List<TableRow>
-
A utility for create a list of table rows in a table.
inherited
-
decorationSigninBackground()
→ BoxDecoration
-
-
decorationSplashBackground()
→ BoxDecoration
-
-
decorationTextInput({dynamic text, Color colorForeground = Colors.white})
→ InputDecoration
-
-
deviceHasFormFactor({AFFormFactor? atLeast, AFFormFactor? atMost, Orientation? withOrientation})
→ bool
-
inherited
-
drawerSignIn(AFBuildContext<AFFlexibleStateView, AFRouteParam> context)
→ Drawer?
-
-
errorStyle()
→ TextStyle
-
inherited
-
hintStyle()
→ TextStyle
-
inherited
-
icon(dynamic id, {dynamic iconColor, dynamic iconSize})
→ Widget?
-
inherited
-
iconBack({dynamic iconColor, dynamic iconSize})
→ Widget?
-
inherited
-
iconNavDown({dynamic iconColor, dynamic iconSize})
→ Widget?
-
inherited
-
iconStandard(AFUIStandardChoiceDialogIcon icon, {double? size})
→ Widget?
-
inherited
-
keyForWID(AFID? wid)
→ LocalKey?
-
Returns a unique key for the specified widget.
inherited
-
keyForWIDNotNull(AFID wid)
→ LocalKey
-
Returns a unique key for the specified widget.
inherited
-
leadingButtonStandardBack(AFStateProgrammingInterface<AFComponentState, AFBuildContext<AFFlexibleStateView, AFRouteParam>, AFFunctionalTheme> spi, {required AFScreenID screen, AFWidgetID wid = AFUIWidgetID.buttonBack, dynamic iconIdOrWidget = AFUIThemeID.iconBack, dynamic iconColor, dynamic iconSize, String tooltip = "Back", bool worksInSingleScreenTest = true, AFShouldContinueCheckDelegate? shouldContinueCheck})
→ Widget
-
inherited
-
marginCustom({int? all, int? horizontal, int? vertical, int? top, int? bottom, int? left, int? right})
→ EdgeInsets
-
Create a custom margin based on the standard sizes you setup in your fundamental theme.
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
notTranslated(Object value)
→ AFNotTranslated
-
inherited
-
paddingCustom({int? horizontal, int? vertical, int? top, int? bottom, int? left, int? right, int? all})
→ EdgeInsets
-
Important: the values you are passing in are scale factors on the
value specified by your fundamental theme they are not
absolute measurements.
inherited
-
radiusCircular(double r)
→ Radius
-
inherited
-
row()
→ List<Widget>
-
A utility for creating a list of widgets in a row.
inherited
-
showBottomSheet({required AFStateProgrammingInterface<AFComponentState, AFBuildContext<AFFlexibleStateView, AFRouteParam>, AFFunctionalTheme> spi, required AFNavigatePushAction navigate, Color? backgroundColor, double? elevation, ShapeBorder? shape, Clip? clipBehavior})
→ void
-
See
AFBuildContext.showBottomSheet
, this is a one line call to that method, here for discoverability.
inherited
-
showDialog<TReturn>({required AFStateProgrammingInterface<AFComponentState, AFBuildContext<AFFlexibleStateView, AFRouteParam>, AFFunctionalTheme> spi, required AFNavigatePushAction navigate, void onReturn(TReturn?)?, bool barrierDismissible = true, Color? barrierColor, bool useSafeArea = true, bool useRootNavigator = true, RouteSettings? routeSettings})
→ void
-
See
AFBuildContext.showDialogAFib
, this is just a one line call to that method
for discoverability.
inherited
-
showModalBottomSheet({required AFStateProgrammingInterface<AFComponentState, AFBuildContext<AFFlexibleStateView, AFRouteParam>, AFFunctionalTheme> spi, required AFNavigatePushAction navigate, AFReturnValueDelegate<Object?>? onReturn, Color? backgroundColor, double? elevation, ShapeBorder? shape, Clip? clipBehavior, Color? barrierColor, bool isScrollControlled = false, bool useRootNavigator = false, bool isDismissible = true, bool enableDrag = true, RouteSettings? routeSettings})
→ void
-
See
AFBuildContext.showModalBottomSheetAFib
, this is a one line call to that method, here for discoverability.
inherited
-
showSnackbarText(AFStateProgrammingInterface<AFComponentState, AFBuildContext<AFFlexibleStateView, AFRouteParam>, AFFunctionalTheme> spi, String text)
→ void
-
Show the text in a snackbar.
inherited
-
size(dynamic id, {double scale = 1.0})
→ double?
-
inherited
-
standardShouldContinueAlertCheck({required AFStateProgrammingInterface<AFComponentState, AFBuildContext<AFFlexibleStateView, AFRouteParam>, AFFunctionalTheme> spi, required bool shouldAsk, required AFNavigatePushAction navigate})
→ AFShouldContinueCheckDelegate
-
inherited
-
styleBold()
→ TextStyle
-
Merges bold into whatever the style would have been.
inherited
-
styleError()
→ TextStyle
-
inherited
-
styleHint()
→ TextStyle
-
inherited
-
styleText(dynamic idOrTextStyle)
→ TextStyle?
-
inherited
-
styleTextButton({Color? color, Color? textColor})
→ ButtonStyle
-
inherited
-
styleTextButtonPrimary()
→ ButtonStyle
-
inherited
-
tapRecognizerFor({required AFWidgetID wid, AFTapGestureRecognizersHolder? recognizers, AFRouteParamWithFlutterState? parentParam, required AFPressedDelegate onTap})
→ TapGestureRecognizer
-
inherited
-
textHourMinuteLabel(int hour, int minute, {bool? alwaysUse24Hours})
→ String
-
Returns a string label fpor hours and minutes that respects the device's
always24Hours settings
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
translate({AFWidgetID? wid, Object? text})
→ String
-
Translate the specified string id and return it.
inherited
-
translateNever(Object value)
→ AFNotTranslated
-
Here for discoverability, you might prefer
notTranslated
.
inherited
-
translateTemplate({required Object template, required Map<Object, Object> insertions})
→ AFTranslationTemplate
-
inherited
-
weight(dynamic weight)
→ FontWeight?
-
inherited