どうも、ちょげ(@chogetarou)です。
AppBarのタイトルのフォントを変える方法を紹介します。
方法
AppBarのタイトルのフォントを変えるには、Textウェジェットの引数「style」を使います。
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(
'Sample',
style: TextStyle(fontStyle: FontStyle.italic),
),
),
body: Center());
}

Textウェジェットの引数「style」に、「TextStyle」を指定することで、フォントを設定できます。
コメント