heap_flutter_autocapture 0.7.0 copy "heap_flutter_autocapture: ^0.7.0" to clipboard
heap_flutter_autocapture: ^0.7.0 copied to clipboard

Heap Autocapture for Flutter apps on iOS, Android, and macOS.

example/example.md

Heap Autocapture Navigator Observer Example #

Getting Started #

For full documentation, check out the Heap Flutter SDK documentation.

Simple Usage Example #

Add HeapAutocaptureNavigatorObserver to your MaterialApp navigator observers and use privacy widgets:

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

void main() async {
  // Register autocapture to track interactions and page views
  await HeapAutocapture.register();
  
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        primarySwatch: Colors.blue,
        useMaterial3: true,
      ),
      navigatorObservers: [
        HeapAutocaptureNavigatorObserver(),
      ],
      home: const HomePage(),
    );
  }
}