Skip to content

Commit

Permalink
Сделал отображение даты в зачётке (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
KriseevM authored May 11, 2024
1 parent 72fe5c7 commit 4c64b45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/ui/views/main_page/grades/grades.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
import 'package:unn_mobile/core/models/mark_by_subject.dart';
import 'package:unn_mobile/core/viewmodels/grades_screen_view_model.dart';
import 'package:unn_mobile/ui/views/base_view.dart';
Expand Down Expand Up @@ -92,7 +93,7 @@ class _GradesScreenViewState extends State<GradesScreenView> {
child: Padding(
padding: EdgeInsets.all(8.0),
child: Text(
'Вид контроля',
'Дата',
textAlign: TextAlign.center,
),
),
Expand Down Expand Up @@ -124,7 +125,8 @@ class _GradesScreenViewState extends State<GradesScreenView> {
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Text(
row.controlType,
DateFormat.yMd('ru_RU')
.format(row.date),
textAlign: TextAlign.center,
),
),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: unn_mobile
description: A mobile application for UNN Portal website
publish_to: 'none'

version: 0.2.2+193
version: 0.2.2+194

environment:
sdk: '>=3.1.2 <4.0.0'
Expand Down

0 comments on commit 4c64b45

Please sign in to comment.