FlutterContentMixins class

this is a global container

Mixed-in types
Available extensions

Properties

aNodeIsSelected bool
no setter
appInfo AppInfoModel
no setter
appInfoAsMap JsonMap
no setter
appName String
no setter
authenticated ↔ CanEditContentVN
getter/setter pair
authIconGK GlobalKey<State<StatefulWidget>>
getter/setter pair
buttonStyleNameAnchor ↔ ButtonStyleNameSearchAnchor?
getter/setter pair
calloutConfigToolbarAtTopOfScreen bool
getter/setter pair
capiBloc CAPIBloC
no setter
containerStyleNameAnchor ↔ ContainerStyleNameSearchAnchor?
getter/setter pair
currentEditablePagePath String?
getter/setter pair
currentOrientationSnapshot Orientation
Gets the current orientation based on the primary view's dimensions (snapshot). For reactive UI, use MediaQuery.of(context).orientation.
no setterinherited
currFolderPath String
getter/setter pair
DEBUGGING bool
getter/setter pairinherited
deviceInfo String?
no setterinherited
editorPasswords List<String>
no setter
enclosureLabelTextStyle TextStyle
getter/setter pairinherited
flatButtonStyle ButtonStyle
finalinherited
fsTreeC ↔ TreeController<FSFolderNode>
getter/setter pair
FUCHSIA_X Color
no setterinherited
gcrServerUrl String?
no setter
no setterinherited
googleFontNames List<String>
The build number. CFBundleVersion on iOS, versionCode on Android. Note, on iOS if an app has no buildNumber specified this property will return version Docs about CFBundleVersion: https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleversion
final
hashCode int
The hash code for this object.
no setterinherited
highlightPaint Paint
no setterinherited
inSelectWidgetMode bool
no setter
isAndroid bool
no setterinherited
isDesktopSized bool
no setterinherited
isFuchsia bool
no setterinherited
isIOS bool
no setterinherited
isLandscape bool
no setterinherited
isMac bool
no setterinherited
isPortrait bool
no setterinherited
isWeb bool
no setterinherited
isWindows bool
no setterinherited
kDefaultNarrowWidthThreshold double
getter/setter pairinherited
keyboardHeight double
no setterinherited
keystrokeHandlers Map<String, KeystrokeHandler>
getter/setter pairinherited
localStorage → Storage
no setterinherited
logging bool
getter/setter pair
longestSide double
no setterinherited
MIN_FONT_SIZE double
getter/setter pairinherited
modelRepo IModelRepository
getter/setter pair
namedButtonStyles Map<ButtonStyleName, ButtonStyleProperties>
getter/setter pair
namedCallbacks Map<String, void Function(BuildContext, GlobalKey<State<StatefulWidget>>)>
final
namedContainerStyles Map<ContainerStyleName, ContainerStyleProperties>
getter/setter pair
namedTextStyles Map<TextStyleName, TextStyleProperties>
getter/setter pair
narrowWidth bool
no setterinherited
nextSavedModelVersion String?
getter/setter pair
nodesByGK Map<GlobalKey<State<StatefulWidget>>, SNode>
final
outlineButtonStyle ButtonStyle
finalinherited
overlayState OverlayState?
no setterinherited
pageList List<String>

Available on FlutterContentMixins, provided by the RoutesExtension extension

no setter
panelGkMap Map<PanelName, GlobalKey<State<StatefulWidget>>>
final
pixelRatio double
no setterinherited
pkgInfo Future<PackageInfo>
no setterinherited
platform PlatformEnum?
no setterinherited
pNodes Map<PropertyName, PNode>
getter/setter pair
prevSavedModelVersion String?
The package name. bundleIdentifier on iOS, getPackageName on Android.
getter/setter pair
REM double
getter/setter pairinherited
rootContext BuildContext
no setterinherited
router ↔ GoRouter
getter/setter pair
routingConfigVN ValueNotifier<RoutingConfig>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrH double
no setterinherited
scrSize Size
no setterinherited
scrW double
no setterinherited
selectedNode SNode?
no setter
shortestSide double
no setterinherited
SHOW_BOXED bool
getter/setter pairinherited
showingNodeBoundaryOverlays bool?
getter/setter pair
showProperties bool
no setter
skipAssetPkgName bool
no setterinherited
snippetBeingEdited → SnippetBeingEdited?
no setter
snippetTreeTC TransformationController
final
textStyleNameAnchor ↔ TextStyleNameSearchAnchor?
getter/setter pair
transparentBgPaint Paint
no setterinherited
usePhoneLayout bool
no setterinherited
useTabletLayout bool
no setterinherited
usingFBStorage bool
getter/setter pair
versionAndBuild Future<String>
no setterinherited
viewInsets ViewPadding
no setterinherited
viewPadding ViewPadding
no setterinherited
webLinkF TapGestureRecognizer
getter/setter pair
whiteBgPaint Paint
no setterinherited
yamlAppName Future<String>
no setterinherited
yamlBuildNumber Future<String>
no setterinherited
yamlPackageName Future<String>
no setterinherited
yamlVersion Future<String>
no setterinherited

