artemis_pairing 1.5.2 copy "artemis_pairing: ^1.5.2" to clipboard
artemis_pairing: ^1.5.2 copied to clipboard

Pairing widgets for Artemis

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Artemis Pairing Example',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const ArtemisPairingExample(title: 'Artemis Pairing Example'),
    );
  }
}

class ArtemisPairingExample extends StatefulWidget {
  const ArtemisPairingExample({super.key, required this.title});

  final String title;

  @override
  State<ArtemisPairingExample> createState() => _ArtemisPairingExampleState();
}

class _ArtemisPairingExampleState extends State<ArtemisPairingExample> {
  @override
  Widget build(BuildContext context) {
    return Theme(
      data: ThemeData.dark(),
      child: const SafeArea(
        child: Center(
          child: ArtemisConfigSequence(
            // You can specify the modelId to skip the model selection screen
            // modelId: "YOUR_ARTEMIS_MODEL_ID",
            artemisPrivateKey:
                "YOUR_ARTEMIS_PRIVATE_KEY",
          ),
        ),
      ),
    );
  }
}
0
likes
130
points
63
downloads

Publisher

verified publisherapollocode.ca

Weekly Downloads

Pairing widgets for Artemis

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

async, collection, flutter, flutter_blue_plus, http

More

Packages that depend on artemis_pairing