diff --git a/lib/ui/teacher_location_screen.dart b/lib/ui/teacher_location_screen.dart index a7a4763..1d7eb3f 100644 --- a/lib/ui/teacher_location_screen.dart +++ b/lib/ui/teacher_location_screen.dart @@ -74,6 +74,12 @@ class _TeacherLocationScreenState extends State { ); } + /// 넓은 화면(웹 데스크톱)에서 내용이 양옆으로 늘어지지 않게 가운데 최대 560 폭으로 맞춘다. + double _sidePad(BuildContext context) { + final width = MediaQuery.of(context).size.width; + return ((width - 560) / 2).clamp(16.0, double.infinity); + } + @override Widget build(BuildContext context) { return ListenableBuilder( @@ -91,7 +97,12 @@ class _TeacherLocationScreenState extends State { : RefreshIndicator( onRefresh: _controller.fetchReceivedCalls, child: ListView( - padding: const EdgeInsets.fromLTRB(16, 0, 16, 16), + padding: EdgeInsets.fromLTRB( + _sidePad(context), + 0, + _sidePad(context), + 16, + ), children: [ const Center(child: TitlePill('내 위치 알리기')), const SizedBox(height: 16),