time_picker_with_timezone 0.1.0

SDKflutter
Platformandroidioswindowslinuxmacosweb

TimePicker with TimeZoneSelector.

TimePickerWithTimezone

pub.dev github likes popularity pub points license

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

showTimeWithTimeZonePicker(
    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