notch_bottom_navigation 0.0.2
notch_bottom_navigation: ^0.0.2 copied to clipboard
A customizable bottom navigation bar with an inward notch and center FAB for Flutter. Configurable icons, colors, and pages.
Notch Bottom Navigation Bar #
A customizable bottom navigation bar with an elegant inward notch and a floating action button (FAB) for Flutter.
β¨ Features #
- π³οΈ Modern inward-notch design with smooth curves
- β Center Floating Action Button (FAB) with customizable color and icon
- π± Supports multiple pages and icons
- π΅ Active tab indicator dot
- π¨ Configurable selected and unselected colors
- π§ Easy to integrate with any app
π Getting Started #
Add the package to your pubspec.yaml:
dependencies:
notch_bottom_navigation: ^0.0.1
Then, run the following command in your terminal:
flutter pub get
Or directly add the package using:
flutter pub add notch_bottom_navigation
π¦ Usage #
Import the package and use CustomNotchBottomNavigation in your app:
import 'package:flutter/material.dart';
import 'package:notch_bottom_navigation/notch_bottom_navigation.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Notch Bottom Navigation Demo',
home: CustomNotchBottomNavigation(
pages: const [
Scaffold(body: Center(child: Text('Home'))),
Scaffold(body: Center(child: Text('Search'))),
Scaffold(body: Center(child: Text('Notifications'))),
Scaffold(body: Center(child: Text('Settings'))),
],
icons: const [
Icons.home,
Icons.search,
Icons.notifications,
Icons.settings,
],
fabIcon: Icons.add,
fabColor: Colors.deepPurple,
selectedColor: Colors.deepPurple,
unselectedColor: Colors.grey,
onFabTap: () => debugPrint('FAB tapped'),
),
);
}
}
βοΈ Customization Options #
| Parameter | Description |
|---|---|
pages |
List of widgets for each tab |
icons |
List of icons for each tab |
fabIcon |
Icon for the floating action button |
fabColor |
Color of the FAB |
selectedColor |
Color of the selected tab icon |
unselectedColor |
Color of the unselected tab icons |
onFabTap |
Callback when FAB is tapped |
π¬ Additional Information
β Found a bug? Please open an issue on GitHub Issues
π€ Want to contribute? Pull requests are welcome!
π License #
This project is licensed under the MIT License.
π§βπ» Author #
Made with β€οΈ by [YourName]
GitHub: github.com/yourusername