first_package_try 0.0.2
first_package_try: ^0.0.2 copied to clipboard
A Flutter package to create a dynamic, customizable header menu from JSON data. Easily render navigation headers with icons, titles, and routes, all controlled through a JSON configuration.
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