AppFonts class

Inheritance
  • Object
  • GetLifeCycle
  • DisposableInterface
  • GetxController
  • AppFonts
Implemented types

Constructors

AppFonts()

Properties

appHeight double
no setter
appSize Size
no setter
appWidth double
no setter
context BuildContext
no setter
defaultFontFamily String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
no setterinherited
initialized bool
Checks whether the controller has already been initialized.
no setterinherited
isClosed bool
Checks whether the controller has already been closed.
no setterinherited
isKeyboardOpen bool
no setter
isStaticDefault bool?
getter/setter pair
keyboardHeight double
no setter
listeners int
no setterinherited
onDelete → InternalFinalCallback<void>
Internal callback that starts the cycle of this controller.
finalinherited
onStart → InternalFinalCallback<void>
Called at the exact moment the widget is allocated in memory. It uses an internal "callable" type, to avoid any @overrides in subclases. This method should be internal and is required to define the lifetime cycle of the subclass.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalSize double
no setter

Methods

$configureLifeCycle() → void
inherited
addListener(GetStateUpdate listener) → Disposer
Register a closure to be called when the object notifies its listeners.
inherited
addListenerId(Object? key, GetStateUpdate listener) → Disposer
inherited
addSpecificSize({required double size, required String name}) → void
calculateFontsize(double fontSize, double dif, int number) double
calculateRatio(double ratio, double dif, int number) double
changeStaticSize({required String name, required double size}) → void
changeStaticSizeRatio({required String name, required double ratio}) → void
dispose() → void
inherited
disposeId(Object id) → void
To dispose an id from future updates(), this ids are registered by GetBuilder() or similar, so is a way to unlink the state change with the Widget from the Controller.
inherited
getPageDynamicFonts(String pageName, SizeType type) double
getPageDynamicIconSizes(String pageName, SizeType type) double
getPageStaticFonts(String pageName, SizeType type) double
getPageStaticIconSized(String pageName, SizeType type) double
giga({Color? color, bool? isBold, String? pageName, TextDecoration? decoration, Color? backgroundColor, String? fontFamily, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
icon_giga({String? pageName, bool? isStatic}) double
icon_L({String? pageName, bool? isStatic}) double
icon_large1({String? pageName, bool? isStatic}) double
icon_large2({String? pageName, bool? isStatic}) double
icon_large3({String? pageName, bool? isStatic}) double
icon_large4({String? pageName, bool? isStatic}) double
icon_large5({String? pageName, bool? isStatic}) double
icon_large6({String? pageName, bool? isStatic}) double
icon_large7({String? pageName, bool? isStatic}) double
icon_large8({String? pageName, bool? isStatic}) double
icon_large9({String? pageName, bool? isStatic}) double
icon_M({String? pageName, bool? isStatic}) double
icon_medium1({String? pageName, bool? isStatic}) double
icon_medium2({String? pageName, bool? isStatic}) double
icon_medium3({String? pageName, bool? isStatic}) double
icon_medium4({String? pageName, bool? isStatic}) double
icon_medium5({String? pageName, bool? isStatic}) double
icon_medium6({String? pageName, bool? isStatic}) double
icon_medium7({String? pageName, bool? isStatic}) double
icon_medium8({String? pageName, bool? isStatic}) double
icon_medium9({String? pageName, bool? isStatic}) double
icon_mega({String? pageName, bool? isStatic}) double
icon_mega1({String? pageName, bool? isStatic}) double
icon_mega2({String? pageName, bool? isStatic}) double
icon_mega3({String? pageName, bool? isStatic}) double
icon_mega4({String? pageName, bool? isStatic}) double
icon_mega5({String? pageName, bool? isStatic}) double
icon_mega6({String? pageName, bool? isStatic}) double
icon_mega7({String? pageName, bool? isStatic}) double
icon_mega8({String? pageName, bool? isStatic}) double
icon_mega9({String? pageName, bool? isStatic}) double
icon_S({String? pageName, bool? isStatic}) double
icon_small1({String? pageName, bool? isStatic}) double
icon_small2({String? pageName, bool? isStatic}) double
icon_small3({String? pageName, bool? isStatic}) double
icon_small4({String? pageName, bool? isStatic}) double
icon_small5({String? pageName, bool? isStatic}) double
icon_small6({String? pageName, bool? isStatic}) double
icon_small7({String? pageName, bool? isStatic}) double
icon_small8({String? pageName, bool? isStatic}) double
icon_small9({String? pageName, bool? isStatic}) double
icon_xL({String? pageName, bool? isStatic}) double
icon_xS({String? pageName, bool? isStatic}) double
L({Color? color, bool? isBold, String? pageName, TextDecoration? decoration, Color? backgroundColor, String? fontFamily, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
large1({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
large2({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
large3({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
large4({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
large5({Color? color, bool? isBold, String? pageName, TextDecoration? decoration, Color? backgroundColor, String? fontFamily, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
large6({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
large7({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
large8({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
large9({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
M({Color? color, bool? isBold, String? pageName, TextDecoration? decoration, Color? backgroundColor, String? fontFamily, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
medium1({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
medium2({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
medium3({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
medium4({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
medium5({Color? color, bool? isBold, String? pageName, TextDecoration? decoration, Color? backgroundColor, String? fontFamily, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
medium6({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
medium7({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
medium8({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
medium9({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
mega({Color? color, bool? isBold, String? pageName, TextDecoration? decoration, Color? backgroundColor, String? fontFamily, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
mega1({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
mega2({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
mega3({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
mega4({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
mega5({Color? color, bool? isBold, String? pageName, TextDecoration? decoration, Color? backgroundColor, String? fontFamily, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
mega6({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
mega7({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
mega8({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
mega9({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyChildrens() → void
inherited
onClose() → void
Called before onDelete method. onClose might be used to dispose resources used by the controller. Like closing events, or streams before the controller is destroyed. Or dispose objects that can potentially create some memory leaks, like TextEditingControllers, AnimationControllers. Might be useful as well to persist some data on disk.
inherited
onInit() → void
Called immediately after the widget is allocated in memory. You might use this to initialize something for the controller.
inherited
onReady() → void
Called 1 frame after onInit(). It is the perfect place to enter navigation events, like snackbar, dialogs, or a new route, or async request.
inherited
refresh() → void
inherited
refreshGroup(Object id) → void
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that the object notifies.
inherited
removeListenerId(Object id, VoidCallback listener) → void
inherited
removeSpecificSize(String name) → void
S({Color? color, bool? isBold, String? pageName, TextDecoration? decoration, Color? backgroundColor, String? fontFamily, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
small1({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
small2({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
small3({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
small4({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
small5({Color? color, bool? isBold, String? pageName, TextDecoration? decoration, Color? backgroundColor, String? fontFamily, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
small6({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
small7({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
small8({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
small9({Color? color, bool? isBold, String? fontFamily, String? pageName, TextDecoration? decoration, Color? backgroundColor, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
specific({required String specificType, Color? color, String? fontFamily, TextDecoration? decoration, Color? backgroundColor, bool? isBold, FontWeight fontWeight = FontWeight.normal}) TextStyle
specificSize(String name) double
toString() String
A string representation of this object.
inherited
update([List<Object>? ids, bool condition = true]) → void
Rebuilds GetBuilder each time you call update(); Can take a List of ids, that will only update the matching GetBuilder( id: ), ids can be reused among GetBuilders like group tags. The update will only notify the Widgets, if condition is true.
inherited
updateFonts(BuildContext context, {bool? staticSize}) → void
xL({Color? color, bool? isBold, String? pageName, TextDecoration? decoration, Color? backgroundColor, String? fontFamily, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle
xS({Color? color, bool? isBold, String? pageName, TextDecoration? decoration, Color? backgroundColor, String? fontFamily, FontWeight fontWeight = FontWeight.normal, bool? isStatic}) TextStyle

Operators

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