You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
By default, VxTextBuilder uses default text style, and there's no way to change the default texts style on theme level. Normally, we could have wrap MaterialApp with DefaultTextStyle but there's already an open issue that Text doesn't inherit DefaultTextStyle beyond Scaffold. It's been 2 years to the issue, and it's really inconvenient to change the DefaultTextStyle for every page.
Describe the solution you'd like
The idea is to bring VxTextTheme which can be wrapped around MaterialApp to change the default text style through out the application. VxTextBuilder will give to priority to VxTextTheme if any or it will fall back to default.
The text was updated successfully, but these errors were encountered:
@M-A-D-A-R-A the main issue here is how to access the TextStyle from parent. For an instance, we can introduce a VxTheme to define TextStyle but the main issue is how to access that VxTheme without context. Currently to build a text, we use this syntax "String".text.make(). For that TextStyle to be default we might have to change the syntax to "String".text(context).make(). We can also introduce a new extension of vXTextTheme to get the default TextStyle i.e. "String".text.vXTextTheme(context).make()
Is your feature request related to a problem? Please describe.
By default,
VxTextBuilder
uses default text style, and there's no way to change the default texts style on theme level. Normally, we could have wrapMaterialApp
withDefaultTextStyle
but there's already an open issue that Text doesn't inheritDefaultTextStyle
beyond Scaffold. It's been 2 years to the issue, and it's really inconvenient to change theDefaultTextStyle
for every page.Describe the solution you'd like
The idea is to bring
VxTextTheme
which can be wrapped aroundMaterialApp
to change the default text style through out the application.VxTextBuilder
will give to priority toVxTextTheme
if any or it will fall back to default.The text was updated successfully, but these errors were encountered: