zeba_academy_coding_challenge 1.0.0 copy "zeba_academy_coding_challenge: ^1.0.0" to clipboard
zeba_academy_coding_challenge: ^1.0.0 copied to clipboard

A Flutter package for coding challenges, test cases, hints, solutions, XP rewards and leaderboards.

๐Ÿš€ Zeba Academy Coding Challenge #

pub package License: GPL v3 Flutter

A powerful and reusable Flutter package for building coding challenge platforms, programming practice apps, and learning systems.

zeba_academy_coding_challenge provides ready-to-use tools for:

  • Coding challenges
  • Test cases
  • Hints
  • Solutions
  • XP rewards
  • Leaderboards

Build interactive coding education experiences with gamification and reusable Flutter components.


โœจ Features #

๐Ÿงฉ Coding Challenges #

Create programming problems with:

  • Challenge title
  • Description
  • XP rewards
  • Test cases
  • Learning hints
  • Complete solutions

Example:

CodingChallenge(
  id: "1",
  title: "Reverse String",
  description: "Reverse a given string",
  xp: 100,
  hints: [
    "Use loops",
    "Try string methods"
  ],
  solution: """
String reverse(String text){
 return text.split('').reversed.join();
}
""",
  testCases: [
    TestCase(
      input: "hello",
      output: "olleh",
    )
  ],
);

๐Ÿงช Test Cases #

Validate coding solutions easily.

TestCase(
 input: "hello",
 output: "olleh",
)

Supports:

  • Multiple test cases
  • Input values
  • Expected outputs
  • Automatic checking

๐Ÿ’ก Hint System #

Guide learners without showing the complete solution.

challenge.hints;

Example:

Hint 1:
Use string manipulation

Hint 2:
Reverse character order

๐Ÿ“˜ Solutions #

Store official solutions for every challenge.

challenge.solution

Example:

String reverse(String text){

 return text
 .split('')
 .reversed
 .join();

}

โญ XP Rewards #

Reward users after completing challenges.

final xp =
ChallengeService()
.calculateXP(
 challenge,
 true
);

Output:

+100 XP

๐Ÿ† Leaderboards #

Create competitive coding environments.

LeaderboardUser(
 name: "Alex",
 xp: 2500,
 rank: 1,
);

Example:

๐Ÿฅ‡ Alex

2500 XP

๐Ÿ“ฆ Installation #

Add dependency:

dependencies:

  zeba_academy_coding_challenge:
    latest_version

Run:

flutter pub get

๐Ÿš€ Quick Start #

Import package:

import 'package:zeba_academy_coding_challenge/zeba_academy_coding_challenge.dart';

Load challenge:

final challenge =
ChallengeData.challenges.first;

Display challenge:

ChallengeCard(
 challenge: challenge,
)

๐Ÿ”ฅ Answer Validation #

Check user solution:

final service =
ChallengeService();


bool completed =
service.checkAnswer(
 challenge,
 "olleh",
);

Returns:

true

๐Ÿ›  Package Structure #

lib/

โ”œโ”€โ”€ models/

โ”‚   โ”œโ”€โ”€ challenge.dart
โ”‚   โ”œโ”€โ”€ testcase.dart
โ”‚   โ””โ”€โ”€ leaderboard.dart


โ”œโ”€โ”€ widgets/

โ”‚   โ”œโ”€โ”€ challenge_card.dart
โ”‚   โ”œโ”€โ”€ xp_badge.dart
โ”‚   โ””โ”€โ”€ leaderboard_tile.dart


โ”œโ”€โ”€ services/

โ”‚   โ””โ”€โ”€ challenge_service.dart


โ””โ”€โ”€ data/

    โ””โ”€โ”€ challenge_data.dart

๐ŸŽฏ Use Cases #

Perfect for:

โœ… Coding learning apps โœ… Programming courses โœ… Competitive coding apps โœ… Developer communities โœ… Student portals โœ… Bootcamps โœ… Gamified education platforms


๐Ÿค Contributing #

Contributions are welcome.

Steps:

  1. Fork repository

  2. Create branch

git checkout -b feature/new-feature
  1. Commit changes
git commit -m "Add new feature"
  1. Push changes
git push origin feature/new-feature
  1. Create Pull Request

๐Ÿ“„ License #

This project is licensed under:

GNU General Public License v3.0 (GPL-3.0) #

You are free to:

โœ… Use โœ… Modify โœ… Share โœ… Improve

Under the conditions of GPL-3.0.

See LICENSE file for details.


๐Ÿ‘จโ€๐Ÿ’ป 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.

Zeba Academy is a learning platform dedicated to coding, technology, and developer education.

Visit:

๐ŸŒ Main Website:

https://zeba.academy

๐Ÿ’ป Coding Resources:

https://code.zeba.academy

โ–ถ YouTube:

https://www.youtube.com/@zeba.academy

๐Ÿ“ธ Instagram:

https://www.instagram.com/zeba.academy/


โญ Support #

If this package helps your project:

โญ Star the repository ๐Ÿ“ข Share with developers ๐Ÿค Contribute improvements

Thank you for using:

๐Ÿ’™ Zeba Academy Coding Challenge #

0
likes
140
points
68
downloads

Documentation

API reference

Publisher

verified publisherzeba.academy

Weekly Downloads

A Flutter package for coding challenges, test cases, hints, solutions, XP rewards and leaderboards.

Homepage

License

GPL-3.0 (license)

Dependencies

flutter

More

Packages that depend on zeba_academy_coding_challenge