Great! Here's the updated and pub.dev-ready README.md
file for your package ecom_login_flutter
by Gowtham D:
# π ecom_login_flutter
A plug-and-play Flutter package that combines an elegant login system with a bottom navigationβdriven home screen.
Perfect for e-commerce or any multi-tab applications.
---
## β¨ Features
- πͺ Fully-functional Login, Signup, and Password Recovery screens
- π Modular HomeScreen with dynamic page switching
- π§ Custom Bottom Navigation Bar using labeled icons
- π¨ Fully themeable and reusable architecture
- β‘ Fast integration and production-ready
---
## π Getting Started
### Installation
Add to your `pubspec.yaml`:
```yaml
dependencies:
ecom_login_flutter: ^1.0.0
Run:
flutter pub get
π» Usage
π§βπ» Login Screen
LoginScreen(
onLogin: (loginData) async {
// Handle login logic here
return null; // Return an error message string if failed
},
onSignup: (signupData) async {
// Handle signup logic
return null;
},
onRecoverPassword: (email) async {
// Handle password recovery
return null;
},
)
Automatically navigates to the HomeScreen after successful login.
π‘ Home Screen
HomeScreen(
appBarTitle: 'Welcome',
screens: [
HomePage(),
ShopPage(),
WishlistPage(),
CartPage(),
ProfilePage(),
],
bottomNavigationItems: [
BottomNavigationBarItem(icon: Icon(Icons.home), label: 'Home'),
BottomNavigationBarItem(icon: Icon(Icons.search), label: 'Shop'),
BottomNavigationBarItem(icon: Icon(Icons.favorite_border), label: 'Wishlist'),
BottomNavigationBarItem(icon: Icon(Icons.shopping_cart_outlined), label: 'Cart'),
BottomNavigationBarItem(icon: Icon(Icons.account_box), label: 'Profile'),
],
)
π¦ Included Widgets
LoginScreen
HomeScreen
CustomBottomNavigation
TabItem
model
π¨ Example: Theming the Login Screen
theme: LoginTheme(
primaryColor: Colors.deepPurple,
buttonTheme: LoginButtonTheme(
backgroundColor: Colors.deepPurpleAccent,
),
),
π Folder Structure
lib/
βββ ecom_login_flutter.dart
βββ src/
β βββ login_screen.dart
β βββ home_screen.dart
β βββ custom_navigation_bar.dart
β βββ models/tab_item_model.dart
π License
MIT Β© 2025 β Open source and free to use
π¨βπ» Author
Gowtham D
π« GitHub: Gowtham D
Let me know if you'd like:
- An example project to publish under `example/`
- A `pubspec.yaml` starter for the package
- GitHub badges or links