I want to make a flutter app and in this app all the text styles should e similar. So, I want to have, like css, a stylesheet with e.g. 3 different textstyles and when I want to use one of that, I can call the methode like
Text(
'Text',
style: myTheme.styleType2,
),
Has anyone a good idea for this? Thanks a lot
You can create a class for maintaining all of your TextStyles used in your project:
Now use these styles as a static data member
For Exceptional Text, apply exceptional styles when copying the existing style, like: