flutter_monaco_editor 0.5.1
flutter_monaco_editor: ^0.5.1 copied to clipboard
A complete Flutter wrapper for Monaco Editor (VS Code's editor) with full API parity across Web, Android, iOS, macOS, Linux, and Windows.
Changelog #
0.5.1 #
- Promote the live demo link to the top of the README so it shows on pub.flutter-io.cn's package page.
0.5.0 #
- First pub.flutter-io.cn release.
- Works on Web, Android, iOS, macOS, Linux, and Windows.
- See per-phase notes below for the API surface.
Phase 5 — Diff editor, multi-model, custom themes #
- Diff editor:
MonacoDiffEditorwidget +MonacoDiffController. Side-by-side and inline modes viarenderSideBySide. Separate original/modified content streams. - Custom themes:
MonacoThemes.defineTheme(name, MonacoTheme(base, rules, colors))+MonacoThemes.setTheme(name)wrappingmonaco.editor.defineTheme/setTheme. - Multi-model:
controller.createModel / switchToModel / disposeMonacoModelfor IDE-style tab switching (models are independent of editors). - Bridge JS handlers for all three.
0.4.0 #
Phase 4 — Native platform (webview) #
flutter_monaco_editor_nativepackage:MonacoNative.register()installs webview-based hooks into the main package.NativeMonacoBridgeoverwebview_flutterwithJavaScriptChannel+runJavaScript.- One WebView per editor (documented limitation).
0.3.0 #
Phase 3 — Language providers #
MonacoLanguages.register{Completion,Hover,SignatureHelp,Definition}Provider.- Dart-side async providers via JS ↔ Dart round-trip through the bridge.