Przeglądaj źródła

Make utility function available publicly

Vishnu Mohandas 4 lat temu
rodzic
commit
0f33fb750c
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      lib/utils/date_time_util.dart

+ 2 - 2
lib/utils/date_time_util.dart

@@ -159,7 +159,7 @@ Widget getDayWidget(int timestamp) {
     padding: const EdgeInsets.fromLTRB(10, 8, 0, 10),
     padding: const EdgeInsets.fromLTRB(10, 8, 0, 10),
     alignment: Alignment.centerLeft,
     alignment: Alignment.centerLeft,
     child: Text(
     child: Text(
-      _getDayTitle(timestamp),
+      getDayTitle(timestamp),
       style: TextStyle(
       style: TextStyle(
         fontSize: 14,
         fontSize: 14,
         color: Colors.white.withOpacity(0.85),
         color: Colors.white.withOpacity(0.85),
@@ -168,7 +168,7 @@ Widget getDayWidget(int timestamp) {
   );
   );
 }
 }
 
 
-String _getDayTitle(int timestamp) {
+String getDayTitle(int timestamp) {
   final date = DateTime.fromMicrosecondsSinceEpoch(timestamp);
   final date = DateTime.fromMicrosecondsSinceEpoch(timestamp);
   final now = DateTime.now();
   final now = DateTime.now();
   var title = getDayAndMonth(date);
   var title = getDayAndMonth(date);