-
-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to custome fontFamily global? #64
Comments
Because there is a problem with the default Chinese font, so must specify the font family |
but the material theme button font changed |
Maybe I should create a new project to test |
Can you try adding all the other font assets (regular, light, etc.) and specify the font weights like in the documentation? |
It may be that the theme of another package does not take effect in my project, but I found a problem that I could not launch in Windows after using this package. |
Can you share the error? |
use flutter-shadcn-ui\example.
|
Please try with the latest commit on main, I removed rive because it caused many issue to a lot of people |
Does this issue happen without shadcn too?
…On Tue, May 14, 2024, 5:24 AM Alexandru Mariuti ***@***.***> wrote:
Please try with the latest commit on main, I removed rive because it
caused many issue to a lot of people
—
Reply to this email directly, view it on GitHub
<#64 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASDJ6267IBT4AHTUYSYJCF3ZCHJ6BAVCNFSM6AAAAABHUOCFNGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBZG4YDSNZWHE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Many people who have tried to add shadcn_ui as a package have encountered the error. Especially on Windows. there is some problem with the rive_common library. |
Thanks, i have solve this problem by rive-app/rive-flutter#308, rive need install clang. |
After test, In riverpod and go_router, the global setting font does not take effect. In this example, https://github.com/lucavenir/go_router_riverpod. |
Be aware that in the materialThemeBuilder you should copy the theme provided to you, not providing a new instance. (context, theme) {
return theme.copyWith(primarySwatch: Colors.cyan)
} I would try your font and let you know |
but ShadButton text font is not right, My font can download in https://github.com/lxgw/LxgwWenKai I guess it's not a matter of fonts |
Thanks, It's normal now, and I understand what's wrong, because i set darkTheme. Thank you very much for developing this package~ |
In materialTheme, we can set fontFamily, but there not have fontFamily in ShadThemeData.
The text was updated successfully, but these errors were encountered: