zeba_academy_local_security 0.0.1
zeba_academy_local_security: ^0.0.1 copied to clipboard
Offline app protection (screenshot, recording detection, app lock, background security)
๐ zeba_academy_local_security #
A production-ready Flutter package for offline app protection, providing essential security features like screenshot detection, screen recording protection, app lock, and background privacy handling.
โจ Features #
- ๐ธ Screenshot Detection (Android)
- ๐ฅ Screen Recording Protection (via FLAG_SECURE)
- ๐ App Lock (Biometric / Device Authentication)
- ๐ Background Protection (Hide sensitive UI when app is minimized)
- โก Lightweight & Easy Integration
๐ฆ Installation #
Add this to your pubspec.yaml:
dependencies:
zeba_academy_local_security: ^0.0.1
Then run:
flutter pub get
๐ Usage #
1. Import Package #
import 'package:zeba_academy_local_security/zeba_academy_local_security.dart';
2. Enable Security Manager #
final security = SecurityManager();
@override
void initState() {
super.initState();
security.enableSecure();
security.startScreenshotListener();
security.onScreenshot.listen((event) {
debugPrint("Screenshot detected!");
});
}
3. App Lock (Biometric / PIN fallback) #
bool unlocked = await AppLock.authenticate();
if (unlocked) {
print("Access granted");
}
4. Background Protection #
Wrap your app:
BackgroundProtection(
child: MaterialApp(
home: HomePage(),
),
);
โ๏ธ Platform Support #
| Feature | Android | iOS |
|---|---|---|
| Screenshot Detection | โ | โ |
| Screen Recording Protection | โ | โ ๏ธ Limited |
| App Lock | โ | โ |
| Background Protection | โ | โ |
โ ๏ธ Important Notes #
- iOS has strict limitations on detecting screenshots and screen recordings.
- Use
FLAG_SECUREfor maximum protection on Android. - This package focuses on offline-first security.
๐งช Testing #
Run tests using:
flutter test
๐ Project Structure #
lib/
โโโ zeba_academy_local_security.dart
โโโ src/
โโโ security_manager.dart
โโโ app_lock.dart
โโโ background_protection.dart
๐ค Contributing #
Contributions are welcome! Feel free to open issues and submit pull requests.
About Me #
โจ Iโm Sufyan bin Uzayr, an open-source developer passionate about building and sharing meaningful projects. You can learn more about me and my work at sufyanism.com or connect with me on Linkedin
Your all-in-one no-bloat hub! #
๐ Explore cutting-edge resources in coding, tech, and development at zeba.academy and code.zeba.academy. Empower yourself with practical skills through curated directives, real-world projects, and hands-on experience. Level up your tech game today! ๐ปโจ
Zeba Academy is a learning platform dedicated to coding, technology, and development.
โก Visit our main site: zeba.academy
โก Explore hands-on courses and resources at: code.zeba.academy
โก Check out our YouTube for more tutorials: zeba.academy
โก Follow us on Instagram: zeba.academy
Thank you for visiting!