lb_bluetooth 1.1.3 copy "lb_bluetooth: ^1.1.3" to clipboard
lb_bluetooth: ^1.1.3 copied to clipboard

Logbot bluetooth HPS client to connect and setup an IoT via a local bluetooth connection

example/lib/main.dart

// Copyright 2022 Logbot SRL. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:example/ui/home_page.dart';
import 'package:flutter/material.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';

import 'ui/discovery_screen.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await dotenv.load(fileName: ".env");
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Logbot SDK - Bluetooth Example',
      themeMode: ThemeMode.light,
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const HomePage(),
      initialRoute: '/home',
      routes: {
        '/home': (context) => const HomePage(),
        '/bluetooth/discovery': (context) => const BluetoothDiscoveryScreen(),
      },
    );
  }
}
0
likes
50
pub points
0%
popularity

Publisher

verified publisherlogbot.cloud

Logbot bluetooth HPS client to connect and setup an IoT via a local bluetooth connection

Homepage

Documentation

Documentation

License

BSD-3-Clause (license)

Dependencies

flutter_reactive_ble, http, intl, lb_commons, meta, permission_handler, provider

More

Packages that depend on lb_bluetooth