artemis_pairing 1.5.2
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",
),
),
),
);
}
}