Skip to content

changes - #18

Open
Tejassveer08 wants to merge 1 commit into
usarfoss:mainfrom
Tejassveer08:main
Open

changes#18
Tejassveer08 wants to merge 1 commit into
usarfoss:mainfrom
Tejassveer08:main

Conversation

@Tejassveer08

Copy link
Copy Markdown

Fix #7
Introduced VxTextTheme
New inherited widget (lib/src/flutter/vx_text_theme.dart) to provide an app-wide default TextStyle for VelocityX text.
Access via VxTextTheme.of(context)?.style.
Updated VxTextBuilder to use VxTextTheme
lib/src/flutter/text.dart: VxTextBuilder.make now resolves the effective style with a Builder to access context.
Style merge precedence (highest → lowest):
VxTextTheme.style → .textStyle(...) → existing _textStyle → inline builder style (ts).
Works for both AutoSizeText and intrinsic Text paths.
Behavior/impact
Opt-in: wrap your app (or subtree) with VxTextTheme to set a default style globally.
Backwards compatible: if no VxTextTheme is present, behavior is unchanged.
Per-widget overrides still take priority

New changes implemented
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[VxTextBuilder] Add VxTextTheme to change DefaultTextStyle of the text at theme level.

1 participant