an_dialogs 1.0.0 copy "an_dialogs: ^1.0.0" to clipboard
an_dialogs: ^1.0.0 copied to clipboard

An extension package for dialogs related to anlifecycle and cancellabe

example/example.dart

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

void main() {
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return LifecycleApp(
      child: MaterialApp(
        navigatorObservers: [LifecycleNavigatorObserver.hookMode()],
        home: const HomePage(),
      ),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return const Placeholder();
  }
}