awareframework_timezone 0.0.4 copy "awareframework_timezone: ^0.0.4" to clipboard
awareframework_timezone: ^0.0.4 copied to clipboard

The timezone sensor keeps track of the user’s current timezone.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:awareframework_timezone/awareframework_timezone.dart';

void main() => runApp(new MyApp());

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

class _MyAppState extends State<MyApp> {

  TimezoneSensor sensor;
  TimezoneSensorConfig config;

  @override
  void initState() {
    super.initState();

    config = TimezoneSensorConfig()
      ..debug = true;

    sensor = new TimezoneSensor.init(config);

    sensor.start();
  }

  @override
  Widget build(BuildContext context) {


    return new MaterialApp(
      home: new Scaffold(
          appBar: new AppBar(
            title: const Text('Plugin Example App'),
          ),
          body: new TimezoneCard(sensor: sensor,)
      ),
    );
  }
}
0
likes
20
pub points
0%
popularity

Publisher

unverified uploader

The timezone sensor keeps track of the user’s current timezone.

Homepage

License

unknown (LICENSE)

Dependencies

awareframework_core, flutter

More

Packages that depend on awareframework_timezone