code_forge 1.1.0 copy "code_forge: ^1.1.0" to clipboard
code_forge: ^1.1.0 copied to clipboard

A sophisticated code editor package with AI completion, LSP support, syntax highlighting, and advanced editing capabilities.

1.0.0 #

🎉 Initial Release

CodeForge is a sophisticated, feature-rich code editor widget for Flutter applications, inspired by VS Code and Monaco Editor. This release introduces a comprehensive set of editing capabilities with modern developer experience features.

✨ Core Features #

📝 Advanced Text Editing

  • Efficient Text Management: Uses rope data structures for optimal performance with large files
  • Multi-language Syntax Highlighting: Support for numerous programming languages via re_highlight
  • Code Folding: Visual fold/unfold indicators with automatic range detection
  • Smart Indentation: Auto-indentation with customizable behavior
  • Bracket Matching: Automatic bracket highlighting and matching
  • Line Operations: Move lines up/down, duplicate lines, smart indentation
  • Word Navigation: Ctrl+arrow key navigation and word-level deletion

🎨 Customizable UI & Theming

  • Flexible Styling: Extensive customization options for all UI elements
  • Theme Support: Built-in VS2015 dark theme with full customization
  • Gutter Customization: Line numbers, fold icons, error/warning highlighting
  • Selection Styling: Custom cursor colors, selection highlighting, cursor bubbles
  • Overlay Styling: Suggestion popups, hover documentation with themes
  • Font Integration: Custom icon fonts for completion items (auto-loaded)

🔧 Developer Experience

  • Undo/Redo System: Sophisticated operation merging with timestamp-based grouping
  • Read-only Mode: Optional read-only editing for display purposes
  • Auto-focus: Automatic focus on widget mount
  • Line Wrapping: Configurable line wrapping vs horizontal scrolling
  • Indentation Guides: Visual guides for code structure
  • Search Highlighting: Highlight search results and matches

🚀 Language Server Protocol (LSP) Integration #

  • Full LSP Support: Complete Language Server Protocol implementation
  • Semantic Highlighting: Advanced token-based syntax coloring
  • Intelligent Completions: Context-aware code completion with custom icons
  • Hover Documentation: Rich hover information with markdown support
  • Diagnostics Integration: Real-time error and warning display
  • Multiple Server Types: Support for stdio and WebSocket LSP servers
  • Document Synchronization: Bidirectional sync with LSP servers
  • Error Gutter: Visual error/warning indicators in line numbers

🤖 AI-Powered Code Completion #

  • Multi-Model Support: Integration with Gemini and extensible to other AI models
  • Completion Modes: Auto, manual, and mixed completion triggering
  • Smart Debouncing: Prevents excessive API calls during typing
  • Response Processing: Intelligent parsing and code cleaning
  • Custom Instructions: Configurable AI prompts for different use cases
  • Caching: Response caching for improved performance

🎯 Key Capabilities #

Performance & Efficiency

  • Optimized Rendering: Custom viewport with efficient repaint management
  • Large File Support: Handles files of any size with rope-based operations
  • Debounced Operations: Semantic token updates and AI requests are debounced
  • Memory Efficient: Minimal memory footprint with smart caching

Integration & Extensibility

  • Flutter Native: Seamless integration with Flutter's text input system
  • Custom Controllers: Flexible controller architecture for advanced use cases
  • Event Streaming: LSP response streaming for real-time updates
  • Plugin Architecture: Extensible design for custom features

Accessibility & UX

  • Keyboard Shortcuts: Full keyboard navigation support
  • Context Menus: Right-click context menus with copy/paste/select-all
  • Visual Feedback: Loading states, error handling, and user feedback
  • Mobile Support: Touch-friendly interactions for mobile platforms

📚 Documentation & Examples #

  • Comprehensive API Docs: Fully documented public APIs with examples
  • Example Application: Complete working example in /example/
  • Type Safety: Strong typing throughout the codebase
  • Error Handling: Robust error handling with user-friendly messages

🔧 Technical Highlights #

  • Pure Dart: No native dependencies, works on all Flutter platforms
  • Widget Architecture: Built as a proper Flutter widget with state management
  • Custom Rendering: Optimized rendering pipeline for code editing
  • Test Coverage: Comprehensive test suite for reliability
  • Linting: Follows Flutter best practices and linting rules

🎨 Supported Languages & Features #

Syntax Highlighting: Dart, Python, JavaScript, TypeScript, Java, C++, C#, Go, Rust, PHP, Ruby, Swift, Kotlin, Scala, and many more via re_highlight

LSP Servers: Compatible with any LSP-compliant language server (Dart Analysis Server, Pyright, TypeScript, etc.)

AI Models: Gemini integration with extensible architecture for other providers


This release establishes CodeForge as a powerful, production-ready code editor for Flutter applications, offering the same level of sophistication found in professional code editors while maintaining Flutter's declarative UI paradigm.

1.0.1 #

* Updated README.md

1.0.2 #

* Updated README.md

1.1.0 #

* Fixed keyborad not appearing bug in Android.
* Added more public API methods in the controller, such as copy, paste, selectAll, cut, arrow key navigations, etc
21
likes
160
points
52
downloads

Publisher

unverified uploader

Weekly Downloads

A sophisticated code editor package with AI completion, LSP support, syntax highlighting, and advanced editing capabilities.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, http, markdown_widget, meta, re_highlight, web_socket_channel

More

Packages that depend on code_forge