viam_flutter_bluetooth_provisioning_widget 0.0.21 copy "viam_flutter_bluetooth_provisioning_widget: ^0.0.21" to clipboard
viam_flutter_bluetooth_provisioning_widget: ^0.0.21 copied to clipboard

A Flutter package for provisioning Viam machines using Bluetooth connections with support for both standard provisioning and tethering flows.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'consts.dart';
import 'start_screen.dart';

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

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

  @override
  Widget build(BuildContext context) {
    try {
      assert(Consts.apiKeyId.isNotEmpty, 'apiKeyId is empty');
      assert(Consts.apiKey.isNotEmpty, 'apiKey is empty');
      assert(Consts.organizationId.isNotEmpty, 'organizationId is empty');
    } catch (e) {
      debugPrint('Error: $e');
      // To use this example app populate the consts.dart file with your own api Keys.
      rethrow;
    }

    return MaterialApp(
      title: 'Bluetooth Provisioning',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const StartScreen(),
    );
  }
}
1
likes
140
points
432
downloads

Publisher

verified publisherviam.com

Weekly Downloads

A Flutter package for provisioning Viam machines using Bluetooth connections with support for both standard provisioning and tethering flows.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

collection, flutter, flutter_platform_widgets, permission_handler, provider, pub_semver, viam_flutter_provisioning, viam_sdk

More

Packages that depend on viam_flutter_bluetooth_provisioning_widget