time_picker_with_timezone 0.0.3 copy "time_picker_with_timezone: ^0.0.3" to clipboard
time_picker_with_timezone: ^0.0.3 copied to clipboard

TimePicker with TimeZoneSelector.

AnimatedToggleSwitch #

pub.dev github likes popularity pub points license

buy me a coffee

If you like this package, please like it on pub.dev and star it on GitHub. #

English | 中文

Features #

Adding time zone selection to the official Flutter time_picker component.

Screenshots #

Select time

Enter time

Choose timezone type

Choose timezone

Getting started #

flutter pub add time_picker_with_timezone

Usage #

showCustomTimePicker(
    context: context,
    initialTime: TimeOfDay.now(),
    // enableTimeZone: true,
    // timeZoneShowType: TimeZoneShowType.nameAndOffset,
    // initTimeZoneType: TimeZoneType.fixedTime,
    // initTimeZoneData: const TimeZoneData(name: "Asia/Shanghai", abbreviation: "CST", offset: 8, isDst: false),
    // customTimeZoneDataList: const [
    //   TimeZoneData(name: "Asia/Shanghai", abbreviation: "CST", offset: 8, isDst: false),
    //   TimeZoneData(name: "Africa/Algiers", abbreviation: "CET", offset: 1, isDst: false),
    //   TimeZoneData(name: "America/Adak", abbreviation: "HST", offset: -10, isDst: false),
    // ],
    // timeZoneHelpIcon: const Icon(Icons.help),
    // timeZoneHelpPressed: () {
    //   print('timeZoneHelpPressed');
    // },
    // timeZoneTypeTitle: "Time zone setting",
    // fixedTimeTitle: "Fixed time",
    // fixedTimeSubTitle: "Time does not vary from time to time",
    // timeZoneTimeTitle: "Time zone time",
    // timeZoneSearchIcon: const Icon(Icons.search_rounded),
    // timeZoneSearchHint: "Search time zone",
    // timeZoneSearchHintStyle: const TextStyle(fontSize: 16),
    // removeFromHistoryTitle: "remove select history",
    // removeFromHistoryContent: "When this history is removed, the top placement is canceled.",
).then((timeWithTimeZone) {
    print(timeWithTimeZone);
});

Check out the example app to get the full code for the above examples.

About Me #

Support #

  • If you like this package, please like it on pub.dev and star it on GitHub.

License #

5
likes
0
points
42
downloads

Publisher

unverified uploader

Weekly Downloads

TimePicker with TimeZoneSelector.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, shared_preferences, timezone

More

Packages that depend on time_picker_with_timezone