hotspot_connection 0.0.1
hotspot_connection: ^0.0.1 copied to clipboard
A Flutter plugin for local network peer-to-peer (P2P) discovery and TCP socket communication using native Android NSD and iOS Bonjour.
import 'package:flutter/material.dart';
import 'package:hotspot_connection_example/screens/role_selection_screen.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Hotspot Chat',
theme: ThemeData(primarySwatch: Colors.blue),
home: const RoleSelectionScreen(),
);
}
}