tbib_get_timezone_location 1.0.4 copy "tbib_get_timezone_location: ^1.0.4" to clipboard
tbib_get_timezone_location: ^1.0.4 copied to clipboard

Get timezone location from time offset user

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());
 ......

}