blob: d460ed144bb73fde7a7e44264cd468a1ff18864a [file] [log] [blame]
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
class _Timezone {
/// The ICU standard zone ID.
final String zoneId;
const _Timezone({this.zoneId});
}
// Note: these timezones were generated from a script using ICU data.
// These should ideally be loaded ad hoc or stored somewhere.
const List<_Timezone> _kTimeZones = const <_Timezone>[
const _Timezone(zoneId: 'US/Eastern'),
const _Timezone(zoneId: 'US/Pacific'),
const _Timezone(zoneId: 'Europe/Paris'),
const _Timezone(zoneId: 'Africa/Abidjan'),
const _Timezone(zoneId: 'Africa/Accra'),
const _Timezone(zoneId: 'Africa/Addis_Ababa'),
const _Timezone(zoneId: 'Africa/Algiers'),
const _Timezone(zoneId: 'Africa/Asmara'),
const _Timezone(zoneId: 'Africa/Asmera'),
const _Timezone(zoneId: 'Africa/Bamako'),
const _Timezone(zoneId: 'Africa/Bangui'),
const _Timezone(zoneId: 'Africa/Banjul'),
const _Timezone(zoneId: 'Africa/Bissau'),
const _Timezone(zoneId: 'Africa/Blantyre'),
const _Timezone(zoneId: 'Africa/Brazzaville'),
const _Timezone(zoneId: 'Africa/Bujumbura'),
const _Timezone(zoneId: 'Africa/Cairo'),
const _Timezone(zoneId: 'Africa/Casablanca'),
const _Timezone(zoneId: 'Africa/Ceuta'),
const _Timezone(zoneId: 'Africa/Conakry'),
const _Timezone(zoneId: 'Africa/Dakar'),
const _Timezone(zoneId: 'Africa/Dar_es_Salaam'),
const _Timezone(zoneId: 'Africa/Djibouti'),
const _Timezone(zoneId: 'Africa/Douala'),
const _Timezone(zoneId: 'Africa/El_Aaiun'),
const _Timezone(zoneId: 'Africa/Freetown'),
const _Timezone(zoneId: 'Africa/Gaborone'),
const _Timezone(zoneId: 'Africa/Harare'),
const _Timezone(zoneId: 'Africa/Johannesburg'),
const _Timezone(zoneId: 'Africa/Kampala'),
const _Timezone(zoneId: 'Africa/Khartoum'),
const _Timezone(zoneId: 'Africa/Kigali'),
const _Timezone(zoneId: 'Africa/Kinshasa'),
const _Timezone(zoneId: 'Africa/Lagos'),
const _Timezone(zoneId: 'Africa/Libreville'),
const _Timezone(zoneId: 'Africa/Lome'),
const _Timezone(zoneId: 'Africa/Luanda'),
const _Timezone(zoneId: 'Africa/Lubumbashi'),
const _Timezone(zoneId: 'Africa/Lusaka'),
const _Timezone(zoneId: 'Africa/Malabo'),
const _Timezone(zoneId: 'Africa/Maputo'),
const _Timezone(zoneId: 'Africa/Maseru'),
const _Timezone(zoneId: 'Africa/Mbabane'),
const _Timezone(zoneId: 'Africa/Mogadishu'),
const _Timezone(zoneId: 'Africa/Monrovia'),
const _Timezone(zoneId: 'Africa/Nairobi'),
const _Timezone(zoneId: 'Africa/Ndjamena'),
const _Timezone(zoneId: 'Africa/Niamey'),
const _Timezone(zoneId: 'Africa/Nouakchott'),
const _Timezone(zoneId: 'Africa/Ouagadougou'),
const _Timezone(zoneId: 'Africa/Porto-Novo'),
const _Timezone(zoneId: 'Africa/Sao_Tome'),
const _Timezone(zoneId: 'Africa/Timbuktu'),
const _Timezone(zoneId: 'Africa/Tripoli'),
const _Timezone(zoneId: 'Africa/Tunis'),
const _Timezone(zoneId: 'Africa/Windhoek'),
const _Timezone(zoneId: 'America/Adak'),
const _Timezone(zoneId: 'America/Anchorage'),
const _Timezone(zoneId: 'America/Anguilla'),
const _Timezone(zoneId: 'America/Antigua'),
const _Timezone(zoneId: 'America/Araguaina'),
const _Timezone(zoneId: 'America/Argentina/Buenos_Aires'),
const _Timezone(zoneId: 'America/Argentina/Catamarca'),
const _Timezone(zoneId: 'America/Argentina/ComodRivadavia'),
const _Timezone(zoneId: 'America/Argentina/Cordoba'),
const _Timezone(zoneId: 'America/Argentina/Jujuy'),
const _Timezone(zoneId: 'America/Argentina/La_Rioja'),
const _Timezone(zoneId: 'America/Argentina/Mendoza'),
const _Timezone(zoneId: 'America/Argentina/Rio_Gallegos'),
const _Timezone(zoneId: 'America/Argentina/San_Juan'),
const _Timezone(zoneId: 'America/Argentina/Tucuman'),
const _Timezone(zoneId: 'America/Argentina/Ushuaia'),
const _Timezone(zoneId: 'America/Aruba'),
const _Timezone(zoneId: 'America/Asuncion'),
const _Timezone(zoneId: 'America/Atikokan'),
const _Timezone(zoneId: 'America/Atka'),
const _Timezone(zoneId: 'America/Bahia'),
const _Timezone(zoneId: 'America/Barbados'),
const _Timezone(zoneId: 'America/Belem'),
const _Timezone(zoneId: 'America/Belize'),
const _Timezone(zoneId: 'America/Blanc-Sablon'),
const _Timezone(zoneId: 'America/Boa_Vista'),
const _Timezone(zoneId: 'America/Bogota'),
const _Timezone(zoneId: 'America/Boise'),
const _Timezone(zoneId: 'America/Buenos_Aires'),
const _Timezone(zoneId: 'America/Cambridge_Bay'),
const _Timezone(zoneId: 'America/Campo_Grande'),
const _Timezone(zoneId: 'America/Cancun'),
const _Timezone(zoneId: 'America/Caracas'),
const _Timezone(zoneId: 'America/Catamarca'),
const _Timezone(zoneId: 'America/Cayenne'),
const _Timezone(zoneId: 'America/Cayman'),
const _Timezone(zoneId: 'America/Chicago'),
const _Timezone(zoneId: 'America/Chihuahua'),
const _Timezone(zoneId: 'America/Coral_Harbour'),
const _Timezone(zoneId: 'America/Cordoba'),
const _Timezone(zoneId: 'America/Costa_Rica'),
const _Timezone(zoneId: 'America/Cuiaba'),
const _Timezone(zoneId: 'America/Curacao'),
const _Timezone(zoneId: 'America/Danmarkshavn'),
const _Timezone(zoneId: 'America/Dawson'),
const _Timezone(zoneId: 'America/Dawson_Creek'),
const _Timezone(zoneId: 'America/Denver'),
const _Timezone(zoneId: 'America/Detroit'),
const _Timezone(zoneId: 'America/Dominica'),
const _Timezone(zoneId: 'America/Edmonton'),
const _Timezone(zoneId: 'America/Eirunepe'),
const _Timezone(zoneId: 'America/El_Salvador'),
const _Timezone(zoneId: 'America/Ensenada'),
const _Timezone(zoneId: 'America/Fort_Wayne'),
const _Timezone(zoneId: 'America/Fortaleza'),
const _Timezone(zoneId: 'America/Glace_Bay'),
const _Timezone(zoneId: 'America/Godthab'),
const _Timezone(zoneId: 'America/Goose_Bay'),
const _Timezone(zoneId: 'America/Grand_Turk'),
const _Timezone(zoneId: 'America/Grenada'),
const _Timezone(zoneId: 'America/Guadeloupe'),
const _Timezone(zoneId: 'America/Guatemala'),
const _Timezone(zoneId: 'America/Guayaquil'),
const _Timezone(zoneId: 'America/Guyana'),
const _Timezone(zoneId: 'America/Halifax'),
const _Timezone(zoneId: 'America/Havana'),
const _Timezone(zoneId: 'America/Hermosillo'),
const _Timezone(zoneId: 'America/Indiana/Indianapolis'),
const _Timezone(zoneId: 'America/Indiana/Knox'),
const _Timezone(zoneId: 'America/Indiana/Marengo'),
const _Timezone(zoneId: 'America/Indiana/Petersburg'),
const _Timezone(zoneId: 'America/Indiana/Tell_City'),
const _Timezone(zoneId: 'America/Indiana/Vevay'),
const _Timezone(zoneId: 'America/Indiana/Vincennes'),
const _Timezone(zoneId: 'America/Indiana/Winamac'),
const _Timezone(zoneId: 'America/Indianapolis'),
const _Timezone(zoneId: 'America/Inuvik'),
const _Timezone(zoneId: 'America/Iqaluit'),
const _Timezone(zoneId: 'America/Jamaica'),
const _Timezone(zoneId: 'America/Jujuy'),
const _Timezone(zoneId: 'America/Juneau'),
const _Timezone(zoneId: 'America/Kentucky/Louisville'),
const _Timezone(zoneId: 'America/Kentucky/Monticello'),
const _Timezone(zoneId: 'America/Knox_IN'),
const _Timezone(zoneId: 'America/La_Paz'),
const _Timezone(zoneId: 'America/Lima'),
const _Timezone(zoneId: 'America/Los_Angeles'),
const _Timezone(zoneId: 'America/Louisville'),
const _Timezone(zoneId: 'America/Maceio'),
const _Timezone(zoneId: 'America/Managua'),
const _Timezone(zoneId: 'America/Manaus'),
const _Timezone(zoneId: 'America/Marigot'),
const _Timezone(zoneId: 'America/Martinique'),
const _Timezone(zoneId: 'America/Mazatlan'),
const _Timezone(zoneId: 'America/Mendoza'),
const _Timezone(zoneId: 'America/Menominee'),
const _Timezone(zoneId: 'America/Merida'),
const _Timezone(zoneId: 'America/Mexico_City'),
const _Timezone(zoneId: 'America/Miquelon'),
const _Timezone(zoneId: 'America/Moncton'),
const _Timezone(zoneId: 'America/Monterrey'),
const _Timezone(zoneId: 'America/Montevideo'),
const _Timezone(zoneId: 'America/Montreal'),
const _Timezone(zoneId: 'America/Montserrat'),
const _Timezone(zoneId: 'America/Nassau'),
const _Timezone(zoneId: 'America/New_York'),
const _Timezone(zoneId: 'America/Nipigon'),
const _Timezone(zoneId: 'America/Nome'),
const _Timezone(zoneId: 'America/Noronha'),
const _Timezone(zoneId: 'America/North_Dakota/Center'),
const _Timezone(zoneId: 'America/North_Dakota/New_Salem'),
const _Timezone(zoneId: 'America/Panama'),
const _Timezone(zoneId: 'America/Pangnirtung'),
const _Timezone(zoneId: 'America/Paramaribo'),
const _Timezone(zoneId: 'America/Phoenix'),
const _Timezone(zoneId: 'America/Port-au-Prince'),
const _Timezone(zoneId: 'America/Port_of_Spain'),
const _Timezone(zoneId: 'America/Porto_Acre'),
const _Timezone(zoneId: 'America/Porto_Velho'),
const _Timezone(zoneId: 'America/Puerto_Rico'),
const _Timezone(zoneId: 'America/Rainy_River'),
const _Timezone(zoneId: 'America/Rankin_Inlet'),
const _Timezone(zoneId: 'America/Recife'),
const _Timezone(zoneId: 'America/Regina'),
const _Timezone(zoneId: 'America/Resolute'),
const _Timezone(zoneId: 'America/Rio_Branco'),
const _Timezone(zoneId: 'America/Rosario'),
const _Timezone(zoneId: 'America/Santiago'),
const _Timezone(zoneId: 'America/Santo_Domingo'),
const _Timezone(zoneId: 'America/Sao_Paulo'),
const _Timezone(zoneId: 'America/Scoresbysund'),
const _Timezone(zoneId: 'America/Shiprock'),
const _Timezone(zoneId: 'America/St_Barthelemy'),
const _Timezone(zoneId: 'America/St_Johns'),
const _Timezone(zoneId: 'America/St_Kitts'),
const _Timezone(zoneId: 'America/St_Lucia'),
const _Timezone(zoneId: 'America/St_Thomas'),
const _Timezone(zoneId: 'America/St_Vincent'),
const _Timezone(zoneId: 'America/Swift_Current'),
const _Timezone(zoneId: 'America/Tegucigalpa'),
const _Timezone(zoneId: 'America/Thule'),
const _Timezone(zoneId: 'America/Thunder_Bay'),
const _Timezone(zoneId: 'America/Tijuana'),
const _Timezone(zoneId: 'America/Toronto'),
const _Timezone(zoneId: 'America/Tortola'),
const _Timezone(zoneId: 'America/Vancouver'),
const _Timezone(zoneId: 'America/Virgin'),
const _Timezone(zoneId: 'America/Whitehorse'),
const _Timezone(zoneId: 'America/Winnipeg'),
const _Timezone(zoneId: 'America/Yakutat'),
const _Timezone(zoneId: 'America/Yellowknife'),
const _Timezone(zoneId: 'Antarctica/Casey'),
const _Timezone(zoneId: 'Antarctica/Davis'),
const _Timezone(zoneId: 'Antarctica/DumontDUrville'),
const _Timezone(zoneId: 'Antarctica/Mawson'),
const _Timezone(zoneId: 'Antarctica/McMurdo'),
const _Timezone(zoneId: 'Antarctica/Palmer'),
const _Timezone(zoneId: 'Antarctica/Rothera'),
const _Timezone(zoneId: 'Antarctica/South_Pole'),
const _Timezone(zoneId: 'Antarctica/Syowa'),
const _Timezone(zoneId: 'Antarctica/Vostok'),
const _Timezone(zoneId: 'Arctic/Longyearbyen'),
const _Timezone(zoneId: 'Asia/Aden'),
const _Timezone(zoneId: 'Asia/Almaty'),
const _Timezone(zoneId: 'Asia/Amman'),
const _Timezone(zoneId: 'Asia/Anadyr'),
const _Timezone(zoneId: 'Asia/Aqtau'),
const _Timezone(zoneId: 'Asia/Aqtobe'),
const _Timezone(zoneId: 'Asia/Ashgabat'),
const _Timezone(zoneId: 'Asia/Ashkhabad'),
const _Timezone(zoneId: 'Asia/Baghdad'),
const _Timezone(zoneId: 'Asia/Bahrain'),
const _Timezone(zoneId: 'Asia/Baku'),
const _Timezone(zoneId: 'Asia/Bangkok'),
const _Timezone(zoneId: 'Asia/Beirut'),
const _Timezone(zoneId: 'Asia/Bishkek'),
const _Timezone(zoneId: 'Asia/Brunei'),
const _Timezone(zoneId: 'Asia/Calcutta'),
const _Timezone(zoneId: 'Asia/Choibalsan'),
const _Timezone(zoneId: 'Asia/Chongqing'),
const _Timezone(zoneId: 'Asia/Chungking'),
const _Timezone(zoneId: 'Asia/Colombo'),
const _Timezone(zoneId: 'Asia/Dacca'),
const _Timezone(zoneId: 'Asia/Damascus'),
const _Timezone(zoneId: 'Asia/Dhaka'),
const _Timezone(zoneId: 'Asia/Dili'),
const _Timezone(zoneId: 'Asia/Dubai'),
const _Timezone(zoneId: 'Asia/Dushanbe'),
const _Timezone(zoneId: 'Asia/Gaza'),
const _Timezone(zoneId: 'Asia/Harbin'),
const _Timezone(zoneId: 'Asia/Hong_Kong'),
const _Timezone(zoneId: 'Asia/Hovd'),
const _Timezone(zoneId: 'Asia/Irkutsk'),
const _Timezone(zoneId: 'Asia/Istanbul'),
const _Timezone(zoneId: 'Asia/Jakarta'),
const _Timezone(zoneId: 'Asia/Jayapura'),
const _Timezone(zoneId: 'Asia/Jerusalem'),
const _Timezone(zoneId: 'Asia/Kabul'),
const _Timezone(zoneId: 'Asia/Kamchatka'),
const _Timezone(zoneId: 'Asia/Karachi'),
const _Timezone(zoneId: 'Asia/Kashgar'),
const _Timezone(zoneId: 'Asia/Katmandu'),
const _Timezone(zoneId: 'Asia/Krasnoyarsk'),
const _Timezone(zoneId: 'Asia/Kuala_Lumpur'),
const _Timezone(zoneId: 'Asia/Kuching'),
const _Timezone(zoneId: 'Asia/Kuwait'),
const _Timezone(zoneId: 'Asia/Macao'),
const _Timezone(zoneId: 'Asia/Macau'),
const _Timezone(zoneId: 'Asia/Magadan'),
const _Timezone(zoneId: 'Asia/Makassar'),
const _Timezone(zoneId: 'Asia/Manila'),
const _Timezone(zoneId: 'Asia/Muscat'),
const _Timezone(zoneId: 'Asia/Nicosia'),
const _Timezone(zoneId: 'Asia/Novosibirsk'),
const _Timezone(zoneId: 'Asia/Omsk'),
const _Timezone(zoneId: 'Asia/Oral'),
const _Timezone(zoneId: 'Asia/Phnom_Penh'),
const _Timezone(zoneId: 'Asia/Pontianak'),
const _Timezone(zoneId: 'Asia/Pyongyang'),
const _Timezone(zoneId: 'Asia/Qatar'),
const _Timezone(zoneId: 'Asia/Qyzylorda'),
const _Timezone(zoneId: 'Asia/Rangoon'),
const _Timezone(zoneId: 'Asia/Riyadh'),
const _Timezone(zoneId: 'Asia/Riyadh87'),
const _Timezone(zoneId: 'Asia/Riyadh88'),
const _Timezone(zoneId: 'Asia/Riyadh89'),
const _Timezone(zoneId: 'Asia/Saigon'),
const _Timezone(zoneId: 'Asia/Sakhalin'),
const _Timezone(zoneId: 'Asia/Samarkand'),
const _Timezone(zoneId: 'Asia/Seoul'),
const _Timezone(zoneId: 'Asia/Shanghai'),
const _Timezone(zoneId: 'Asia/Singapore'),
const _Timezone(zoneId: 'Asia/Taipei'),
const _Timezone(zoneId: 'Asia/Tashkent'),
const _Timezone(zoneId: 'Asia/Tbilisi'),
const _Timezone(zoneId: 'Asia/Tehran'),
const _Timezone(zoneId: 'Asia/Tel_Aviv'),
const _Timezone(zoneId: 'Asia/Thimbu'),
const _Timezone(zoneId: 'Asia/Thimphu'),
const _Timezone(zoneId: 'Asia/Tokyo'),
const _Timezone(zoneId: 'Asia/Ujung_Pandang'),
const _Timezone(zoneId: 'Asia/Ulaanbaatar'),
const _Timezone(zoneId: 'Asia/Ulan_Bator'),
const _Timezone(zoneId: 'Asia/Urumqi'),
const _Timezone(zoneId: 'Asia/Vientiane'),
const _Timezone(zoneId: 'Asia/Vladivostok'),
const _Timezone(zoneId: 'Asia/Yakutsk'),
const _Timezone(zoneId: 'Asia/Yekaterinburg'),
const _Timezone(zoneId: 'Asia/Yerevan'),
const _Timezone(zoneId: 'Atlantic/Azores'),
const _Timezone(zoneId: 'Atlantic/Bermuda'),
const _Timezone(zoneId: 'Atlantic/Canary'),
const _Timezone(zoneId: 'Atlantic/Cape_Verde'),
const _Timezone(zoneId: 'Atlantic/Faeroe'),
const _Timezone(zoneId: 'Atlantic/Faroe'),
const _Timezone(zoneId: 'Atlantic/Jan_Mayen'),
const _Timezone(zoneId: 'Atlantic/Madeira'),
const _Timezone(zoneId: 'Atlantic/Reykjavik'),
const _Timezone(zoneId: 'Atlantic/South_Georgia'),
const _Timezone(zoneId: 'Atlantic/St_Helena'),
const _Timezone(zoneId: 'Atlantic/Stanley'),
const _Timezone(zoneId: 'Australia/ACT'),
const _Timezone(zoneId: 'Australia/Adelaide'),
const _Timezone(zoneId: 'Australia/Brisbane'),
const _Timezone(zoneId: 'Australia/Broken_Hill'),
const _Timezone(zoneId: 'Australia/Canberra'),
const _Timezone(zoneId: 'Australia/Currie'),
const _Timezone(zoneId: 'Australia/Darwin'),
const _Timezone(zoneId: 'Australia/Eucla'),
const _Timezone(zoneId: 'Australia/Hobart'),
const _Timezone(zoneId: 'Australia/LHI'),
const _Timezone(zoneId: 'Australia/Lindeman'),
const _Timezone(zoneId: 'Australia/Lord_Howe'),
const _Timezone(zoneId: 'Australia/Melbourne'),
const _Timezone(zoneId: 'Australia/NSW'),
const _Timezone(zoneId: 'Australia/North'),
const _Timezone(zoneId: 'Australia/Perth'),
const _Timezone(zoneId: 'Australia/Queensland'),
const _Timezone(zoneId: 'Australia/South'),
const _Timezone(zoneId: 'Australia/Sydney'),
const _Timezone(zoneId: 'Australia/Tasmania'),
const _Timezone(zoneId: 'Australia/Victoria'),
const _Timezone(zoneId: 'Australia/West'),
const _Timezone(zoneId: 'Australia/Yancowinna'),
const _Timezone(zoneId: 'Brazil/Acre'),
const _Timezone(zoneId: 'Brazil/DeNoronha'),
const _Timezone(zoneId: 'Brazil/East'),
const _Timezone(zoneId: 'Brazil/West'),
const _Timezone(zoneId: 'CET'),
const _Timezone(zoneId: 'CST6CDT'),
const _Timezone(zoneId: 'Canada/Atlantic'),
const _Timezone(zoneId: 'Canada/Central'),
const _Timezone(zoneId: 'Canada/East-Saskatchewan'),
const _Timezone(zoneId: 'Canada/Eastern'),
const _Timezone(zoneId: 'Canada/Mountain'),
const _Timezone(zoneId: 'Canada/Newfoundland'),
const _Timezone(zoneId: 'Canada/Pacific'),
const _Timezone(zoneId: 'Canada/Saskatchewan'),
const _Timezone(zoneId: 'Canada/Yukon'),
const _Timezone(zoneId: 'Chile/Continental'),
const _Timezone(zoneId: 'Chile/EasterIsland'),
const _Timezone(zoneId: 'Cuba'),
const _Timezone(zoneId: 'EET'),
const _Timezone(zoneId: 'EST'),
const _Timezone(zoneId: 'EST5EDT'),
const _Timezone(zoneId: 'Egypt'),
const _Timezone(zoneId: 'Eire'),
const _Timezone(zoneId: 'Etc/GMT'),
const _Timezone(zoneId: 'Etc/GMT+0'),
const _Timezone(zoneId: 'Etc/GMT+1'),
const _Timezone(zoneId: 'Etc/GMT+10'),
const _Timezone(zoneId: 'Etc/GMT+11'),
const _Timezone(zoneId: 'Etc/GMT+12'),
const _Timezone(zoneId: 'Etc/GMT+2'),
const _Timezone(zoneId: 'Etc/GMT+3'),
const _Timezone(zoneId: 'Etc/GMT+4'),
const _Timezone(zoneId: 'Etc/GMT+5'),
const _Timezone(zoneId: 'Etc/GMT+6'),
const _Timezone(zoneId: 'Etc/GMT+7'),
const _Timezone(zoneId: 'Etc/GMT+8'),
const _Timezone(zoneId: 'Etc/GMT+9'),
const _Timezone(zoneId: 'Etc/GMT-0'),
const _Timezone(zoneId: 'Etc/GMT-1'),
const _Timezone(zoneId: 'Etc/GMT-10'),
const _Timezone(zoneId: 'Etc/GMT-11'),
const _Timezone(zoneId: 'Etc/GMT-12'),
const _Timezone(zoneId: 'Etc/GMT-13'),
const _Timezone(zoneId: 'Etc/GMT-14'),
const _Timezone(zoneId: 'Etc/GMT-2'),
const _Timezone(zoneId: 'Etc/GMT-3'),
const _Timezone(zoneId: 'Etc/GMT-4'),
const _Timezone(zoneId: 'Etc/GMT-5'),
const _Timezone(zoneId: 'Etc/GMT-6'),
const _Timezone(zoneId: 'Etc/GMT-7'),
const _Timezone(zoneId: 'Etc/GMT-8'),
const _Timezone(zoneId: 'Etc/GMT-9'),
const _Timezone(zoneId: 'Etc/GMT0'),
const _Timezone(zoneId: 'Etc/Greenwich'),
const _Timezone(zoneId: 'Etc/UCT'),
const _Timezone(zoneId: 'Etc/UTC'),
const _Timezone(zoneId: 'Etc/Universal'),
const _Timezone(zoneId: 'Etc/Zulu'),
const _Timezone(zoneId: 'Europe/Amsterdam'),
const _Timezone(zoneId: 'Europe/Andorra'),
const _Timezone(zoneId: 'Europe/Athens'),
const _Timezone(zoneId: 'Europe/Belfast'),
const _Timezone(zoneId: 'Europe/Belgrade'),
const _Timezone(zoneId: 'Europe/Berlin'),
const _Timezone(zoneId: 'Europe/Bratislava'),
const _Timezone(zoneId: 'Europe/Brussels'),
const _Timezone(zoneId: 'Europe/Bucharest'),
const _Timezone(zoneId: 'Europe/Budapest'),
const _Timezone(zoneId: 'Europe/Chisinau'),
const _Timezone(zoneId: 'Europe/Copenhagen'),
const _Timezone(zoneId: 'Europe/Dublin'),
const _Timezone(zoneId: 'Europe/Gibraltar'),
const _Timezone(zoneId: 'Europe/Guernsey'),
const _Timezone(zoneId: 'Europe/Helsinki'),
const _Timezone(zoneId: 'Europe/Isle_of_Man'),
const _Timezone(zoneId: 'Europe/Istanbul'),
const _Timezone(zoneId: 'Europe/Jersey'),
const _Timezone(zoneId: 'Europe/Kaliningrad'),
const _Timezone(zoneId: 'Europe/Kiev'),
const _Timezone(zoneId: 'Europe/Lisbon'),
const _Timezone(zoneId: 'Europe/Ljubljana'),
const _Timezone(zoneId: 'Europe/London'),
const _Timezone(zoneId: 'Europe/Luxembourg'),
const _Timezone(zoneId: 'Europe/Madrid'),
const _Timezone(zoneId: 'Europe/Malta'),
const _Timezone(zoneId: 'Europe/Mariehamn'),
const _Timezone(zoneId: 'Europe/Minsk'),
const _Timezone(zoneId: 'Europe/Monaco'),
const _Timezone(zoneId: 'Europe/Moscow'),
const _Timezone(zoneId: 'Europe/Nicosia'),
const _Timezone(zoneId: 'Europe/Oslo'),
const _Timezone(zoneId: 'Europe/Podgorica'),
const _Timezone(zoneId: 'Europe/Prague'),
const _Timezone(zoneId: 'Europe/Riga'),
const _Timezone(zoneId: 'Europe/Rome'),
const _Timezone(zoneId: 'Europe/Samara'),
const _Timezone(zoneId: 'Europe/San_Marino'),
const _Timezone(zoneId: 'Europe/Sarajevo'),
const _Timezone(zoneId: 'Europe/Simferopol'),
const _Timezone(zoneId: 'Europe/Skopje'),
const _Timezone(zoneId: 'Europe/Sofia'),
const _Timezone(zoneId: 'Europe/Stockholm'),
const _Timezone(zoneId: 'Europe/Tallinn'),
const _Timezone(zoneId: 'Europe/Tirane'),
const _Timezone(zoneId: 'Europe/Tiraspol'),
const _Timezone(zoneId: 'Europe/Uzhgorod'),
const _Timezone(zoneId: 'Europe/Vaduz'),
const _Timezone(zoneId: 'Europe/Vatican'),
const _Timezone(zoneId: 'Europe/Vienna'),
const _Timezone(zoneId: 'Europe/Vilnius'),
const _Timezone(zoneId: 'Europe/Volgograd'),
const _Timezone(zoneId: 'Europe/Warsaw'),
const _Timezone(zoneId: 'Europe/Zagreb'),
const _Timezone(zoneId: 'Europe/Zaporozhye'),
const _Timezone(zoneId: 'Europe/Zurich'),
const _Timezone(zoneId: 'Factory'),
const _Timezone(zoneId: 'GB'),
const _Timezone(zoneId: 'GB-Eire'),
const _Timezone(zoneId: 'GMT'),
const _Timezone(zoneId: 'GMT+0'),
const _Timezone(zoneId: 'GMT-0'),
const _Timezone(zoneId: 'GMT0'),
const _Timezone(zoneId: 'Greenwich'),
const _Timezone(zoneId: 'HST'),
const _Timezone(zoneId: 'Hongkong'),
const _Timezone(zoneId: 'Iceland'),
const _Timezone(zoneId: 'Indian/Antananarivo'),
const _Timezone(zoneId: 'Indian/Chagos'),
const _Timezone(zoneId: 'Indian/Christmas'),
const _Timezone(zoneId: 'Indian/Cocos'),
const _Timezone(zoneId: 'Indian/Comoro'),
const _Timezone(zoneId: 'Indian/Kerguelen'),
const _Timezone(zoneId: 'Indian/Mahe'),
const _Timezone(zoneId: 'Indian/Maldives'),
const _Timezone(zoneId: 'Indian/Mauritius'),
const _Timezone(zoneId: 'Indian/Mayotte'),
const _Timezone(zoneId: 'Indian/Reunion'),
const _Timezone(zoneId: 'Iran'),
const _Timezone(zoneId: 'Israel'),
const _Timezone(zoneId: 'Jamaica'),
const _Timezone(zoneId: 'Japan'),
const _Timezone(zoneId: 'Kwajalein'),
const _Timezone(zoneId: 'Libya'),
const _Timezone(zoneId: 'MET'),
const _Timezone(zoneId: 'MST'),
const _Timezone(zoneId: 'MST7MDT'),
const _Timezone(zoneId: 'Mexico/BajaNorte'),
const _Timezone(zoneId: 'Mexico/BajaSur'),
const _Timezone(zoneId: 'Mexico/General'),
const _Timezone(zoneId: 'Mideast/Riyadh87'),
const _Timezone(zoneId: 'Mideast/Riyadh88'),
const _Timezone(zoneId: 'Mideast/Riyadh89'),
const _Timezone(zoneId: 'NZ'),
const _Timezone(zoneId: 'NZ-CHAT'),
const _Timezone(zoneId: 'Navajo'),
const _Timezone(zoneId: 'PRC'),
const _Timezone(zoneId: 'PST8PDT'),
const _Timezone(zoneId: 'Pacific/Apia'),
const _Timezone(zoneId: 'Pacific/Auckland'),
const _Timezone(zoneId: 'Pacific/Chatham'),
const _Timezone(zoneId: 'Pacific/Easter'),
const _Timezone(zoneId: 'Pacific/Efate'),
const _Timezone(zoneId: 'Pacific/Enderbury'),
const _Timezone(zoneId: 'Pacific/Fakaofo'),
const _Timezone(zoneId: 'Pacific/Fiji'),
const _Timezone(zoneId: 'Pacific/Funafuti'),
const _Timezone(zoneId: 'Pacific/Galapagos'),
const _Timezone(zoneId: 'Pacific/Gambier'),
const _Timezone(zoneId: 'Pacific/Guadalcanal'),
const _Timezone(zoneId: 'Pacific/Guam'),
const _Timezone(zoneId: 'Pacific/Honolulu'),
const _Timezone(zoneId: 'Pacific/Johnston'),
const _Timezone(zoneId: 'Pacific/Kiritimati'),
const _Timezone(zoneId: 'Pacific/Kosrae'),
const _Timezone(zoneId: 'Pacific/Kwajalein'),
const _Timezone(zoneId: 'Pacific/Majuro'),
const _Timezone(zoneId: 'Pacific/Marquesas'),
const _Timezone(zoneId: 'Pacific/Midway'),
const _Timezone(zoneId: 'Pacific/Nauru'),
const _Timezone(zoneId: 'Pacific/Niue'),
const _Timezone(zoneId: 'Pacific/Norfolk'),
const _Timezone(zoneId: 'Pacific/Noumea'),
const _Timezone(zoneId: 'Pacific/Pago_Pago'),
const _Timezone(zoneId: 'Pacific/Palau'),
const _Timezone(zoneId: 'Pacific/Pitcairn'),
const _Timezone(zoneId: 'Pacific/Ponape'),
const _Timezone(zoneId: 'Pacific/Port_Moresby'),
const _Timezone(zoneId: 'Pacific/Rarotonga'),
const _Timezone(zoneId: 'Pacific/Saipan'),
const _Timezone(zoneId: 'Pacific/Samoa'),
const _Timezone(zoneId: 'Pacific/Tahiti'),
const _Timezone(zoneId: 'Pacific/Tarawa'),
const _Timezone(zoneId: 'Pacific/Tongatapu'),
const _Timezone(zoneId: 'Pacific/Truk'),
const _Timezone(zoneId: 'Pacific/Wake'),
const _Timezone(zoneId: 'Pacific/Wallis'),
const _Timezone(zoneId: 'Pacific/Yap'),
const _Timezone(zoneId: 'Poland'),
const _Timezone(zoneId: 'Portugal'),
const _Timezone(zoneId: 'ROC'),
const _Timezone(zoneId: 'ROK'),
const _Timezone(zoneId: 'Singapore'),
const _Timezone(zoneId: 'Turkey'),
const _Timezone(zoneId: 'UCT'),
const _Timezone(zoneId: 'US/Alaska'),
const _Timezone(zoneId: 'US/Aleutian'),
const _Timezone(zoneId: 'US/Arizona'),
const _Timezone(zoneId: 'US/Central'),
const _Timezone(zoneId: 'US/East-Indiana'),
const _Timezone(zoneId: 'US/Hawaii'),
const _Timezone(zoneId: 'US/Indiana-Starke'),
const _Timezone(zoneId: 'US/Michigan'),
const _Timezone(zoneId: 'US/Mountain'),
const _Timezone(zoneId: 'US/Pacific'),
const _Timezone(zoneId: 'US/Pacific-New'),
const _Timezone(zoneId: 'US/Samoa'),
const _Timezone(zoneId: 'UTC'),
const _Timezone(zoneId: 'Universal'),
const _Timezone(zoneId: 'W-SU'),
const _Timezone(zoneId: 'WET'),
const _Timezone(zoneId: 'Zulu'),
];
/// Callback when user picks a timezone.
typedef OnTimezoneTap = void Function(String timeZoneId);
/// Calback when the user taps outside the timezone picker, usually dismissing
/// the picker.
typedef OnTapOutside = void Function();
/// Allows the selection of timezone.
class TimezonePicker extends StatelessWidget {
final String _currentTimezoneId;
final OnTimezoneTap _onTap;
/// Creates a new TimezonePicker widget
const TimezonePicker({String currentTimezoneId, OnTimezoneTap onTap})
: _currentTimezoneId = currentTimezoneId,
_onTap = onTap;
@override
Widget build(BuildContext context) => new ListView.builder(
physics: const BouncingScrollPhysics(),
itemCount: _kTimeZones.length,
itemBuilder: (BuildContext context, int index) => new Material(
color: _currentTimezoneId == _kTimeZones[index].zoneId
? Colors.grey[500]
: Colors.transparent,
child: new InkWell(
onTap: () {
_onTap?.call(_kTimeZones[index].zoneId);
},
child: new Padding(
padding: const EdgeInsets.all(8.0),
child: new Text(
'${_kTimeZones[index].zoneId}',
style: const TextStyle(color: Colors.black),
),
),
),
),
);
}