Skip to content

Commit

Permalink
✨Feat: 일자별 앱바
Browse files Browse the repository at this point in the history
  • Loading branch information
seochan99 committed Feb 18, 2024
1 parent c4a8536 commit 5f7a95b
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions lib/views/study/date_study_screen.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'package:earlips/views/base/default_back_appbar.dart';
import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
// ViewModel import 경로는 실제 프로젝트 구조에 따라 달라질 수 있습니다.
Expand All @@ -13,14 +14,11 @@ class DateStudyScreen extends StatelessWidget {
final sessions = viewModel.getSessions();

return Scaffold(
appBar: AppBar(
title: Text(DateFormat('yyyy/MM/dd').format(date),
style: const TextStyle(
color: Colors.black,
fontSize: 18,
fontWeight: FontWeight.w500,
)), // 동적으로 날짜를 표시
centerTitle: true,
appBar: PreferredSize(
preferredSize: const Size.fromHeight(kToolbarHeight),
child: DefaultBackAppbar(
title: DateFormat('yyyy/MM/dd').format(date),
),
),
body: ListView.separated(
padding: const EdgeInsets.fromLTRB(25, 20, 25, 20),
Expand Down

0 comments on commit 5f7a95b

Please sign in to comment.