zeba_academy_widget_inspector 0.0.1
zeba_academy_widget_inspector: ^0.0.1 copied to clipboard
A Flutter package to inspect and debug widgets live inside the app.
zeba_academy_widget_inspector #
A powerful offline Flutter widget inspection tool to help developers and learners visualize, debug, and understand widget layouts directly inside their app.
š Features #
- š Inspect widgets in real-time by tapping on them
- š View widget size (width & height)
- š¦ Display layout constraints
- š³ Lightweight and fully offline (no DevTools needed)
- š Perfect for learning Flutter UI internals
- ā” Easy integration with minimal setup
š¦ Installation #
Add this to your pubspec.yaml:
dependencies:
zeba_academy_widget_inspector: ^0.0.1
š ļø Usage #
Wrap your app with WidgetInspectorOverlay:
import 'package:flutter/material.dart';
import 'package:zeba_academy_widget_inspector/zeba_academy_widget_inspector.dart';
void main() {
runApp(
MaterialApp(
home: WidgetInspectorOverlay(
child: MyApp(),
),
),
);
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text("Widget Inspector")),
body: Center(
child: Container(
padding: const EdgeInsets.all(20),
color: Colors.amber,
child: const Text("Tap me to inspect!"),
),
),
);
}
}
šø How It Works #
-
Tap anywhere on the screen
-
The inspector detects the widget under your finger
-
Displays:
- Width
- Height
- Constraints
šÆ Use Cases #
- Debug UI layout issues
- Learn how Flutter rendering works
- Analyze widget constraints and sizing
- Educational demonstrations
š§© Roadmap #
- š² Widget highlight borders
- š³ Full widget tree visualization
- š Toggle inspector mode
- š§ Advanced layout debugging info
š License (GPL v3) #
This project is licensed under the GNU General Public License v3.0.
You are free to:
- Use
- Modify
- Distribute
Under the condition that all derivative work must also be open source under GPL.
šØāš» 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: https://zeba.academy ā” Explore hands-on courses and resources at: https://code.zeba.academy ā” Check out our YouTube for more tutorials: https://www.youtube.com/@zeba.academy ā” Follow us on Instagram: https://www.instagram.com/zeba.academy/
ā¤ļø Contributing #
Contributions are welcome!
If you'd like to improve this package:
- Fork the repository
- Create a new branch
- Make your changes
- Submit a pull request
ā Support #
If you like this project, consider giving it a ā on GitHub and sharing it with others!
Built with ā¤ļø by Zeba Academy