Tbib Get Timezone Location
Get timezone location from time offset user
this package use for get timezone location from location device and timezone database
Note
Why this package created
created for get timezone from time offset and location because some devices not get timezone form internet so await FlutterTimezone.getLocalTimezone(); not working
ios permission
<key>NSLocationWhenInUseUsageDescription</key>
<string>$(PRODUCT_NAME) uses location to get your timezone.</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>$(PRODUCT_NAME) uses location to get your timezone.</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>$(PRODUCT_NAME) uses location to get your timezone.</string>
<key>NSLocationUsageDescription</key>
<string>$(PRODUCT_NAME) uses location to get your timezone.</string>
How use it
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await TbibGetTimezoneLocation().init();
var timezoneName = await TbibGetTimezoneLocation().getTimezones();
log(timezoneName.toString());
......
}
Libraries
- gen/assets.gen
- GENERATED CODE - DO NOT MODIFY BY HAND
- tbib_get_timezone_location
- Get timezone location from time offest user