MaterialApp(
theme : ThemeData(),
home : MyApp()
)
ThemeData(
iconTheme: IconThemeData(color: Colors.red, size: 60),
appBarTheme: AppBarTheme(
color: Colors.grey,
),
)
→ AppBar 안의 actions: [] 아이콘에 빨간색으로 적용이 안된다면?
ThemeData(
textTheme: TextTheme(
bodyText2: TextStyle(
color : Colors.blue,
),
),
)
ThemeData(
textButtonTheme: TextButtonThemeData(
style: TextButton.styleFrom(
primary: Colors.black,
backgroundColor: Colors.orange,
)
),
)
Container(
child : Theme(
data : ThemeData(글자 파랗게 하는 스타일~~),
child : Container(
여기부터는 글자 파래짐~~
)
)
)
Text('안녕', style: Theme.of(context).textTheme.bodyText1)