datetime_setting 2.0.1 copy "datetime_setting: ^2.0.1" to clipboard
datetime_setting: ^2.0.1 copied to clipboard

outdated

Flutter plugin to get information about auto time and auto timezone.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:datetime_setting/datetime_setting.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: TextButton(
            child: Text('Get Information'),
            onPressed: () async {
              bool timeAuto = await DatetimeSetting.timeIsAuto();
              bool timezoneAuto = await DatetimeSetting.timeZoneIsAuto();
              print(timeAuto);
              print(timezoneAuto);
            },
          ),
        ),
      ),
    );
  }
}
29
likes
0
points
6.93k
downloads

Publisher

verified publisherfuadarradhi.com

Weekly Downloads

Flutter plugin to get information about auto time and auto timezone.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on datetime_setting