jmap_ar_sdk 1.2.2
jmap_ar_sdk: ^1.2.2 copied to clipboard
An AR Flutter SDK with Jibestream
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:jmap_ar_sdk/jmap_ar_sdk.dart';
import 'package:jmap_ar_sdk/jmap_config.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
final _jmapArSdkPlugin = JMapARSDK();
@override
void initState() {
super.initState();
}
void _startLocalization() {
JMapConfig mapConfig = const JMapConfig(
"https://api.jibestream.com",
"", // Client ID
"", // Client Secret
123, // Customer ID
123, // Venue ID
123, // Building ID
123); // Floo ID
_jmapArSdkPlugin.startLocalization(mapConfig);
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: Center(
child: ElevatedButton(
onPressed: _startLocalization,
child: const Text('Start Localization'),
),
),
),
);
}
}