zeba_academy_widget_snapshots 0.0.1
zeba_academy_widget_snapshots: ^0.0.1 copied to clipboard
Capture Flutter widget screenshots offline with optional blur and local storage.
zeba_academy_widget_snapshots #
A powerful, lightweight Flutter package to capture widget screenshots offline, with optional blur support and local storage.
โจ Features #
- ๐ธ Capture any Flutter widget as an image
- ๐พ Save snapshots locally (offline)
- ๐ซ๏ธ Optional blur for sensitive content
- ๐ Retrieve saved snapshots
- โก No API, no cloud, fully offline
๐ Getting Started #
Add the package to your pubspec.yaml:
dependencies:
zeba_academy_widget_snapshots: ^0.0.1
๐งโ๐ป Usage #
1. Import #
import 'package:zeba_academy_widget_snapshots/zeba_academy_widget_snapshots.dart';
2. Wrap Your Widget #
final GlobalKey repaintKey = GlobalKey();
SnapshotWidget(
repaintKey: repaintKey,
child: Container(
padding: const EdgeInsets.all(20),
color: Colors.blue,
child: const Text(
"Capture Me!",
style: TextStyle(color: Colors.white),
),
),
)
3. Capture & Save #
final controller = SnapshotController(repaintKey);
final path = await controller.save(
blur: true,
);
print("Saved at: $path");
๐ง API Overview #
SnapshotController #
| Method | Description |
|---|---|
capture() |
Captures widget as Uint8List |
save() |
Saves snapshot locally |
SnapshotWidget #
Wrap any widget to make it capturable.
๐ Storage #
Snapshots are saved in:
- Application Documents Directory
- PNG format
๐ซ๏ธ Blur Support #
Enable blur for sensitive UI:
await controller.save(blur: true);
๐ Use Cases #
- ๐ Study notes & revision snapshots
- ๐ Progress tracking
- ๐ Masking sensitive UI before sharing
- ๐งช Debugging UI states
๐ ๏ธ Roadmap #
- ๐ธ Snapshot gallery viewer
- ๐ท๏ธ Notes & tagging system
- ๐ Export to PDF
- ๐ Share snapshots
๐ License (GPL-3.0) #
This project is licensed under the GNU General Public License v3.0.
You are free to:
- Use
- Modify
- Distribute
Under the condition that:
- You disclose source code
- Use the same license
Full License: https://www.gnu.org/licenses/gpl-3.0.en.html
๐จโ๐ป 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
๐ Contributing #
Contributions are welcome!
- Fork the repo
- Create a feature branch
- Submit a pull request
โญ Support #
If you like this package:
- โญ Star the repo
- ๐งโ๐ป Share with others
- ๐ Report issues
Thank you for visiting! ๐