Methods

addSubRoute({required String newPath, required SnippetTemplateEnum template}) → void

Available on FlutterContentMixins, provided by the RoutesExtension extension

afterMsDelayDo(int millis, VoidCallback fn, {bool maintainSCOffsets = false}) Future
inherited
afterNextBuildDo(VoidCallback fn, {bool maintainSCOffsets = false}) → void
The build number. CFBundleVersion on iOS, versionCode on Android. Note, on iOS if an app has no buildNumber specified this property will return version Docs about CFBundleVersion: https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleversion
inherited
afterNextBuildMeasureThenDo(WidgetBuilder widgetBuilder, ValueChanged<Size> fn, {bool skipWidthConstraintWarning = false, bool skipHeightConstraintWarning = false}) → void
inherited
allowParentCalloutDrag(BuildContext ctx) → void
inherited
alreadyGotit(String feature, {bool notUsingHydratedStorage = false}) bool
assumes initGotits called
inherited
androidAwareBuild(BuildContext context, Widget pageWidget) Widget
inherited
anyPresent(List<CalloutId> cIds, {bool includeHidden = false}) bool
inherited
asset(String name) String
inherited
assetPicWithFadeIn({required String path, Alignment alignment = Alignment.center, double? width, double? height, EdgeInsets padding = const EdgeInsets.all(20.0), BoxFit? fit, Key? key}) Widget
inherited
bgPaint(Color theColor) Paint
inherited
blackOnGrey() ButtonStyle
inherited
blackText(double size) TextStyle
inherited
inherited
blueText(double size) TextStyle
inherited
boxChild({required Widget child, Color? bgColor}) Widget
inherited
boxedStep({Color? theColor, Color theBgColor = Colors.transparent, Widget? theChild, double? width, double? height, bool? force, double? thePadding, bool? notRounded, double theBorderWidth = 2.0}) Widget
inherited
boxedText({String text = '', Color? color}) Widget
inherited
buttonStyle(double fontSize) ButtonStyle
inherited
calcTargetAlignmentWholeScreen(Rect targetRect, double calloutW, double calloutH) Alignment
inherited
calcTargetAlignmentWithinWrapper({Rect? wrapperRect, required Rect targetRect}) Alignment
given a Rect, returns most appropriate alignment between target and callout within the wrapper NOTICE does not depend on callout size
inherited
calculateAutoscaleFontSize(String text, TextStyle style, double startFontSize, double maxWidth) double
inherited
calculateTextSize({required String text, required TextStyle style, required int numLines}) Size
inherited
calloutConfigToolbarPos() Offset
canInformUserOfNewVersion() Future<bool>
inherited
cannedButtonStyles() Map<ButtonStyleName, ButtonStyleProperties>

Available on FlutterContentMixins, provided by the ButtonStylesExtension extension

cannedContainerStyles() Map<ContainerStyleName, ContainerStyleProperties>

Available on FlutterContentMixins, provided by the ContainerStylesExtension extension

cannedTextStyles() Map<TextStyleName, TextStyleProperties>

Available on FlutterContentMixins, provided by the TextStylesExtension extension

clearGotits({bool notUsingHydratedStorage = false}) Future<void>
inherited
coloredText(String s, {double? fontSize, Color? color, String? fontFamily, double? letterSpacing, FontWeight? fontWeight, FontStyle? fontStyle, double scaleFactor = 1.0, int? maxLines, TextOverflow? overflow = TextOverflow.ellipsis}) Text
inherited
deleteSubRoute({required String path}) → void

Available on FlutterContentMixins, provided by the RoutesExtension extension

