fontsource 0.4.0 copy "fontsource: ^0.4.0" to clipboard
fontsource: ^0.4.0 copied to clipboard

Easily add Fontsource fonts to your flutter app. Includes a dart interface for the Fontsource API.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:fontsource/fontsource.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: const <Widget>[
              Text(
                'Sphinx of black quartz, judge my vow.',
                style:
                    FontsourceTextStyle(fontFamily: 'Alex Brush', fontSize: 40),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
11
likes
120
pub points
29%
popularity

Publisher

verified publisherfontsource.org

Easily add Fontsource fonts to your flutter app. Includes a dart interface for the Fontsource API.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, http, json2yaml, path, progress_bar, version, yaml

More

Packages that depend on fontsource