Skip to content

Commit

Permalink
Fix(theme_info.dart): Color bug fix
Browse files Browse the repository at this point in the history
scroll 시 그림자 발생하는 Bug fix, AppBarTheme을 ThemeData 내부에 도입하면서, scrolledUnderElevation=0.0으로 설정하여 해결
  • Loading branch information
thomaskim1130 committed Jan 15, 2025
1 parent e2f7762 commit 6a53f88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/constants/theme_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class NewAraThemes {
// DARK THEME SETTINGS
static final darkTheme = ThemeData(
appBarTheme:
const AppBarTheme(elevation: 0, backgroundColor: Color(0xff111111)),
const AppBarTheme(elevation: 0, backgroundColor: Color(0xff111111), scrolledUnderElevation: 0.0),
fontFamily: 'Pretendard',
scaffoldBackgroundColor: Color(0xff111111),
splashColor: Colors.transparent,
Expand Down Expand Up @@ -64,7 +64,7 @@ class NewAraThemes {
// LIGHT THEME SETTINGS
static final lightTheme = ThemeData(
appBarTheme:
const AppBarTheme(elevation: 0, backgroundColor: Colors.white),
const AppBarTheme(elevation: 0, backgroundColor: Colors.white, scrolledUnderElevation: 0.0),
fontFamily: 'Pretendard',
scaffoldBackgroundColor: Colors.white,
splashColor: Colors.transparent,
Expand Down
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class _MyAppState extends State<MyApp> {
ThemeData _setThemeData() {
return ThemeData(
appBarTheme:
const AppBarTheme(elevation: 0, backgroundColor: Colors.white),
const AppBarTheme(elevation: 0, backgroundColor: Colors.white, scrolledUnderElevation: 0.0),
fontFamily: 'Pretendard',
scaffoldBackgroundColor: Colors.white,
splashColor: Colors.transparent,
Expand Down

0 comments on commit 6a53f88

Please sign in to comment.