Replies: 1 comment 1 reply
-
Why didn't you use materialThemeBuilder: (context, theme) {
return theme.copyWith(
textTheme: TextTheme(...),
);
},
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello there! Really enjoy playing around with shadcn_ui package.
I have one idea to consider. It'd be great to have an ability to override value to the Material text theme, not only for ShadTextTheme. I feel more comfortable using default TextTheme over ShadTextTheme. However, I don't know how to override default material TextTheme.
If there is an option, I'd be glad if you can point me out. If not, I'd glad if you can consider adding this feature.
Here is what can be done:
ShadBaseTheme
.ShadThemeData
.app.dart
file modifymaterialTheme
function, line 638. Here you can check if there is an optional materialTextTheme fromtheme
and if it is not null use it's value overmaterialTheme
or you can merge the default one with provided(but I guess it's better not to merge).Beta Was this translation helpful? Give feedback.
All reactions