Flutter-Neumorphic icon indicating copy to clipboard operation
Flutter-Neumorphic copied to clipboard

How to add a default global fontFamily in neumorphicApp?

Open fonkamloic opened this issue 5 years ago • 2 comments

fonkamloic avatar Sep 15 '20 20:09 fonkamloic

The same question. Seems like you forgot the fontFamily parameter. We use non-Google fonts, so we can't use google_fonts utility.

subzero911 avatar Oct 13 '20 10:10 subzero911

Hey @fonkamloic, I found a way. You can use materialTheme parameter with a standard Flutter Material theme, where you can define your fontFamily. When grab this parameter with Theme.of(context) to set your font in your Neumorphic widgets.

subzero911 avatar Oct 13 '20 11:10 subzero911