sugar_fast 2.0.0 copy "sugar_fast: ^2.0.0" to clipboard
sugar_fast: ^2.0.0 copied to clipboard

The ultimate Flutter development hub - A meta-package that brings together the entire Sugar ecosystem for super-fast development. Import once, get everything.

Changelog #

All notable changes to the Sugar Fast package will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

2.0.0 - 2025-08-10 πŸš€ #

🎯 MAJOR TRANSFORMATION - HUB PACKAGE ARCHITECTURE #

BREAKING CHANGE: Complete transformation from implementation package to meta-package hub for the Sugar ecosystem.

✨ Added - Hub Package System #

🌟 Meta-Package Architecture

  • SugarFast.initialize() - Unified initialization for entire Sugar ecosystem
  • Hub package structure - Single dependency for all Sugar packages
  • Ecosystem management - Centralized configuration and setup
  • Future-ready exports - Prepared for upcoming Sugar packages

πŸ“¦ Current Ecosystem Integration

  • Riverpod Sugar - Enhanced state management utilities (available now)
  • Export system - Re-exports all Sugar ecosystem packages
  • Version management - Centralized version tracking for all packages
  • Unified API - Consistent patterns across Sugar ecosystem

πŸ”§ Developer Experience

  • One dependency - Install Sugar Fast, get everything
  • Simple setup - Single SugarFast.initialize() call
  • Optional granularity - Can still install individual packages
  • Future-proof - Automatic access to new Sugar packages

πŸ—‘οΈ Removed - Legacy Implementation Code #

Widget Library Removal

  • All Sugar widgets (SugarText, SugarButton, SugarContainer, etc.)
  • Custom render objects and paint-only update system
  • Individual widget implementations and render logic
  • Widget-specific performance optimizations

DevTools & Debugging Removal

  • Live state editing system and SugarObserver
  • In-app developer panel and floating UI
  • State history tracking and analytics
  • VS Code extension integration
  • Web-based debugging interface

Legacy Architecture Cleanup

  • /lib/widgets/ directory with all widget implementations
  • /lib/core/ directory with debugging utilities
  • /lib/extensions/ directory with widget extensions
  • /web/ directory with DevTools interface

πŸ”„ Migration Guide #

From 1.x/2.0.0-dev Widget/DevTools System:

// Old - Individual implementations
import 'package:sugar_fast/widgets/sugar_text/sugar_text.dart';
SugarText('Hello World')

// Old - DevTools setup
SugarFast.init(enableDevPanel: true);

// New - Hub package approach
import 'package:sugar_fast/sugar_fast.dart';  // One import for everything
SugarFast.initialize();  // Initialize entire ecosystem
// Use regular Flutter widgets + Sugar ecosystem packages

New Hub Package Setup:

dependencies:
  sugar_fast: ^2.0.0  # Gets entire Sugar ecosystem

void main() {
  SugarFast.initialize(devMode: kDebugMode);
  runApp(MyApp());
}

🌟 Why This Transformation? #

  1. Ecosystem Focus: Better to be hub for multiple packages than single implementation
  2. Developer Productivity: One dependency for entire Sugar toolchain
  3. Maintainability: Easier to manage ecosystem vs monolithic package
  4. Future Growth: Foundation for expanding Sugar package family
  5. Modularity: Users can choose individual packages or get everything

πŸ—ΊοΈ Sugar Ecosystem Roadmap #

Phase 1 - State Management βœ…

  • βœ… Riverpod Sugar integration
  • βœ… Hub package structure
  • βœ… Unified initialization system

Phase 2 - UI Components 🚧

  • ❌ Sugar UI - Pre-built, customizable widgets
  • ❌ Component library with Material Design compliance
  • ❌ Advanced layout and interaction widgets

Phase 3 - Networking & APIs 🚧

  • ❌ Sugar Connect - HTTP/API utilities
  • ❌ Built-in error handling and retry logic
  • ❌ GraphQL and REST API helpers

Phase 4 - Theming & Design 🚧

  • ❌ Sugar Themer - Advanced theming system
  • ❌ Design token support
  • ❌ Dynamic theme switching

Phase 5 - Enhanced State Management 🚧

  • ❌ Sugar Slices - Advanced Riverpod patterns
  • ❌ Complex state management utilities
  • ❌ Time-travel debugging capabilities

πŸ“¦ Current Package Structure #

lib/
└── sugar_fast.dart              # Main hub library with exports
example/
β”œβ”€β”€ lib/main.dart                # Hub package demonstration
└── README.md                    # Example documentation

🎯 Performance Impact #

  • Zero overhead in hub package approach
  • Lazy loading of individual Sugar packages
  • Tree shaking ensures only used packages are included
  • Memory efficient - no unused implementations

1.1.0 - 2025-08-09 πŸ”₯ (LEGACY - ARCHIVED) #

This version and all previous versions are now archived. They represented the widget implementation approach which has been superseded by the hub package architecture.

Legacy Features (Now Removed) #

  • Widget library with SugarText, SugarButton, SugarContainer, etc.
  • Paint-only update system for performance
  • Custom render objects and optimization
  • Live state editing and developer tools

Note: Users who need widget-level optimizations should consider creating dedicated packages within the Sugar ecosystem rather than using the hub approach.


1.0.0 - 2025-08-09 πŸš€ (LEGACY - ARCHIVED) #

Initial widget library release - superseded by hub package architecture.


0.0.1-dev - 2025-08-01 (LEGACY - ARCHIVED) #

Development setup - superseded by hub package architecture.


Contributing #

We welcome contributions to the Sugar ecosystem! Each package has its own repository:

License #

This project is licensed under the MIT License - see the LICENSE file for details.

3
likes
160
points
66
downloads

Publisher

verified publisherionicerrrrscode.com

Weekly Downloads

The ultimate Flutter development hub - A meta-package that brings together the entire Sugar ecosystem for super-fast development. Import once, get everything.

Repository (GitHub)
View/report issues

Topics

#flutter #meta-package #developer-tools #state-management #productivity

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

flutter, flutter_riverpod, go_router_sugar, riverpod_sugar

More

Packages that depend on sugar_fast