Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [

{
"name": "on_time_front",
"request": "launch",
Expand All @@ -14,7 +13,6 @@
".env/debug.env",
"--web-port",
"58102"

]
},
{
Expand Down
128 changes: 65 additions & 63 deletions lib/presentation/alarm/screens/schedule_start_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:go_router/go_router.dart';
import 'package:on_time_front/domain/entities/schedule_entity.dart';
import 'package:on_time_front/presentation/shared/components/button.dart';
import 'package:on_time_front/presentation/shared/components/modal_button.dart';
import 'package:on_time_front/presentation/shared/components/modal_component.dart';
import 'package:on_time_front/presentation/shared/components/custom_alert_dialog.dart';

class ScheduleStartScreen extends StatefulWidget {
final ScheduleEntity schedule;
Expand All @@ -32,76 +32,78 @@ class _ScheduleStartScreenState extends State<ScheduleStartScreen> {

@override
Widget build(BuildContext context) {
return Scaffold(
body: Stack(
children: [
Column(
children: [
Padding(
padding: const EdgeInsets.only(top: 60),
child: Center(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Text(
widget.schedule.scheduleName,
style: const TextStyle(
fontSize: 40,
fontWeight: FontWeight.bold,
color: Color(0xff5C79FB),
return SafeArea(
child: Scaffold(
body: Stack(
children: [
Column(
children: [
Padding(
padding: const EdgeInsets.only(top: 60),
child: Center(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Text(
widget.schedule.scheduleName,
style: const TextStyle(
fontSize: 40,
fontWeight: FontWeight.bold,
color: Color(0xff5C79FB),
),
),
),
const SizedBox(height: 8),
Text(
widget.schedule.place.placeName,
style: const TextStyle(
fontSize: 25,
fontWeight: FontWeight.bold,
const SizedBox(height: 8),
Text(
widget.schedule.place.placeName,
style: const TextStyle(
fontSize: 25,
fontWeight: FontWeight.bold,
),
textAlign: TextAlign.center,
),
textAlign: TextAlign.center,
),
const SizedBox(height: 15),
Text(
'지금 준비 시작 안하면 늦어요!',
style: const TextStyle(
fontSize: 15,
const SizedBox(height: 15),
Text(
'지금 준비 시작 안하면 늦어요!',
style: const TextStyle(
fontSize: 15,
),
textAlign: TextAlign.center,
),
textAlign: TextAlign.center,
),
Padding(
padding: const EdgeInsets.only(top: 50),
child: SvgPicture.asset(
'characters/character.svg',
package: 'assets',
width: 204,
height: 269,
Padding(
padding: const EdgeInsets.only(top: 50),
child: SvgPicture.asset(
'characters/character.svg',
package: 'assets',
width: 204,
height: 269,
),
),
),
],
],
),
),
),
),
const Spacer(),
Padding(
padding: const EdgeInsets.only(bottom: 30),
child: Button(
text: '준비 시작',
onPressed: () async {
context.go('/alarmScreen', extra: widget.schedule);
},
const Spacer(),
Padding(
padding: const EdgeInsets.only(bottom: 30),
child: Button(
text: '준비 시작',
onPressed: () async {
context.go('/alarmScreen', extra: widget.schedule);
},
),
),
],
),
Positioned(
top: 10,
right: 10,
child: IconButton(
icon: const Icon(Icons.close),
onPressed: () => _showModal(context),
),
],
),
Positioned(
top: 10,
right: 10,
child: IconButton(
icon: const Icon(Icons.close),
onPressed: () => _showModal(context),
),
),
],
],
),
),
);
}
Expand All @@ -110,7 +112,7 @@ class _ScheduleStartScreenState extends State<ScheduleStartScreen> {
class _ScheduleStartScreenModal extends StatelessWidget {
@override
Widget build(BuildContext context) {
return ModalComponent(
return CustomAlertDialog(
title: const Text(
'정말 나가시겠어요?',
),
Expand Down
Loading