devToolsFABPos(dynamic context) Offset
dismiss(String cId, {bool skipOnDismiss = false}) → void
inherited
dismissAll({List<CalloutId> exceptFeatures = const [], bool onlyToasts = false, bool exceptToasts = false}) → void
inherited
dismissTopFeature() → void
inherited
drawStar(Size size) Path
inherited
emailIsValid(String theEA) bool
emptyZeroSizedContainer() SizedBox
inherited
ensureContentSnippetPresent(String contentCId) Future<void>
ensureOnScreen(Rect calloutRect, double minVisibleH, double minVisibleV) → (double, double)
inherited
findButtonStyleName(AppInfoModel appInfop, ButtonStyleProperties props) ButtonStyleName?

Available on FlutterContentMixins, provided by the ButtonStylesExtension extension

findCallout<T>(String cId) → T?
inherited
findCalloutCallerContext(String cId) BuildContext?
inherited
findCalloutCallerState(String cId) State<StatefulWidget>?
inherited
findCalloutCallerWidget(String cId) Widget?
inherited
findContainerStyleName(AppInfoModel appInfo, ContainerStyleProperties props) ContainerStyleName?

Available on FlutterContentMixins, provided by the ContainerStylesExtension extension

findGlobalPos(GlobalKey<State<StatefulWidget>> key) Offset?
inherited
findGlobalRect(GlobalKey<State<StatefulWidget>> key) Rect?
inherited
findOE(CalloutId cId) → OE?
inherited
findParentCalloutConfig(dynamic context) CalloutConfigModel?
inherited
findTextStyleName(AppInfoModel appInfo, TextStyleProperties props) TextStyleName?

Available on FlutterContentMixins, provided by the TextStylesExtension extension

inspect the named text styles for a match, and return the name of that matching style
folderPathRef(String folderPath) → Reference
A FlutterContentPage has a snippet with the same route name
forceRefresh({bool onlyTargetsWrappers = false}) → void
formattedDate(int ms) → dynamic
inherited
gap(double gap) Widget
inherited
getCalloutConfig(CalloutId feature) CalloutConfigModel?
inherited
getCalloutGk(dynamic feature) GlobalKey<State<StatefulWidget>>?
getTargetGk(TargetId targetId) GlobalKey<State<StatefulWidget>>?
gotit(String feature, {bool notUsingHydratedStorage = false}) Future<void>
inherited
gotitButton({required String feature, required double iconSize, bool notUsingHydratedStorage = false}) Widget
inherited
greyHeadingText() TextStyle
inherited
greyItemText() TextStyle
inherited
handlers() List<HandlerName>
hide(String cId) → void
inherited
hideParentCallout(dynamic context) → void
inherited
init({required String appName, required List<String> editorPasswords, FirebaseOptions? fbOptions, bool useEmulator = false, bool useFBStorage = false, IModelRepository? testModelRepo, Widget? testWidget, required RoutingConfig routingConfig, required String initialRoutePath, bool skipAssetPkgName = false}) Future<CAPIBloC>
initDeviceInfoAndPlatform() → void
inherited
initGotits() Future<void>
inherited
initLocalStorage() Future<void>
inherited
isEditingVersionPublished(SnippetName name) bool
isHidden(String cId) bool
inherited
linePaint(Color theColor, {double theThickness = 1.5}) Paint
inherited
loadGoogleFontNames(List<GoogleFontName> arr) → void

Available on FlutterContentMixins, provided by the GoogleFontNamesExtension extension

loadingImage256() Image
inherited
lowestEntry() → (int?, OverlayEntry?)
inherited
measureWidgetRect({required BuildContext context, required Widget widget}) Future<Rect>
inherited
memoryPicWithFadeIn({GlobalKey<State<StatefulWidget>>? gk, String? toolTip, required Uint8List bytes, Alignment alignment = Alignment.center, double? width, double? height, double padding = 20}) Widget
inherited
namedHandler(HandlerName name) → void Function(BuildContext)?
inherited
networkPicWithFadeIn({required String url, Alignment alignment = Alignment.center, double width = 512, double height = 512, double padding = 20, BorderRadius radius = BorderRadius.zero}) Widget
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseRouteConfig(List<String> names, List<RouteBase> routes) → void

Available on FlutterContentMixins, provided by the RoutesExtension extension

