Skip to main content

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

A comprehensive Dart/Flutter utility package containing 65+ reusable code modules covering animations, UI components, services, models, and more.

CoderED Package #

A comprehensive Dart/Flutter utility package containing 65+ reusable code modules covering animations, UI components, services, models, business logic, and practical examples.

Quick Start #

Installation #

flutter pub add codered

Option 2: From Local Path

flutter pub add codered --path ../codered

Usage #

Import the entire package:

import 'package:codered/codered.dart';

Or import specific modules as needed:

// Import specific modules
import 'package:codered/calculator.dart';
import 'package:codered/weather.dart';
import 'package:codered/api_service_7.dart';
import 'package:codered/product_8.dart';

Features #

  • UI Components: Calculator, Weather, Shopping, Todo, Maps, Navigation
  • Business Logic: Services, models, and utilities for common operations
  • Animations: Traffic animations, ball animations, timers with animations
  • Services: API services, web services, and external integrations
  • Models & Data Classes: Product, Customer, Employee, Student, Post
  • Practical Examples: Real-world implementations and templates
  • All Source Code Accessible: All 65 modules are included and accessible
  • Production Ready: Null-safe, analyzed, and following Dart conventions

Complete Module List (65 Files) #

🎨 Animations & Graphics (6 modules) #

  • animated_ball.dart - Bouncing ball animation
  • animated_single_traffic.dart - Single traffic light animation
  • animated_traffic_4way.dart - 4-way traffic light animation
  • video_asset.dart - Video asset management
  • video_link.dart - Video link handling
  • video_player.dart - Video player component

🖥️ UI Screens & Components (16 modules) #

  • calculator.dart - Calculator UI and logic
  • calc.dart - Alternative calculator
  • weather.dart - Weather display UI
  • shopping.dart - Shopping interface
  • todo.dart - Todo list application
  • notes.dart - Notes application
  • recipe.dart - Recipe display
  • cooking_timer.dart - Cooking timer with UI
  • voice_enabled_cookingTimer.dart - Voice-enabled timer
  • budget.dart - Budget management UI
  • expense.dart - Expense tracking
  • map.dart - Basic map UI
  • maps.dart - Enhanced maps
  • maps_with_hotel.dart - Maps with hotel integration
  • commerce_navigation.dart - E-commerce navigation
  • cart_screen_8.dart - Shopping cart screen

📦 Models & Data Classes (5 modules) #

  • product_8.dart - Product model
  • customer.dart - Customer model
  • employee.dart - Employee model
  • student.dart - Student model
  • post_7.dart - Post/Article model with JSON serialization

🔌 Services & API (3 modules) #

  • api_service_7.dart - REST API service with HTTP
  • web_services.dart - Web services utilities
  • cart_8.dart - Cart logic/service

🏢 Domain-Specific Applications (22 modules) #

  • bmi.dart - BMI calculator
  • petcare.dart - Pet care management
  • plantcare.dart - Plant care management
  • event_management.dart - Event management system
  • journal.dart - Journal/diary application
  • news.dart - News display
  • library.dart - Library management basics
  • library_management.dart - Full library management
  • Library Management System.dart - Advanced library system
  • ticket.dart - Ticket management
  • gaming.dart - Gaming logic/UI
  • home_automation.dart - Home automation controls
  • irrigation.dart - Irrigation system management
  • paddy.dart - Paddy field management
  • drone.dart - Drone simulation
  • autonomous.dart - Autonomous system logic
  • arvr.dart - AR/VR capabilities with camera
  • vehicle_collision.dart - Vehicle collision detection
  • reactor.dart - Reactor simulation
  • traffic_junction.dart - Traffic junction management
  • Election commission of India.dart - Election data (English)
  • Election commission of India using tamil.dart - Election data (Tamil)

🌍 Specialized/Regional Modules (5 modules) #

  • Single window councelling anna univ.dart - University counseling (English)
  • Single window councelling anna univ using tamil.dart - University counseling (Tamil)
  • translation.dart - Translation utilities
  • retinal_caption.dart - Retinal image caption generation
  • retinal_classification.dart - Retinal image classification
  • Movie_rating.dart - Movie rating system

