Skip to content

Instantly share code, notes, and snippets.

@TahaTesser
TahaTesser / Flutter Network.md
Last active February 18, 2025 22:28
A collection of active Flutter YouTube content creators, newsletters and blogs, personalities, and platforms. If you've suggestions for active content creators, please comment below.
@jtmuller5
jtmuller5 / date_utils.dart
Created October 25, 2024 14:28
DateTime extension for formatting dates seven ways to Sunday ("EEEE") using the intl library
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"
import 'package:flutter/cupertino.dart' show CupertinoPageRoute;
import 'package:flutter/material.dart';
void main() {
runApp(
MaterialApp(
home: HomePage(),
),
);
}