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

This sensor allows us to handle WiFi conditions and events.

example/lib/main.dart

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

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

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

class _MyAppState extends State<MyApp> {

  WiFiSensor sensor;
  WiFiSensorConfig config;

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

    config = WiFiSensorConfig()
      ..debug = true;

    sensor = new WiFiSensor.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 WiFiCard(sensor: sensor,)
      ),
    );
  }
}
0
likes
20
pub points
0%
popularity

Publisher

unverified uploader

This sensor allows us to handle WiFi conditions and events.

Homepage

License

unknown (LICENSE)

Dependencies

awareframework_core, flutter

More

Packages that depend on awareframework_wifi