pluto_code_editor
所属分类:代码编辑器
开发工具:Dart
文件大小:4635KB
下载次数:0
上传日期:2022-07-18 19:01:18
上 传 者:
sh-1993
说明: 这是PlutoCode中用于编程Pluto机器人套件的文本编辑器的存储库。
(This is the repository of text editor used in PlutoCode for programming Pluto robotic kit.)
文件列表:
.metadata (309, 2022-07-19)
CHANGELOG.md (323, 2022-07-19)
LICENSE (1162, 2022-07-19)
analysis_options.yaml (154, 2022-07-19)
assets (0, 2022-07-19)
assets\pluto_code_editor_demo.gif (4898019, 2022-07-19)
example (0, 2022-07-19)
example\.metadata (305, 2022-07-19)
example\analysis_options.yaml (1453, 2022-07-19)
example\android (0, 2022-07-19)
example\android\app (0, 2022-07-19)
example\android\app\build.gradle (1906, 2022-07-19)
example\android\app\src (0, 2022-07-19)
example\android\app\src\debug (0, 2022-07-19)
example\android\app\src\debug\AndroidManifest.xml (327, 2022-07-19)
example\android\app\src\main (0, 2022-07-19)
example\android\app\src\main\AndroidManifest.xml (2178, 2022-07-19)
example\android\app\src\main\kotlin (0, 2022-07-19)
example\android\app\src\main\kotlin\com (0, 2022-07-19)
example\android\app\src\main\kotlin\com\example (0, 2022-07-19)
example\android\app\src\main\kotlin\com\example\example (0, 2022-07-19)
example\android\app\src\main\kotlin\com\example\example\MainActivity.kt (124, 2022-07-19)
example\android\app\src\main\res (0, 2022-07-19)
example\android\app\src\main\res\drawable-v21 (0, 2022-07-19)
example\android\app\src\main\res\drawable-v21\launch_background.xml (438, 2022-07-19)
example\android\app\src\main\res\drawable (0, 2022-07-19)
example\android\app\src\main\res\drawable\launch_background.xml (434, 2022-07-19)
example\android\app\src\main\res\mipmap-hdpi (0, 2022-07-19)
example\android\app\src\main\res\mipmap-hdpi\ic_launcher.png (544, 2022-07-19)
example\android\app\src\main\res\mipmap-mdpi (0, 2022-07-19)
example\android\app\src\main\res\mipmap-mdpi\ic_launcher.png (442, 2022-07-19)
example\android\app\src\main\res\mipmap-xhdpi (0, 2022-07-19)
example\android\app\src\main\res\mipmap-xhdpi\ic_launcher.png (721, 2022-07-19)
example\android\app\src\main\res\mipmap-xxhdpi (0, 2022-07-19)
... ...
## Pluto Code Editor
This is a complete code editor with line number, syntax highlighting and an output window.
It is made for python programming, specifically for bonicPython which runs inside Pluto (a modular robotic kit).
![](https://github.com/Autobonics/pluto_code_editor/blob/main/assets/pluto_code_editor_demo.gif)
## Features
1. Editor with line number
2. Syntax highlighting
3. Various Themes including darcula, android_studio etc
4. Output window which listen to a stream
5. Special charectors keyboard_bar for easy coding :).
## Getting started
The Example provided is pretty much everything you need to get started.
## Usage
```dart
return Scaffold(
appBar: AppBar(
backgroundColor: const Color(0xff0088CC),
elevation: 0,
title: const Text("Pluto Code Editor"),
),
endDrawer: PlutoOutputViewer(
controller: controller,
output: streamController.stream,
),
body: PlutoCodeEditor(
controller: controller,
),
floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
floatingActionButton: PlutoEditorBottomBar(
controller: controller,
keys: const [
':',
'#',
'(',
')',
'[',
']',
'.',
"'",
],
onCodeRun: () {
isRunning = true;
void showHelloWorld() async {
if (!isRunning) return;
streamController.sink.add("Hello world\n");
await Future.delayed(const Duration(milliseconds: 200));
showHelloWorld();
}
showHelloWorld();
},
onPause: () {
isRunning = false;
},
),
);
```
## Additional information
The package is made specifically to work inside 'Pluto Code' which is an integrated platform
for learn programming with pluto hardware. Pluto is a modular robotic kit to learn next-generation
technology skills such as robotcs, AI, electronics and programming. Feel free to check out
https://autobonics.com/
近期下载者:
相关文件:
收藏者: