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

The package blocks the app's screen view by blurring it when the app is in the background.

A Flutter package for blocking the app's screen view by blurring it when the app is in the background.

Usage #

Import the package as:

import 'package:shield_view/shield_view.dart';

If you want to blur the whole app while it is in the background:

MaterialApp(
  title: 'Flutter Demo',
  theme: ThemeData(
    colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
    useMaterial3: true,
  ),
  builder: (context, child) {
  // Wrapping with ShieldView like this will Shield the whole app.
  return ShieldView(child: child!);
  },
  home: const HomePage(),
)

If you want to blur any specific page, just wrap the page with ShieldView.

ShieldView(child: HomePage());
3
likes
160
points
27
downloads

Publisher

verified publisheraslamthachapalli.com

Weekly Downloads

The package blocks the app's screen view by blurring it when the app is in the background.

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on shield_view