Skip to main content

device_finder 0.2.0 copy "device_finder: ^0.2.0" to clipboard
device_finder: ^0.2.0 copied to clipboard

Offline Bluetooth device finding for Flutter: a pure-Dart Kalman-filtered RSSI engine with per-observer trilateration, plus a holographic, orbitable 3D radar widget. Pair with device_finder_ble for capture.

example/lib/main.dart

// device_finder example โ€” a 3D holographic radar over a simulated room
// (no Bluetooth needed), plus a Live mode that scans real BLE devices via
// device_finder_ble.
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

import 'src/finder_controller.dart';
import 'src/ui/home_screen.dart';
import 'src/ui/palette.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(DeviceFinderApp(controller: FinderController()));
}

class DeviceFinderApp extends StatefulWidget {
  const DeviceFinderApp({super.key, required this.controller, this.themeMode = ThemeMode.system, this.radarInitialTime, this.home});

  final FinderController controller;
  final ThemeMode themeMode;

  /// Screenshot hook: start radar animations at a fixed moment.
  final double? radarInitialTime;

  /// Overrides the home screen (screenshots / tests).
  final Widget? home;

  @override
  State<DeviceFinderApp> createState() => _DeviceFinderAppState();
}

class _DeviceFinderAppState extends State<DeviceFinderApp> {
  @override
  void dispose() {
    widget.controller.dispose();
    super.dispose();
  }

  ThemeData _theme(Palette p) {
    final scheme = ColorScheme.fromSeed(
      seedColor: p.accent,
      brightness: p.dark ? Brightness.dark : Brightness.light,
    ).copyWith(primary: p.accent, surface: p.bgBottom, onSurface: p.text);
    return ThemeData(
      useMaterial3: true,
      colorScheme: scheme,
      scaffoldBackgroundColor: p.bgBottom,
      splashFactory: InkSparkle.splashFactory,
      tooltipTheme: TooltipThemeData(
        waitDuration: const Duration(milliseconds: 500),
        textStyle: TextStyle(color: p.dark ? Colors.black : Colors.white),
      ),
    );
  }

  @override
  Widget build(BuildContext context) {
    return AnnotatedRegion<SystemUiOverlayStyle>(
      value: SystemUiOverlayStyle.light.copyWith(statusBarColor: Colors.transparent),
      child: MaterialApp(
        title: 'Finder ยท device_finder',
        debugShowCheckedModeBanner: false,
        themeMode: widget.themeMode,
        theme: _theme(Palette.lightPalette),
        darkTheme: _theme(Palette.darkPalette),
        home: widget.home ?? HomeScreen(controller: widget.controller, radarInitialTime: widget.radarInitialTime),
      ),
    );
  }
}
1
likes
140
points
213
downloads
screenshot

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Offline Bluetooth device finding for Flutter: a pure-Dart Kalman-filtered RSSI engine with per-observer trilateration, plus a holographic, orbitable 3D radar widget. Pair with device_finder_ble for capture.

Repository (GitHub)
View/report issues

Topics

#bluetooth #rssi #tracking #radar #ble

License

MIT (license)

Dependencies

flutter

More

Packages that depend on device_finder