UiFrameworkConfig class
Global configuration for ui_framework_kit.
Call UiFrameworkConfig.configure early in your app's main()
(before runApp) to customise library-wide defaults such as the
font family or accessibility behaviour.
void main() {
UiFrameworkConfig.configure(
fontFamily: 'Nunito',
accessibility: const AccessibilityConfig(
clearActionLabel: 'Clear search',
respectReduceMotion: true,
),
);
runApp(const MyApp());
}
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- accessibility → AccessibilityConfig
-
The active accessibility configuration. Per-widget parameters
(
semanticLabel, etc.) always win over these defaults.no setter - fontFamily → String?
-
The configured font family, or
nullif using the default (Poppins).no setter - fontStyleBuilder → TextStyle Function({Color? color, TextDecoration? decoration, String? fontFamily, required double fontSize, FontStyle? fontStyle, FontWeight? fontWeight, double? height, double? letterSpacing, double? wordSpacing})?
-
The configured custom style builder, or
nullwhen using the default.no setter
Static Methods
-
configure(
{String? fontFamily, TextStyle fontStyleBuilder({Color? color, TextDecoration? decoration, String? fontFamily, required double fontSize, FontStyle? fontStyle, FontWeight? fontWeight, double? height, double? letterSpacing, double? wordSpacing})?, AccessibilityConfig? accessibility}) → void - Configure library-wide defaults.