zeba_academy_empty_states 1.0.0
zeba_academy_empty_states: ^1.0.0 copied to clipboard
Beautiful empty states library for Flutter apps.
Zeba Academy Empty States #
A beautiful and customizable empty state library for Flutter applications.
✨ Features #
Zeba Academy Empty States provides ready-to-use empty screens for Flutter apps.
✅ No data screens
✅ Error states
✅ No internet screens
✅ Search empty states
✅ Material 3 compatible
✅ Custom action buttons
✅ Lightweight and dependency free
✅ Easy integration
📦 Installation #
Add this package to your pubspec.yaml:
dependencies:
zeba_academy_empty_states: ^1.0.0
Then run:
flutter pub get
🚀 Usage #
Import the package:
import 'package:zeba_academy_empty_states/zeba_academy_empty_states.dart';
Empty Data State #
ZebaNoDataState(
onRefresh: () {
print("Refresh");
},
)
Preview:
📦
No Data Found
There is nothing available here yet.
[ Refresh ]
Error State #
ZebaErrorState(
message:
"Unable to load data",
onRetry: () {
print("Retry");
},
)
No Internet State #
ZebaNoInternetState(
onRetry: () {
print("Checking connection");
},
)
Search Empty State #
ZebaSearchEmptyState(
query: "Flutter",
)
Output:
🔍
No Results
No results found for "Flutter"
Custom Empty State #
You can create your own empty state:
ZebaEmptyState(
icon: Icons.favorite_outline,
title: "Nothing Here",
description:
"Create something new",
action: FilledButton(
onPressed: () {},
child:
Text("Create")
),
)
Example #
class HomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body:
ZebaNoDataState(
onRefresh: () {
},
),
);
}
}
📁 Project Structure #
lib/
├── zeba_academy_empty_states.dart
└── src/
├── empty_state.dart
├── states/
│ ├── no_data_state.dart
│ ├── error_state.dart
│ ├── no_internet_state.dart
│ └── search_empty_state.dart
└── widgets/
└── empty_button.dart
🤝 Contributing #
Contributions are welcome!
Steps:
-
Fork this repository
-
Create a feature branch
-
Commit changes
-
Push your branch
-
Create a Pull Request
🐛 Issues #
If you find a bug or have suggestions, please open an issue.
We appreciate your feedback.
👨💻 About Me #
✨ I’m Sufyan bin Uzayr, an open-source developer passionate about building and sharing meaningful projects.
Learn more:
🌐 Website: https://sufyanism.com/
💼 LinkedIn: https://www.linkedin.com/in/sufyanism
🚀 Zeba Academy #
Your all-in-one learning hub!
Explore courses and resources in coding, technology, and development.
Build practical skills through:
- Curated tutorials
- Real-world projects
- Hands-on experience
- Developer resources
Visit:
🌐 Main platform:
💻 Coding resources:
▶ YouTube:
https://www.youtube.com/@zeba.academy
📸 Instagram:
https://www.instagram.com/zeba.academy/
📄 License #
This project is licensed under the GNU General Public License v3.0.
You are free to:
✅ Use
✅ Modify
✅ Share
✅ Distribute
Under the terms of GPL-3.0.
See the full license:
LICENSE
⭐ Support #
If this package helps you, consider giving it a star ⭐
Thank you for using Zeba Academy Empty States ❤️