-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
Overview
Currently, codemirror.dart only supports web platforms. However, there's a growing need for advanced code editing capabilities in Flutter applications, particularly on Android platforms. While the package works great for web, it would be extremely valuable to have Android support through WebView integration.
Current Limitations
- Package is web-only, limiting its use in cross-platform Flutter applications
- No direct support for Android/iOS platforms
- Lack of advanced code editing capabilities in Flutter mobile apps
Proposed Solution
Consider adding support for Android platforms through WebView integration. This would allow:
- Using codemirror.dart in Android applications via WebView
- Maintaining the rich features of CodeMirror while supporting mobile platforms
- Providing a consistent code editing experience across web and mobile
Technical Considerations
Some key points to consider for implementation:
- WebView integration patterns and best practices
- Handling mobile-specific interactions (keyboard, touch events)
- Performance optimization for mobile devices
- Communication bridge between Flutter and WebView
Alternative Solutions Currently Available
- Using simpler text editing widgets (lacking advanced features)
- Custom implementations of code editors (time-consuming and complex)
- Other packages like flutter_monaco, but they also face similar platform limitations
Impact
Adding Android support would:
- Expand the package's usability to mobile applications
- Provide Flutter developers with a robust code editing solution
- Maintain consistency with web implementations
- Fill a significant gap in the Flutter ecosystem for mobile code editing
Questions
- Is this something the team would consider implementing?
- Are there technical limitations preventing Android support?
- Would the team be open to community contributions for this feature?
References
Let me know if you need any clarification or additional information.
Sendhavshab and peter100u
Metadata
Metadata
Assignees
Labels
No labels