CNDialogTextStyle class
The text style of one part of a CNAlert or CNActionSheet: its title,
its message or its buttons (#144).
Every field is optional. A null size or weight keeps the one the system
gives that part (the preferred button stays bold), so a style with only a
fontFamily changes the family alone and the dialog keeps its native
proportions. A family declared under fonts: in pubspec.yaml works as
it is: the package registers it with the system the first time.
- Annotations
Constructors
- CNDialogTextStyle({String? fontFamily, double? fontSize, FontWeight? fontWeight, Color? color})
-
Creates a dialog text style.
const
Properties
- color → Color?
-
The colour; null keeps the system's. A destructive button keeps the
system red.
final
- fontFamily → String?
-
The font family; null uses the dialog's
fontFamily, or the system's.final - fontSize → double?
-
The size in points; null keeps the system's.
final
- fontWeight → FontWeight?
-
The weight; null keeps the system's (the family's nearest face).
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toTextStyle(
String? family) → TextStyle? -
This style for the Flutter fallback dialogs, with
familywhen the style has none.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override