Dynamic Header Menu
A Flutter package that allows developers to create dynamic header menus from JSON configuration.
This package is useful when you want to build customizable navigation bars or menus without hardcoding items in your Flutter UI.
🧩 Example
import 'package:dynamic_header_menu/dynamic_header_menu.dart';
final menuItems = [
MenuItemModel(title: 'Home', icon: 'home', route: '/home'),
MenuItemModel(title: 'Profile', icon: 'person', route: '/profile'),
MenuItemModel(title: 'Settings', icon: 'settings', route: '/settings'),
];
DynamicHeaderMenu(
items: menuItems,
onItemTap: (route) {
print('Tapped: $route');
},
);
## ✨ Features
- Build header menus dynamically from JSON data.
- Support for icons, titles, and navigation actions.
- Easily integrate with API responses or local JSON files.
- Lightweight and simple to use.
## 🚀 Getting Started
Add this line to your `pubspec.yaml` under **dependencies**:
```yaml
dependencies:
dynamic_header_menu: ^0.0.2