app_visibility_manager 0.0.3 copy "app_visibility_manager: ^0.0.3" to clipboard
app_visibility_manager: ^0.0.3 copied to clipboard

A Flutter package to manage UI visibility based on the app's lifecycle state.

AppVisibilityManager #

AppVisibilityManager is a Flutter package that helps manage the visibility of the UI based on the app's lifecycle state. When the app goes into the background or becomes inactive, the UI can be hidden, and when it resumes, the UI is shown again.

Features #

  • Automatically hides the UI when the app is inactive or paused.
  • Shows a custom image when the UI is hidden.
  • Resumes the UI visibility when the app is resumed.

Installation #

Add this to your package's pubspec.yaml file:

dependencies:
  app_visibility_manager: ^0.0.3

Pub.dev Popularity

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'AppVisibilityManager',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(title: 'AppVisibilityManager'),
      builder: (context, child) => AppVisibilityManager(
        image: const FlutterLogo(
          size: 72,
        ),
        child: child!,
      ),
    );
  }
}
1
likes
160
points
36
downloads

Publisher

verified publisherdevastral.tr

Weekly Downloads

A Flutter package to manage UI visibility based on the app's lifecycle state.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on app_visibility_manager