스크롤 시 나오는 파란 오버스크롤 글로우 효과 제거
Flutter 기본 GlowingOverscrollIndicator가 스크롤 경계에서 파란색으로 번쩍이던 걸 커스텀 ScrollBehavior로 전체 앱에서 비활성화. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -22,6 +22,18 @@ void main() async {
|
|||||||
runApp(const SchoolAttendanceApp());
|
runApp(const SchoolAttendanceApp());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 🌊 스크롤이 끝에 닿을 때 나오는 파란색 오버스크롤 글로우 효과를 없앤다.
|
||||||
|
class _NoGlowScrollBehavior extends MaterialScrollBehavior {
|
||||||
|
@override
|
||||||
|
Widget buildOverscrollIndicator(
|
||||||
|
BuildContext context,
|
||||||
|
Widget child,
|
||||||
|
ScrollableDetails details,
|
||||||
|
) {
|
||||||
|
return child;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class SchoolAttendanceApp extends StatelessWidget {
|
class SchoolAttendanceApp extends StatelessWidget {
|
||||||
const SchoolAttendanceApp({super.key});
|
const SchoolAttendanceApp({super.key});
|
||||||
|
|
||||||
@@ -30,6 +42,7 @@ class SchoolAttendanceApp extends StatelessWidget {
|
|||||||
return MaterialApp(
|
return MaterialApp(
|
||||||
debugShowCheckedModeBanner: false,
|
debugShowCheckedModeBanner: false,
|
||||||
title: '$schoolName 학생 도우미',
|
title: '$schoolName 학생 도우미',
|
||||||
|
scrollBehavior: _NoGlowScrollBehavior(),
|
||||||
theme: ThemeData(
|
theme: ThemeData(
|
||||||
useMaterial3: true,
|
useMaterial3: true,
|
||||||
scaffoldBackgroundColor: AppPalette.mist,
|
scaffoldBackgroundColor: AppPalette.mist,
|
||||||
|
|||||||
Reference in New Issue
Block a user