NikuText class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- NikuText
- Mixed-in types
- Available extensions
Constructors
- NikuText(String? text, {Key? key, NikuTextStyle? style, NikuStrutStyle? strutStyle, TextAlign? textAlign, TextDirection? textDirection, Locale? locale, bool? softWrap, TextOverflow? overflow, double? textScaleFactor, int? maxLines, String? semanticsLabel, TextWidthBasis? textWidthBasis, TextHeightBehavior? textHeightBehavior})
- NikuText.bodyLarge(String? text, {Key? key, TextStyle style = const TextStyle(), NikuStrutStyle? strutStyle, TextAlign? textAlign, TextDirection? textDirection, Locale? locale, bool? softWrap, TextOverflow? overflow, double? textScaleFactor, int? maxLines, String? semanticsLabel, TextWidthBasis? textWidthBasis, TextHeightBehavior? textHeightBehavior})
-
factory
- NikuText.bodyMedium(String? text, {Key? key, TextStyle style = const TextStyle(), NikuStrutStyle? strutStyle, TextAlign? textAlign, TextDirection? textDirection, Locale? locale, bool? softWrap, TextOverflow? overflow, double? textScaleFactor, int? maxLines, String? semanticsLabel, TextWidthBasis? textWidthBasis, TextHeightBehavior? textHeightBehavior})
-
factory
- NikuText.bodySmall(String? text, {Key? key, TextStyle style = const TextStyle(), NikuStrutStyle? strutStyle, TextAlign? textAlign, TextDirection? textDirection, Locale? locale, bool? softWrap, TextOverflow? overflow, double? textScaleFactor, int? maxLines, String? semanticsLabel, TextWidthBasis? textWidthBasis, TextHeightBehavior? textHeightBehavior})
-
factory
- NikuText.displayLarge(String? text, {Key? key, TextStyle style = const TextStyle(), NikuStrutStyle? strutStyle, TextAlign? textAlign, TextDirection? textDirection, Locale? locale, bool? softWrap, TextOverflow? overflow, double? textScaleFactor, int? maxLines, String? semanticsLabel, TextWidthBasis? textWidthBasis, TextHeightBehavior? textHeightBehavior})
-
factory
- NikuText.displayMedium(String? text, {Key? key, TextStyle style = const TextStyle(), NikuStrutStyle? strutStyle, TextAlign? textAlign, TextDirection? textDirection, Locale? locale, bool? softWrap, TextOverflow? overflow, double? textScaleFactor, int? maxLines, String? semanticsLabel, TextWidthBasis? textWidthBasis, TextHeightBehavior? textHeightBehavior})
-
factory
- NikuText.displaySmall(String? text, {Key? key, TextStyle style = const TextStyle(), NikuStrutStyle? strutStyle, TextAlign? textAlign, TextDirection? textDirection, Locale? locale, bool? softWrap, TextOverflow? overflow, double? textScaleFactor, int? maxLines, String? semanticsLabel, TextWidthBasis? textWidthBasis, TextHeightBehavior? textHeightBehavior})
-
factory
- NikuText.labelLarge(String? text, {Key? key, TextStyle style = const TextStyle(), NikuStrutStyle? strutStyle, TextAlign? textAlign, TextDirection? textDirection, Locale? locale, bool? softWrap, TextOverflow? overflow, double? textScaleFactor, int? maxLines, String? semanticsLabel, TextWidthBasis? textWidthBasis, TextHeightBehavior? textHeightBehavior})
-
factory
- NikuText.labelMedium(String? text, {Key? key, TextStyle style = const TextStyle(), NikuStrutStyle? strutStyle, TextAlign? textAlign, TextDirection? textDirection, Locale? locale, bool? softWrap, TextOverflow? overflow, double? textScaleFactor, int? maxLines, String? semanticsLabel, TextWidthBasis? textWidthBasis, TextHeightBehavior? textHeightBehavior})
-
factory
- NikuText.labelSmall(String? text, {Key? key, TextStyle style = const TextStyle(), NikuStrutStyle? strutStyle, TextAlign? textAlign, TextDirection? textDirection, Locale? locale, bool? softWrap, TextOverflow? overflow, double? textScaleFactor, int? maxLines, String? semanticsLabel, TextWidthBasis? textWidthBasis, TextHeightBehavior? textHeightBehavior})
-
factory
- NikuText.titleLarge(String? text, {Key? key, TextStyle style = const TextStyle(), NikuStrutStyle? strutStyle, TextAlign? textAlign, TextDirection? textDirection, Locale? locale, bool? softWrap, TextOverflow? overflow, double? textScaleFactor, int? maxLines, String? semanticsLabel, TextWidthBasis? textWidthBasis, TextHeightBehavior? textHeightBehavior})
-
factory
- NikuText.titleMedium(String? text, {Key? key, TextStyle style = const TextStyle(), NikuStrutStyle? strutStyle, TextAlign? textAlign, TextDirection? textDirection, Locale? locale, bool? softWrap, TextOverflow? overflow, double? textScaleFactor, int? maxLines, String? semanticsLabel, TextWidthBasis? textWidthBasis, TextHeightBehavior? textHeightBehavior})
-
factory
- NikuText.titleSmall(String? text, {Key? key, TextStyle style = const TextStyle(), NikuStrutStyle? strutStyle, TextAlign? textAlign, TextDirection? textDirection, Locale? locale, bool? softWrap, TextOverflow? overflow, double? textScaleFactor, int? maxLines, String? semanticsLabel, TextWidthBasis? textWidthBasis, TextHeightBehavior? textHeightBehavior})
-
factory
Properties
- $parent → Niku
-
finalinherited
- aboveline → void
-
no setterinherited
- alphabetic → void
-
no setterinherited
- apply ← NikuText?
-
no getteroverride
- applySturtStyle ← NikuStrutStyle
-
no getterinherited
- applyTextStyle ← NikuTextStyle
-
no getterinherited
- aspect ← double
-
no getterinherited
- aspectRatio ← double
-
no getterinherited
- background ← Paint
-
no getterinherited
- backgroundColor ← Color
-
no getterinherited
- bg ← Color
-
no getterinherited
- bodyLarge → void
-
no setterinherited
- bodyMedium → void
-
no setterinherited
- bodySmall → void
-
no setterinherited
- bold → void
-
no setterinherited
- boxConstraints ← BoxConstraints
-
no getterinherited
- center → void
-
no setterinherited
- color ← Color
-
no getterinherited
- copied → NikuText
-
no setteroverride
- dashed → void
-
no setterinherited
- debugLabel ← String
-
no getterinherited
- decoration ← TextDecoration
-
no getterinherited
- decorationColor ← Color
-
no getterinherited
- decorationStyle ← TextDecorationStyle
-
no getterinherited
- decorationThickness ← double
-
no getterinherited
- deps ↔ List
-
getter/setter pairinherited
- displayLarge → void
-
no setterinherited
- displayMedium → void
-
no setterinherited
- displaySmall → void
-
no setterinherited
- dotted → void
-
no setterinherited
- doubleLine → void
-
no setterinherited
- end → void
-
no setterinherited
- expanded → dynamic
-
no setterinherited
- fh ← double
-
no getterinherited
- fill → void
-
no setterinherited
- flex ↔ int
-
getter/setter pairinherited
- fontFamily ← String
-
no getterinherited
-
fontFamilyFallback
← List<
String> -
no getterinherited
-
fontFeatures
← List<
FontFeature> -
no getterinherited
- fontSize ← double
-
no getterinherited
- fontStyle ← FontStyle
-
no getterinherited
- fontWeight ← FontWeight
-
no getterinherited
- foreground ← Paint
-
no getterinherited
- formKey ← Key
-
no getterinherited
- fractionH ← double
-
no getterinherited
- fractionHeight ← double
-
no getterinherited
-
fractionSize
← List<
double> -
no getterinherited
- fractionW ← double
-
no getterinherited
- fractionWidth ← double
-
no getterinherited
- freezed → void
-
no setterinherited
- fullHeight → void
-
no setterinherited
- fullSize → void
-
no setterinherited
- fullWidth → void
-
no setterinherited
- fw ← double
-
no getterinherited
- h ← double
-
no getterinherited
- h100 → void
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- height ← double
-
no getterinherited
- heightPercent ← double
-
no getterinherited
- hFactor ← double
-
no getterinherited
- hFull → void
-
no setterinherited
-
no setterinherited
- hMax ← double
-
no getterinherited
- hMin ← double
-
no getterinherited
- hPercent ← double
-
no getterinherited
- ideographic → void
-
no setterinherited
- italic → void
-
no setterinherited
- justify → void
-
no setterinherited
- key ↔ Key?
-
Controls how one widget replaces another widget in the tree.
getter/setter pairoverride-getter
- labelLarge → void
-
no setterinherited
- labelMedium → void
-
no setterinherited
- labelSmall → void
-
no setterinherited
- leadingDistribution ← TextLeadingDistribution
-
no getterinherited
- left → void
-
no setterinherited
- letterSpacing ← double
-
no getterinherited
- lineThrough → void
-
no setterinherited
- locale ↔ Locale?
-
getter/setter pairoverride-setter
- ltr → void
-
no setterinherited
- m ← double
-
no getterinherited
- margin ← EdgeInsets
-
no getterinherited
- maxH ← double
-
no getterinherited
- maxHeight ← double
-
no getterinherited
- maxLines ↔ int?
-
getter/setter pair
-
maxSize
← List<
double> -
no getterinherited
- maxW ← double
-
no getterinherited
- maxWidth ← double
-
no getterinherited
- mb ← double
-
no getterinherited
- minH ← double
-
no getterinherited
- minHeight ← double
-
no getterinherited
-
minSize
← List<
double> -
no getterinherited
- minW ← double
-
no getterinherited
- minWidth ← double
-
no getterinherited
- ml ← double
-
no getterinherited
- mr ← double
-
no getterinherited
- mt ← double
-
no getterinherited
- mx ← double
-
no getterinherited
- my ← double
-
no getterinherited
- n → NikuExplictParentBuilder
-
no setterinherited
- noDecoration → void
-
no setterinherited
- overflow ↔ TextOverflow?
-
getter/setter pairoverride-setter
- package ← String
-
no getterinherited
- parent → NikuExplictParentBuilder
-
no setterinherited
- ratio ← double
-
no getterinherited
- right → void
-
no setterinherited
- rtl → void
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollable → void
-
no setterinherited
- self → NikuText
-
no setteroverride
- semanticsLabel ↔ String?
-
getter/setter pair
-
shadows
← List<
Shadow> -
no getterinherited
-
sizePercent
← List<
double> -
no getterinherited
- sliverToBox → void
-
no setterinherited
- softWrap ↔ bool?
-
getter/setter pair
- solid → void
-
no setterinherited
- start → void
-
no setterinherited
- strutStyle ↔ NikuStrutStyle?
-
getter/setter pairoverride
- style ↔ NikuTextStyle?
-
getter/setter pairoverride
- text ↔ String?
-
getter/setter pair
- textAlign ↔ TextAlign?
-
getter/setter pairoverride
- textBaseline ↔ TextBaseline?
-
getter/setter pairinherited
- textDirection ↔ TextDirection?
-
getter/setter pairoverride
- textHeightBehavior ↔ TextHeightBehavior?
-
getter/setter pair
- textScaleFactor ↔ double?
-
getter/setter pair
- textWidthBasis ↔ TextWidthBasis?
-
getter/setter pair
- theme ← ThemeData
-
no getterinherited
- tip ← String
-
no getterinherited
- titleLarge → void
-
no setterinherited
- titleMedium → void
-
no setterinherited
- titleSmall → void
-
no setterinherited
- tooltip ← String
-
no getterinherited
- underline → void
-
no setterinherited
- visible ← bool
-
no getterinherited
- w ← double
-
no getterinherited
- w100 → void
-
no setterinherited
- w200 → void
-
no setterinherited
- w300 → void
-
no setterinherited
- w400 → void
-
no setterinherited
- w500 → void
-
no setterinherited
- w600 → void
-
no setterinherited
- w700 → void
-
no setterinherited
- w800 → void
-
no setterinherited
- w900 → void
-
no setterinherited
- wavy → void
-
no setterinherited
- wFactor ← double
-
no getterinherited
- wFull → void
-
no setterinherited
- width ← double
-
no getterinherited
- widthPercent ← double
-
no getterinherited
- wMax ← double
-
no getterinherited
- wMin ← double
-
no getterinherited
- wordSpacing ← double
-
no getterinherited
- wPercent ← double
-
no getterinherited
- wrap → dynamic
-
Cancel parent size inheritance by wrapping the widget with a Wrap.
no setterinherited
Methods
-
build(
BuildContext _) → Widget -
inherited
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
of(
NikuText? v) → void -
inherited
-
on(
{void tapDown(TapDownDetails)?, void tapUp(TapUpDetails)?, VoidCallback? tap, VoidCallback? tapCancel, VoidCallback? secondaryTap, void secondaryTapDown(TapDownDetails)?, void secondaryTapUp(TapUpDetails)?, VoidCallback? secondaryTapCancel, void tertiaryTapDown(TapDownDetails)?, void tertiaryTapUp(TapUpDetails)?, VoidCallback? tertiaryTapCancel, void doubleTapDown(TapDownDetails)?, VoidCallback? doubleTap, VoidCallback? doubleTapCancel, VoidCallback? longPress, void longPressStart(LongPressStartDetails)?, void longPressMoveUpdate(LongPressMoveUpdateDetails)?, VoidCallback? longPressUp, void longPressEnd(LongPressEndDetails)?, VoidCallback? secondaryLongPress, void secondaryLongPressStart(LongPressStartDetails)?, void secondaryLongPressMoveUpdate(LongPressMoveUpdateDetails)?, VoidCallback? secondaryLongPressUp, void secondaryLongPressEnd(LongPressEndDetails)?, void verticalDragDown(DragDownDetails)?, void verticalDragStart(DragStartDetails)?, void verticalDragUpdate(DragUpdateDetails)?, void verticalDragEnd(DragEndDetails)?, VoidCallback? verticalDragCancel, void horizontalDragDown(DragDownDetails)?, void horizontalDragStart(DragStartDetails)?, void horizontalDragUpdate(DragUpdateDetails)?, void horizontalDragEnd(DragEndDetails)?, VoidCallback? horizontalDragCancel, void forcePressStart(ForcePressDetails)?, void forcePressPeak(ForcePressDetails)?, void forcePressUpdate(ForcePressDetails)?, void forcePressEnd(ForcePressDetails)?, void panDown(DragDownDetails)?, void panStart(DragStartDetails)?, void panUpdate(DragUpdateDetails)?, void panEnd(DragEndDetails)?, VoidCallback? panCancel, void scaleStart(ScaleStartDetails)?, void scaleUpdate(ScaleUpdateDetails)?, void scaleEnd(ScaleEndDetails)?}) → void -
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
-
use(
List< NikuText> v) → void -
inherited
-
useAnimationBuilder(
{required Widget builder(BuildContext context, Widget child), required AnimationController animation}) → void -
inherited
-
useDarkMode(
BuildContext context, NikuText builder(NikuText, bool)) → void -
inherited
-
useForm(
{Key? key, AutovalidateMode? autovalidateMode, Future< bool> onWillPop()?, void onChanged()?}) → void -
inherited
-
useParent(
Widget compose(Niku)) → void -
inherited
-
usePlatform(
BuildContext context, {NikuText android(NikuText)?, NikuText iOS(NikuText)?, NikuText fuchsia(NikuText)?, NikuText linux(NikuText)?, NikuText macOS(NikuText)?, NikuText windows(NikuText)?, NikuText web(NikuText)?}) → void -
inherited
-
useQuery(
BuildContext context, NikuText builder(NikuText, MediaQueryData)) → void -
inherited
-
useScreen(
BuildContext context, {NikuText base(NikuText)?, NikuText xs(NikuText)?, NikuText sm(NikuText)?, NikuText md(NikuText)?, NikuText lg(NikuText)?, NikuText xl(NikuText)?}) → void -
void useScreen({ // > 568px Widget Function(Niku)? base, // 568 - 640px Widget Function(Niku)? xs, // 640 - 768px Widget Function(Niku)? sm, // 768 - 920px Widget Function(Niku)? md, // 920 - 1024px Widget Function(Niku)? lg, // > 1024px Widget Function(Niku)? xl, })
inherited -
useScrollView(
{ScrollController? controller, Axis scrollDirection = Axis.vertical, bool? primary, bool reverse = false, ScrollPhysics? physics, DragStartBehavior dragStartBehavior = DragStartBehavior.start, String? restorationId}) → void -
inherited
-
useSize(
BuildContext context, NikuText builder(NikuText, Size)) → void -
inherited
-
useSturtStyle(
NikuStrutStyle v(NikuStrutStyle)) → void -
inherited
-
useTextStyle(
NikuTextStyle v(NikuTextStyle)) → void -
inherited
-
useThemeSelector(
BuildContext context, {NikuText light(NikuText)?, NikuText dark(NikuText)?}) → void -
inherited
-
widget(
BuildContext context) → Widget -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
rich(
{Key? key, NikuTextSpan? text, TextAlign? textAlign, TextDirection? textDirection, bool? softWrap, TextOverflow? overflow, double? textScaleFactor, int? maxLines, Locale? locale, NikuStrutStyle? strutStyle, TextWidthBasis? textWidthBasis, TextHeightBehavior? textHeightBehavior}) → NikuRichText