Skip to content

Commit 223c1d8

Browse files
committed
feat: change home screen design into version without punc score
1 parent 518baaf commit 223c1d8

1 file changed

Lines changed: 57 additions & 4 deletions

File tree

lib/presentation/home/screens/home_screen.dart

Lines changed: 57 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import 'package:flutter_bloc/flutter_bloc.dart';
99
import 'package:on_time_front/presentation/home/components/week_calendar.dart';
1010
import 'package:on_time_front/presentation/shared/components/arc_indicator.dart';
1111
import 'package:on_time_front/presentation/shared/constants/app_colors.dart';
12+
import 'package:on_time_front/presentation/shared/theme/theme.dart';
1213

1314
class HomeScreen extends StatefulWidget {
1415
const HomeScreen({super.key});
@@ -36,14 +37,15 @@ class _HomeScreenState extends State<HomeScreen> {
3637
child: BlocBuilder<WeeklySchedulesBloc, WeeklySchedulesState>(
3738
builder: (context, state) {
3839
return Container(
39-
color: AppColors.white,
40+
color: colorScheme.primary,
4041
child: Column(
4142
children: [
42-
SizedBox(height: 58.0),
43+
SizedBox(height: 48.0),
4344
Stack(
4445
alignment: Alignment.bottomCenter,
4546
children: [
46-
_PunctualityIndicator(score: score),
47+
// _PunctualityIndicator(score: score),
48+
_LobbyCharacter(),
4749
todaysScheduleOverlayBuilder(state),
4850
],
4951
),
@@ -195,6 +197,56 @@ class _WeekCalendar extends StatelessWidget {
195197
}
196198
}
197199

200+
// 성실도 점수 제거한 캐릭터 위젯
201+
class _LobbyCharacter extends StatelessWidget {
202+
const _LobbyCharacter();
203+
204+
@override
205+
Widget build(BuildContext context) {
206+
return SizedBox(
207+
child: Column(
208+
children: [
209+
Text(
210+
'작은 준비가 큰 여유를 만들어요',
211+
style: TextStyle(
212+
fontSize: 18,
213+
fontWeight: FontWeight.w500,
214+
color: colorScheme.surface,
215+
),
216+
),
217+
SizedBox(
218+
height: 12,
219+
),
220+
Stack(
221+
alignment: Alignment.center,
222+
children: [
223+
// 그림자 원
224+
Positioned(
225+
bottom: -1,
226+
child: ClipOval(
227+
child: Container(
228+
width: 147,
229+
height: 24,
230+
color: Color(0xff3D54BC),
231+
),
232+
),
233+
),
234+
_Character(),
235+
SizedBox(
236+
height: 20,
237+
)
238+
],
239+
),
240+
SizedBox(
241+
height: 40,
242+
)
243+
],
244+
),
245+
);
246+
}
247+
}
248+
249+
// 성실도 지표 위젯
198250
class _PunctualityIndicator extends StatelessWidget {
199251
const _PunctualityIndicator({
200252
required this.score,
@@ -302,7 +354,8 @@ class _Character extends StatelessWidget {
302354
@override
303355
Widget build(BuildContext context) {
304356
return SizedBox(
305-
height: 270.3,
357+
width: 174.42,
358+
height: 251,
306359
child: SvgPicture.asset(
307360
'characters/character.svg',
308361
package: 'assets',

0 commit comments

Comments
 (0)