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,
|
color: RetroColors.gold,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// 버튼 테마
|
// 버튼 테마 (inherit: false로 애니메이션 lerp 오류 방지)
|
||||||
filledButtonTheme: FilledButtonThemeData(
|
filledButtonTheme: FilledButtonThemeData(
|
||||||
style: FilledButton.styleFrom(
|
style: FilledButton.styleFrom(
|
||||||
backgroundColor: RetroColors.buttonPrimary,
|
backgroundColor: RetroColors.buttonPrimary,
|
||||||
foregroundColor: RetroColors.textLight,
|
foregroundColor: RetroColors.textLight,
|
||||||
textStyle: const TextStyle(
|
textStyle: const TextStyle(
|
||||||
|
inherit: false,
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 10,
|
fontSize: 10,
|
||||||
|
color: RetroColors.textLight,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -144,8 +146,10 @@ class _AskiiNeverDieAppState extends State<AskiiNeverDieApp> {
|
|||||||
foregroundColor: RetroColors.gold,
|
foregroundColor: RetroColors.gold,
|
||||||
side: const BorderSide(color: RetroColors.gold, width: 2),
|
side: const BorderSide(color: RetroColors.gold, width: 2),
|
||||||
textStyle: const TextStyle(
|
textStyle: const TextStyle(
|
||||||
|
inherit: false,
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 10,
|
fontSize: 10,
|
||||||
|
color: RetroColors.gold,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -153,8 +157,10 @@ class _AskiiNeverDieAppState extends State<AskiiNeverDieApp> {
|
|||||||
style: TextButton.styleFrom(
|
style: TextButton.styleFrom(
|
||||||
foregroundColor: RetroColors.cream,
|
foregroundColor: RetroColors.cream,
|
||||||
textStyle: const TextStyle(
|
textStyle: const TextStyle(
|
||||||
|
inherit: false,
|
||||||
fontFamily: 'PressStart2P',
|
fontFamily: 'PressStart2P',
|
||||||
fontSize: 10,
|
fontSize: 10,
|
||||||
|
color: RetroColors.cream,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user