どうも、ちょげ(@chogetarou)です。
AppBarのforegroundColorが機能しない時には、どうしたらいいのでしょうか?
方法

@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Sample'),
foregroundColor: Colors.yellow,
backwardsCompatibility: false,
),
body: Center());
}
foregroundColorが機能しない時には、引数「backwardsCompatibility」に「false」を指定します。
コメント