-
Notifications
You must be signed in to change notification settings - Fork 0
/
Diary_View.dart
58 lines (53 loc) · 1.43 KB
/
Diary_View.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import 'package:flutter/material.dart';
import 'package:date_format/date_format.dart';
import 'Analysis_Today.dart';
class Diary extends StatelessWidget {
const Diary({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Align(
alignment: Alignment.centerLeft,
child: Column(
children: [
Text(
formatDate(DateTime.now(), ['20',yy, '-', M, '-', d]),
style: const TextStyle(
fontSize: 25.0,
),
),
const Text(
"일기제목",
textAlign: TextAlign.center,
overflow: TextOverflow.ellipsis,
style: TextStyle(fontWeight: FontWeight.bold),
),
const Text(
"일기내용",
textAlign: TextAlign.center,
overflow: TextOverflow.ellipsis,
),
],
),
),
]);
}
}
class DiaryView extends StatelessWidget {
const DiaryView ({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text('Dear My Diary')),
body: Column(
children: <Widget>[
const Diary(),
Expanded(child: AnalysisToday()),
],
),
);
}
}