fix(theme): 버튼 TextStyle lerp 오류 수정
- 버튼 테마의 TextStyle에 inherit: false 추가 - color 속성 명시로 완전한 TextStyle 정의 - 애니메이션 시 TextStyle interpolation 오류 방지
This commit is contained in:
@@ -128,14 +128,16 @@ class _AskiiNeverDieAppState extends State<AskiiNeverDieApp> {
|
||||
color: RetroColors.gold,
|
||||
),
|
||||
),
|
||||
// 버튼 테마
|
||||
// 버튼 테마 (inherit: false로 애니메이션 lerp 오류 방지)
|
||||
filledButtonTheme: FilledButtonThemeData(
|
||||
style: FilledButton.styleFrom(
|
||||
backgroundColor: RetroColors.buttonPrimary,
|
||||
foregroundColor: RetroColors.textLight,
|
||||
textStyle: const TextStyle(
|
||||
inherit: false,
|
||||
fontFamily: 'PressStart2P',
|
||||
fontSize: 10,
|
||||
color: RetroColors.textLight,
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -144,8 +146,10 @@ class _AskiiNeverDieAppState extends State<AskiiNeverDieApp> {
|
||||
foregroundColor: RetroColors.gold,
|
||||
side: const BorderSide(color: RetroColors.gold, width: 2),
|
||||
textStyle: const TextStyle(
|
||||
inherit: false,
|
||||
fontFamily: 'PressStart2P',
|
||||
fontSize: 10,
|
||||
color: RetroColors.gold,
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -153,8 +157,10 @@ class _AskiiNeverDieAppState extends State<AskiiNeverDieApp> {
|
||||
style: TextButton.styleFrom(
|
||||
foregroundColor: RetroColors.cream,
|
||||
textStyle: const TextStyle(
|
||||
inherit: false,
|
||||
fontFamily: 'PressStart2P',
|
||||
fontSize: 10,
|
||||
color: RetroColors.cream,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user