zeba_academy_layout_debugger
π A powerful visual layout debugging tool for Flutter that helps you understand widget structure in real time.
β¨ Features
- π― Visualize padding & spacing
- π¨ Detect overflow issues instantly
- π Highlight alignment problems
- π Built-in tap inspector (live coordinates)
- β‘ Lightweight & zero dependencies
πΈ Preview
Add screenshots/gifs here to showcase debugging overlays
π Getting Started
1. Add Dependency
dependencies:
zeba_academy_layout_debugger:
path: ../
2. Import
import 'package:zeba_academy_layout_debugger/zeba_academy_layout_debugger.dart';
3. Usage
LayoutDebugger(
padding: const EdgeInsets.all(16),
config: const DebugConfig(
showPadding: true,
detectOverflow: true,
enableInspector: true,
),
child: Container(
padding: const EdgeInsets.all(20),
color: Colors.green,
child: const Text("Hello Debugger"),
),
)
βοΈ Configuration
DebugConfig(
showPadding: true,
showMargins: true,
detectOverflow: true,
highlightAlignment: true,
enableInspector: true,
)
| Property | Description |
|---|---|
| showPadding | Highlights padding visually |
| showMargins | (Future support) margin visualization |
| detectOverflow | Shows overflow warnings |
| highlightAlignment | Detects alignment issues |
| enableInspector | Enables tap inspector |
π§ͺ Example Use Cases
- Debugging complex UI layouts
- Fixing overflow errors quickly
- Understanding spacing issues
- Teaching Flutter layout concepts
β οΈ Important Notes
- Use only in debug mode
- Avoid enabling in production builds
if (kReleaseMode) return child;
π£οΈ Roadmap
- πΉ Margin visualization
- πΉ Widget tree inspector panel
- πΉ DevTools integration
- πΉ Alignment heatmaps
π€ Contributing
Contributions are welcome! Feel free to open issues or submit pull requests.
π License
This project is licensed under the GNU General Public License v3.0.
π¨βπ» 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
β If you like this package, donβt forget to star the repo!