zeba_academy_screen_overlay 0.0.1
zeba_academy_screen_overlay: ^0.0.1 copied to clipboard
A powerful Flutter package to create interactive tutorial overlays, highlight widgets, and guide users step-by-step. Fully offline, customizable, and reusable.
zeba_academy_screen_overlay #
A powerful and lightweight Flutter package to create interactive tutorial overlays, highlight widgets, and guide users step-by-step β fully offline and reusable.
β¨ Features #
- π― Highlight specific widgets using
GlobalKey - π§ Step-by-step guided tutorials
- π¨ Customizable tooltip UI
- π¬ Smooth animated transitions
- π§© Works with any Flutter widget
- β‘ Fully offline (no API or external dependencies)
- π Reusable overlay controller
π Installation #
Add this to your pubspec.yaml:
dependencies:
zeba_academy_screen_overlay: ^0.0.1
Then run:
flutter pub get
π¦ Usage #
1. Import package #
import 'package:zeba_academy_screen_overlay/zeba_academy_screen_overlay.dart';
2. Create GlobalKeys #
final key1 = GlobalKey();
final key2 = GlobalKey();
3. Attach keys to widgets #
ElevatedButton(
key: key1,
onPressed: () {},
child: Text("Button 1"),
)
4. Start Overlay Tutorial #
final controller = ZebaOverlayController();
WidgetsBinding.instance.addPostFrameCallback((_) {
controller.start(context, [
OverlayStep(
targetKey: key1,
title: "Welcome",
description: "This is your first button",
),
OverlayStep(
targetKey: key2,
title: "Next Step",
description: "This is your second button",
),
]);
});
π§ How It Works #
- Uses Flutter's
OverlayEntryto render UI above your app - Locates widgets using
GlobalKey - Draws highlight using
CustomPainter - Displays tooltip with step instructions
π¨ Customization Ideas #
- Custom tooltip design
- Animation styles (fade, scale, slide)
- Highlight shape (circle, rounded rectangle)
- Tap outside to dismiss
- Gesture navigation (swipe next/previous)
π§ͺ Testing #
Run tests using:
flutter test
π¦ Package Structure #
lib/
βββ zeba_academy_screen_overlay.dart
βββ src/
β βββ overlay_controller.dart
β βββ overlay_entry_widget.dart
β βββ highlight_painter.dart
β βββ overlay_step.dart
π License #
This project is licensed under the GNU General Public License v3.0 (GPL-3.0).
π GPL-3.0 Summary #
- You can use, modify, and distribute freely
- Must disclose source code when distributing
- Same license must be applied to derivatives
- No warranty provided
Full License Text: 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! Feel free to open issues or submit pull requests.
β Support #
If you like this package, consider giving it a β on GitHub to support development.
Thank you for visiting! π