🎯 UI Utilities & Helpers (6 modules) #

  • shapes.dart - Shape utilities and drawing
  • portfolio.dart - Portfolio display
  • form_validation.dart - Form validation logic
  • unit_converter.dart - Unit conversion utilities
  • Basic Web Page of SSN.dart - Basic web page template
  • commerce_navigation.dart - Commerce navigation patterns

🚀 Main Entry Points/Demo Apps (2 modules) #

  • main_7.dart - Demo app 1 with API integration
  • main_8.dart - Demo app 2

Package Structure #

codered/
├── lib/
│   ├── codered.dart (main entry point - exports all modules)
│   ├── animated_ball.dart
│   ├── animated_single_traffic.dart
│   ├── animated_traffic_4way.dart
│   ├── api_service_7.dart
│   ├── arvr.dart
│   ├── autonomous.dart
│   ├── ... (55 more modules)
│   ├── web_services.dart
│   ├── weather.dart
│   ├── models/ (subdirectory)
│   ├── screens/ (subdirectory)
│   └── services/ (subdirectory)
├── pubspec.yaml (package configuration)
├── README.md (this file)
├── CHANGELOG.md (version history)
├── LICENSE (MIT License)
├── analysis_options.yaml (linter configuration)
└── .gitignore

Dependencies #

The package includes:

  • flutter: SDK dependency
  • http: ^1.2.0 (for REST API calls in api_service_7.dart)
  • camera: ^0.10.0 (for AR/VR features in arvr.dart)

Requirements #

  • Dart SDK: >=2.17.0 <4.0.0
  • Flutter: >=2.5.0
  • Null Safety: Fully supported

Publishing This Package #

To publish to pub.dev and make it available globally:

1. Create a pub.dev Account #

Visit pub.dev and create an account.

2. Update pubspec.yaml #

  • Update the homepage, repository, and issue_tracker fields with your GitHub URLs
  • Update the author field with your information
  • Ensure the description is clear and concise

3. Verify Package Quality #

flutter pub publish --dry-run

4. Publish to pub.dev #

flutter pub publish

After publishing, users anywhere can simply run:

flutter pub add codered

Usage Examples #

Using Calculator Module #

import 'package:flutter/material.dart';
import 'package:codered/calculator.dart';

void main() {
  runApp(MyApp());
}

Using API Service #

import 'package:codered/api_service_7.dart';
import 'package:codered/post_7.dart';

final apiService = ApiService();
final posts = await apiService.getPosts();

Using Shopping Cart #

import 'package:codered/cart_8.dart';
import 'package:codered/product_8.dart';

final cart = Cart();
final product = Product(id: 1, name: "Widget", price: 9.99);
cart.addProduct(product);
final total = cart.getTotalPrice();

Using Unit Converter #

import 'package:codered/unit_converter.dart';

// Use the unit converter logic

Using BMI Calculator #

import 'package:codered/bmi.dart';

// Run BMI calculation app

Code Quality #

This package includes:

  • ✅ Null safety throughout
  • ✅ Comprehensive linter configuration
  • ✅ Dart format compliance
  • ✅ Type annotations
  • ✅ Proper documentation

Run analysis to verify code quality:

dart analyze

Support & Contributing #

For issues, questions, or contributions:

  1. Check the individual module source code comments
  2. Review the usage examples above
  3. Refer to the specific module implementation for API details

Each module is self-contained and includes inline documentation where appropriate.

License #

This package is released under the MIT License. See LICENSE file for details.

Version History #

See CHANGELOG.md for version history and updates.


CoderED - Making reusable Dart/Flutter code accessible everywhere! 🚀

0
likes
50
points
51
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A comprehensive Dart/Flutter utility package containing 65+ reusable code modules covering animations, UI components, services, models, and more.

Repository (GitHub)

License

MIT (license)

Dependencies

camera, flutter, flutter_tts, google_maps_flutter, http, image_picker, percent_indicator, speech_to_text, url_launcher, vibration, video_player

More

Packages that depend on codered