How to change the default font family in Flutter

تبليغ
سؤال

يرجى شرح بإيجاز لمإذا تشعر أنك ينبغي الإبلاغ عن هذا السؤال.

تبليغ
‎إلغاء

How can I change every text of my app to use a specific font?

إجابة ( 1 )

    0
    2022-06-30T23:29:34+03:00

    يرجى شرح بإيجاز لمإذا تشعر أنك ينبغي الإبلاغ عن هذه الإجابة.

    تبليغ
    ‎إلغاء

    Use Google fonts then use the official google_fonts package from the material team.
    add to pubspec.yaml
    dependencies

    google_fonts:

    Override the default font like this
    MaterialApp(
    theme: ThemeData(
    textTheme: GoogleFonts.latoTextTheme(
    Theme.of(context).textTheme,
    ),
    ),
    );

‫أضف إجابة

تصفح
تصفح

مجهول يجيب