|
@@ -1,6 +1,7 @@
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:go_router/go_router.dart';
|
|
import 'package:go_router/go_router.dart';
|
|
import 'package:namer_app/data.dart';
|
|
import 'package:namer_app/data.dart';
|
|
|
|
+import 'package:date_format/date_format.dart';
|
|
|
|
|
|
class ListPage extends StatelessWidget {
|
|
class ListPage extends StatelessWidget {
|
|
const ListPage({Key? key}) : super(key: key);
|
|
const ListPage({Key? key}) : super(key: key);
|
|
@@ -13,8 +14,8 @@ class ListPage extends StatelessWidget {
|
|
automaticallyImplyLeading: false,
|
|
automaticallyImplyLeading: false,
|
|
toolbarHeight: 44,
|
|
toolbarHeight: 44,
|
|
title: Text(
|
|
title: Text(
|
|
- // date,
|
|
|
|
- '${date.hour}:${date.minute}',
|
|
|
|
|
|
+ date,
|
|
|
|
+ // '${date.hour}:${date.minute}',
|
|
style: TextStyle(color: Colors.white, fontSize: 15),
|
|
style: TextStyle(color: Colors.white, fontSize: 15),
|
|
),
|
|
),
|
|
actions: [
|
|
actions: [
|
|
@@ -118,9 +119,8 @@ class Data {
|
|
Data({required this.type, required this.color, required this.image});
|
|
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 {
|
|
class AvailableMenu extends StatelessWidget {
|
|
const AvailableMenu({
|
|
const AvailableMenu({
|