1. 폰트 가져오기(다운로드)

Gmarket Sans 사용

눈누 - 상업용 무료한글폰트 사이트

2. assets에 폰트 추가

project
     ㄴ android
     ㄴ assets
    	ㄴ fonts
    	  ㄴ {파일 넣는 곳}
        ㄴ ...
     ㄴ build
     ㄴ ios
     ㄴ lib
     ㄴ ...

3. pubspec.yaml 수정

Untitled

fonts:
	- family: GmarketSansTTF
	  fonts:
	    - asset: assets/fonts/gmarket/GmarketSansTTFLight.ttf
	      weight: 300
	    - asset: assets/fonts/gmarket/GmarketSansTTFMedium.ttf
	      weight: 500
	    - asset: assets/fonts/gmarket/GmarketSansTTFBold.ttf
	      weight: 700

4. 적용

1) 전체적용

import 'package:flutter/material.dart';
import 'package:lenah_basic/home.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
      	fontFamily: 'GmarketSansTTF',
				...
      ),
      home: HomePage(),
    );
  }
}

2) 특정 텍스트 적용

import 'package:flutter/material.dart';

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(
          'test 테스트1',
          style: TextStyle(fontFamily: 'GmarketSansTTF'),
        ),
      ),
    );
  }
}

3) bold 적용하고싶다면