pinkText(double size) TextStyle
inherited
PositionedTab({Rect? rect, double? top, double? left, double? bottom, double? right, required Color bgColor, required Color borderColor, bool? dontRotate, required Widget child, GlobalKey<State<StatefulWidget>>? key}) → dynamic
A custom Path to paint stars.
inherited
preventParentCalloutDrag(BuildContext ctx) → void
inherited
purpleText(String s, {double? fontSize, String? family}) Text
inherited
raisedButtonStyle({double elevation = 2, EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 16), Color? backgroundColor, Color foregroundColor = Colors.grey, Size minimumSize = const Size(88, 36), dynamic shape = const RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(2))), TextStyle? textStyle}) ButtonStyle
inherited
rebuild(CalloutId feature, {VoidCallback? f}) → void
inherited
rectangularBox({Color? color, double thickness = 1.0, double radius = 0.0}) BoxDecoration
inherited
redBgPaint() Paint
inherited
redOnGrey() ButtonStyle
inherited
refresh(String cId, {VoidCallback? f}) → void
inherited
refreshAll({VoidCallback? f}) → void
inherited
registerHandler(HandlerName name, void f(BuildContext)) → void Function(BuildContext p1)
registerKeystrokeHandler(String handlerId, KeystrokeHandler handler) → void
inherited
rem(dynamic multiple) double
inherited
removeKeystrokeHandler(String handlerId) → void
inherited
removeNonNumeric(dynamic s) String
inherited
removeParentCallout(dynamic context) → void
inherited
restoreHeight(String cId) → void
inherited
restrictRectToScreen(Rect rect) Rect
inherited
saveNewVersion({required SnippetRootNode? snippet}) Future<void>
setAppInfo(AppInfoModel newModel) → void
setCalloutConfigToolbarPos(Offset newPos) → void
setCalloutGk(CalloutId feature, GlobalKey<State<StatefulWidget>> gk) GlobalKey<State<StatefulWidget>>
setCanEditContent(bool b) Future<void>
setDevToolsFABPos(Offset newPos) → void
setSkipAssetPkgNameTrue() → void
inherited
setTargetGk(TargetId targetId, GlobalKey<State<StatefulWidget>> gk) GlobalKey<State<StatefulWidget>>
showCircularProgressIndicator(bool show, {ScrollControllerName? scName, required String reason}) → void
inherited
showOverlay({required CalloutConfigModel calloutConfig, required Widget calloutContent, TargetKeyFunc? targetGkF, bool ensureLowestOverlay = false, int? removeAfterMs, VoidCallback? onReadyF, dynamic skipWidthConstraintWarning = false, dynamic skipHeightConstraintWarning = false}) Future<void>
inherited
showPasswordlessStepper({TargetKeyFunc? targetGkF, required String gcrServerUrl, required ValueChanged<String> onSignedInF, required ScrollControllerName? scName}) → void
inherited
showToast({required CalloutId cId, required String msg, Color? bgColor, Color? textColor, AlignmentEnum gravity = AlignmentEnum.topCenter, bool showCPI = false, bool onlyOnce = false, int removeAfterMs = 0, double? width, double? height}) → void
inherited
showToastBlueOnYellow({required CalloutId cId, required String msg, bool showCPI = false, int removeAfterMs = 0}) → void
inherited
showToastOverlay({required CalloutConfigModel calloutConfig, required Widget calloutContent, int removeAfterMs = 0}) → void
inherited
showToastPurpleOnLightWhite({required CalloutId cId, required String msg, int removeAfterMs = 0, double? widthPC}) → void
inherited
syncStyle() ButtonStyle
inherited
text16(String s, {Color theBgColor = Colors.white, Color color = Colors.black}) Text
/ ask user if wants to create linked new clipboard / flutter defined function / return object of type Dialog
inherited
text18(String s, {Color theBgColor = Colors.white, dynamic key}) Text
inherited
text24(String s, {Color theBgColor = Colors.white}) Text
inherited
thickLinePaint(Color theColor) Paint
inherited
toString() String
A string representation of this object.
inherited
unhide(String cId) → void
inherited
unhideParentCallout(BuildContext context, {bool animateSeparation = false, int hideAfterMs = 0}) → void
inherited
veryThickLinePaint(Color theColor) Paint
inherited
whiteHeadingText() TextStyle
inherited
whiteIcon(IconData iconData) Icon
inherited
whiteItemText() TextStyle
inherited
zeroHeight(String cId) → void
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited