wifi_binder 0.0.1 copy "wifi_binder: ^0.0.1" to clipboard
wifi_binder: ^0.0.1 copied to clipboard

A Flutter plugin to **force network traffic over Wi-Fi only**

example/lib/main.dart

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

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  final _wifiBinderPlugin = WifiBinder();

  @override
  void initState() {
    super.initState();
    _wifiBinderPlugin.bindWifiOnly();
  }

  @override
  void dispose() {
    _wifiBinderPlugin.unbindNetwork();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('Plugin example app')),
        body: Center(child: Text('Running on: bindWifiOnly\n')),
      ),
    );
  }
}
1
likes
150
points
33
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to **force network traffic over Wi-Fi only**

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface, web

More

Packages that depend on wifi_binder

Packages that implement wifi_binder