zeba_academy_decision_tree 1.0.0
zeba_academy_decision_tree: ^1.0.0 copied to clipboard
Decision tree flow builder package for Flutter applications.
zeba_academy_decision_tree ๐ณ #
A powerful and customizable Flutter Decision Tree package for building interactive decision flows, question paths, outcomes, and visual decision maps.
Create intelligent flows for:
- Learning platforms
- Quiz systems
- Recommendation engines
- Course guidance
- Assessment tools
- Interactive applications
Built with โค๏ธ for Flutter developers.
โจ Features #
โ Dynamic decision tree builder โ Question nodes โ Multiple answer paths โ Conditional navigation โ Outcome screens โ Interactive tree visualization โ Reusable Flutter widgets โ Clean package architecture โ Fully customizable UI โ Lightweight and dependency-free
๐ฆ Installation #
Add this package to your pubspec.yaml:
dependencies:
zeba_academy_decision_tree: ^1.0.0
Run:
flutter pub get
๐ Getting Started #
Import the package:
import 'package:zeba_academy_decision_tree/zeba_academy_decision_tree.dart';
๐ณ Create a Decision Tree #
Example:
DecisionFlow(
startNode: "start",
nodes: [
DecisionNode(
id: "start",
question: "What do you want to learn?",
answers: [
DecisionAnswer(
text: "Flutter",
outcome: "flutter",
),
DecisionAnswer(
text: "Backend",
outcome: "backend",
),
],
),
],
outcomes: {
"flutter":
DecisionOutcome(
title: "Flutter Development",
description:
"Start building beautiful mobile apps.",
),
"backend":
DecisionOutcome(
title: "Backend Development",
description:
"Learn APIs and server development.",
),
},
)
๐ Core Concepts #
DecisionNode #
A question or decision point.
DecisionNode(
id: "level",
question: "Choose your level",
answers: [],
)
DecisionAnswer #
Defines available paths.
Example:
DecisionAnswer(
text: "Beginner",
nextNode: "basic",
)
Direct outcome:
DecisionAnswer(
text: "Complete",
outcome: "success",
)
DecisionOutcome #
Final result screen.
DecisionOutcome(
title: "Congratulations",
description:
"You completed the journey.",
)
๐ฒ Tree Visualization #
Display your complete decision structure:
DecisionTreeView(
nodes: nodes,
)
Includes:
- Interactive scrolling
- Zoom support
- Complete tree overview
๐ฏ Use Cases #
Education #
Create:
- Learning paths
- Skill assessments
- Course recommendations
- Student guidance
Business #
Create:
- Product selection flows
- Customer journeys
- Recommendation systems
Applications #
Create:
- Setup wizards
- Interactive guides
- Surveys
๐ Project Structure #
lib/
src/
models/
decision_node.dart
decision_answer.dart
decision_outcome.dart
engine/
decision_engine.dart
widgets/
question_card.dart
answer_button.dart
outcome_view.dart
tree_view.dart
screens/
decision_flow.dart
๐งช Testing #
Run tests:
flutter test
Analyze:
flutter analyze
๐ค Contributing #
Contributions are welcome.
Steps:
-
Fork the repository
-
Create a branch
git checkout -b feature/new-feature
- Commit changes
git commit -m "Add new feature"
- Push branch
git push origin feature/new-feature
- Open Pull Request
๐ License #
This project is licensed under the:
GNU General Public License v3.0 (GPL-3.0)
You are free to:
โ Use โ Modify โ Share โ Distribute
See:
LICENSE
for full license details.
๐จโ๐ป About Me #
โจ Iโm Sufyan bin Uzayr, an open-source developer passionate about building and sharing meaningful projects.
Learn more:
LinkedIn:
https://www.linkedin.com/in/sufyanism
๐ Zeba Academy #
Your all-in-one learning hub! #
Explore courses and resources in coding, technology, and development.
๐ Main Website:
๐ป Courses:
๐บ YouTube:
https://www.youtube.com/@zeba.academy
๐ธ Instagram:
https://www.instagram.com/zeba.academy/
Zeba Academy is dedicated to:
- Coding
- Technology
- Development
- Practical projects
- Hands-on learning
โญ Support #
If this package helps you:
โญ Star the repository โญ Share with developers โญ Contribute improvements
Thank you for using:
zeba_academy_decision_tree ๐