Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save masamichiueta/a2906d96e568031d8b455575e324b1dc to your computer and use it in GitHub Desktop.

Select an option

Save masamichiueta/a2906d96e568031d8b455575e324b1dc to your computer and use it in GitHub Desktop.

Revisions

  1. masamichiueta renamed this gist Oct 15, 2018. 1 changed file with 0 additions and 0 deletions.
  2. masamichiueta created this gist Oct 15, 2018.
    21 changes: 21 additions & 0 deletions custom_font_theme.dart
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    ThemeData _buildTheme() {
    final ThemeData base = ThemeData.light();
    return base.copyWith(
    textTheme: base.textTheme.apply(fontFamily: 'Hiragino Kaku Gothic ProN'),
    primaryTextTheme:
    base.primaryTextTheme.apply(fontFamily: 'Hiragino Kaku Gothic ProN'),
    accentTextTheme:
    base.accentTextTheme.apply(fontFamily: 'Hiragino Kaku Gothic ProN'));
    }

    class MyApp extends StatelessWidget {
    // This widget is the root of your application.
    @override
    Widget build(BuildContext context) {
    return new MaterialApp(
    title: 'Flutter Demo',
    theme: _buildTheme(),
    home: new MyHomePage(title: 'Flutter Demo Home Page'),
    );
    }
    }