Skip to main content

Flutter List of Default Text Font Family

There are 8 default text font family available in flutter which I have found and test in android device. After finding a lot on internet and go through flutter documentation I found these font family styles. Font family style are basically writing fonts in different styles. In flutter there are 8 font family comes default with package and to use these fonts you do not need to install any external fonts or packages for these fonts.
Set Font Family on Text in Flutter

Flutter List of Default Text Font Family:

  1. Serif
  2. Sans-serif
  3. Monospace
  4. Cursive
  5. Fantasy
  6. Times New Roman
  7. Courier New
  8. Georgia
1. Defining Text widget and apply fontFamily with all the 8 font family.
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        home: Scaffold(
            body: Column(children: [
      Center(
          child: Container(
              padding: const EdgeInsets.fromLTRB(15, 25, 15, 0),
              child: const Text(
                "Serif Font Text",
                style: TextStyle(fontSize: 32, fontFamily: 'Serif'),
              ))),
      const Text(
        "Sans-serif Font Text",
        style: TextStyle(fontSize: 32, fontFamily: 'Sans-serif'),
      ),
      const Text(
        "Monospace Font Text",
        style: TextStyle(fontSize: 32, fontFamily: 'Monospace'),
      ),
      const Text(
        "Cursive Font Text",
        style: TextStyle(fontSize: 32, fontFamily: 'Cursive'),
      ),
      const Text(
        "Fantasy Font Text",
        style: TextStyle(fontSize: 32, fontFamily: 'Fantasy'),
      ),
      const Text(
        "Times New Roman Font",
        style: TextStyle(fontSize: 32, fontFamily: 'Times New Roman'),
      ),
      const Text(
        "Courier New Font",
        style: TextStyle(fontSize: 32, fontFamily: 'Courier New'),
      ),
      const Text(
        "Georgia Font",
        style: TextStyle(fontSize: 32, fontFamily: 'Georgia'),
      )
    ])));
  }
}
Screenshot:
Flutter List of Default Text Font Family

Comments