import 'dart:io'; import 'dart:math'; import 'dart:typed_data'; import 'package:flutter/material.dart'; import 'package:nearby_connections/nearby_connections.dart'; class BluetoothPage extends StatefulWidget { BluetoothPage({Key key, this.title}) : super(key: key); final String title; @override _BluetoothPageState createState() => _BluetoothPageState(); } class _BluetoothPageState extends State { final String userName = Random().nextInt(10000).toString(); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text(widget.title), ), body: Center(), ); } }