awareframework_connectivity 0.0.3 copy "awareframework_connectivity: ^0.0.3" to clipboard
awareframework_connectivity: ^0.0.3 copied to clipboard

outdated

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_connectivity/awareframework_connectivity.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> {

  ConnectivitySensor sensor;
  ConnectivitySensorConfig config;

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

    config = ConnectivitySensorConfig()
      ..debug = true;

    sensor = new ConnectivitySensor(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 ConnectivityCard(sensor: sensor,)
      ),
    );
  }
}
0
likes
15
points
39
downloads

Publisher

unverified uploader

Weekly Downloads

A new flutter plugin project.

License

unknown (license)

Dependencies

awareframework_core, flutter

More

Packages that depend on awareframework_connectivity

Packages that implement awareframework_connectivity