|
@@ -1,6 +1,7 @@
|
|
|
import 'package:flutter/material.dart';
|
|
|
import 'package:go_router/go_router.dart';
|
|
|
import 'package:namer_app/data.dart';
|
|
|
+import 'package:date_format/date_format.dart';
|
|
|
|
|
|
class ListPage extends StatelessWidget {
|
|
|
const ListPage({Key? key}) : super(key: key);
|
|
@@ -13,8 +14,8 @@ class ListPage extends StatelessWidget {
|
|
|
automaticallyImplyLeading: false,
|
|
|
toolbarHeight: 44,
|
|
|
title: Text(
|
|
|
- // date,
|
|
|
- '${date.hour}:${date.minute}',
|
|
|
+ date,
|
|
|
+ // '${date.hour}:${date.minute}',
|
|
|
style: TextStyle(color: Colors.white, fontSize: 15),
|
|
|
),
|
|
|
actions: [
|
|
@@ -118,9 +119,8 @@ class Data {
|
|
|
Data({required this.type, required this.color, required this.image});
|
|
|
}
|
|
|
|
|
|
-// DateTime now = DateTime.now();
|
|
|
-// String date = DateFormat('kk:mm').format(now);
|
|
|
-var date = DateTime.now();
|
|
|
+var date = formatDate(DateTime.now(), [HH, ':', nn]);
|
|
|
+// var date = DateTime.now();
|
|
|
|
|
|
class AvailableMenu extends StatelessWidget {
|
|
|
const AvailableMenu({
|