Fakultas Ilmu Komputer UI

Commit afa33617 authored by Tsamara Esperanti Erwin's avatar Tsamara Esperanti Erwin
Browse files

[CHORES] Add end date on detail program UI

parent af299c49
Pipeline #62151 passed with stages
in 7 minutes and 12 seconds
......@@ -70,12 +70,14 @@ class DetailProgram extends StatelessWidget {
_DeskripsiRow(
icon: Icons.calendar_today,
label:
'${formatDate(program.startDateTime)}'),
'${formatDate(program.startDateTime)}'
', ${formatTime(program.startDateTime)} WIB -'),
if (program.endDateTime != null)
_DeskripsiRow(
icon: Icons.schedule,
label:
'${formatTime(program.startDateTime)}',
'${formatDate(program.endDateTime)}'
', ${formatTime(program.endDateTime)} WIB',
),
if (program.location != null &&
program.location != '')
......@@ -411,7 +413,7 @@ class _ButtonDownloadNote extends StatelessWidget {
class _DeskripsiRow extends StatelessWidget {
const _DeskripsiRow({
Key key,
@required this.icon,
this.icon,
@required this.label,
}) : super(key: key);
......@@ -429,6 +431,7 @@ class _DeskripsiRow extends StatelessWidget {
child: Icon(
icon,
color: Theme.of(context).primaryColor,
size: 18,
),
),
),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment