flutter_daylight_savings 1.2.1 copy "flutter_daylight_savings: ^1.2.1" to clipboard
flutter_daylight_savings: ^1.2.1 copied to clipboard

Get upcoming daylight savings transitions from the system

pub package

Flutter Daylight Savings #

Get upcoming daylight savings transitions from the operating system

No Dependencies #

FlutterDaylightSavings has zero dependencies besides Flutter, Android, iOS, and MacOS themselves.

Usage #

// class DstTransition {
//  final int unixtime; // in utc
//  final int localOffset; // in minutes
//}

List<DstTransition> transitions = await FlutterDaylightSavings.getNextTransitions(count: 50);

Example App #

Enable the platforms you need.

cd ./example                      
flutter config --enable-macos-desktop                                                      
flutter config --enable-android 
flutter config --enable-ios 
flutter create .
flutter run

⭐ Stars ⭐ #

Please star this repo & on pub.dev. We all benefit from having a larger community.

2
likes
140
points
38
downloads

Publisher

verified publisherjamcorder.com

Weekly Downloads

Get upcoming daylight savings transitions from the system

Repository (GitHub)

Documentation

API reference

License

Unlicense (license)

Dependencies

flutter

More

Packages that depend on flutter_daylight_savings