awareframework_health 0.0.2
awareframework_health: ^0.0.2 copied to clipboard

A new flutter plugin project.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:awareframework_health/awareframework_health.dart';

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

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

class _MyAppState extends State<MyApp> {

  HealthSensor sensor;
  HealthSensorConfig config;

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

    config = HealthSensorConfig()
      ..debug = true;

    sensor = new HealthSensor(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 HealthCard(sensor: sensor)
      ),
    );
  }
}
0
likes
50
pub points
0%
popularity

A new flutter plugin project.

Homepage

Documentation

API reference

Uploader

yukinishi55@gmail.com

License

Apache 2.0 (LICENSE)

Dependencies

awareframework_core, flutter

More

Packages that depend on awareframework_health