This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:intl/intl.dart'; | |
// https://pub.dev/documentation/intl/latest/intl/DateFormat-class.html | |
extension DateTimeFormattingExtensions on DateTime { | |
// Existing methods | |
String get day => DateFormat('d').format(this); // e.g., "6" | |
String get abbrWeekday => DateFormat('E').format(this); // e.g., "Thu" | |
String get weekday => DateFormat('EEEE').format(this); // e.g., "Thursday" | |
String get abbrStandaloneMonth => DateFormat('LLL').format(this); // e.g., "Jun" | |
String get standaloneMonth => DateFormat('LLLL').format(this); // e.g., "June" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/cupertino.dart' show CupertinoPageRoute; | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp( | |
MaterialApp( | |
home: HomePage(), | |
), | |
); | |
} |