awareframework_activityrecognition 0.1.0 copy "awareframework_activityrecognition: ^0.1.0" to clipboard
awareframework_activityrecognition: ^0.1.0 copied to clipboard

A new flutter plugin project.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'dart:async';

import 'package:flutter/services.dart';
import 'package:awareframework_activityrecognition/awareframework_activityrecognition.dart';
import 'package:awareframework_core/awareframework_core.dart';

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

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

class _MyAppState extends State<MyApp> {
  late ActivityRecognitionSensor sensor;
  late ActivityRecognitionSensorConfig config;

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

    config = ActivityRecognitionSensorConfig()..debug = true;

    sensor = new ActivityRecognitionSensor(config);
  }

  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      home: new Scaffold(
        appBar: new AppBar(
          title: const Text('Plugin Example App'),
        ),
        body: Text(""),
      ),
    );
  }
}
0
likes
120
pub points
0%
popularity

Publisher

unverified uploader

A new flutter plugin project.

Homepage

Documentation

API reference

License

unknown (LICENSE)

Dependencies

awareframework_core, flutter

More

Packages that depend on awareframework_activityrecognition