heap_flutter_autocapture_auto_route 0.3.0 copy "heap_flutter_autocapture_auto_route: ^0.3.0" to clipboard
heap_flutter_autocapture_auto_route: ^0.3.0 copied to clipboard

Heap Autocapture for Flutter apps on iOS, Android that use `AutoRoute` for navigation.

example/example.md

Heap Autocapture AutoRoute Observer Example #

Getting Started #

For full documentation, installation instructions, and API reference, check out the Heap Flutter SDK documentation.

Simple Usage Example #

This example demonstrates how to integrate the Heap Autocapture AutoRoute Observer with your AutoRoute configuration to automatically track page navigation events.

Add the Observer to Your Router #

Add HeapFlutterAutocaptureAutoRouteObserver to the navigator observers in your MaterialApp.router configuration:

import 'package:auto_route/auto_route.dart';
import 'package:flutter/material.dart';
import 'package:heap_flutter_autocapture_auto_route/heap_flutter_autocapture_auto_route.dart';

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

  final _appRouter = AppRouter();

  @override
  Widget build(BuildContext context) {
    return MaterialApp.router(
      theme: ThemeData(
        primarySwatch: Colors.blue,
        useMaterial3: true,
      ),
      routerConfig: _appRouter.config(
        navigatorObservers: () => [
          // Add observer here
          HeapFlutterAutocaptureAutoRouteObserver(),
        ],
      ),
    );
  }
}
0
likes
120
points
146
downloads

Documentation

API reference

Publisher

verified publishercontentsquare.com

Weekly Downloads

Heap Autocapture for Flutter apps on iOS, Android that use `AutoRoute` for navigation.

Homepage

License

unknown (license)

Dependencies

auto_route, flutter, heap_flutter_autocapture

More

Packages that depend on heap_flutter_autocapture_auto_route