Skip to content

Commit b86b0ef

Browse files
committed
Plugins Browser
1 parent 8b34d77 commit b86b0ef

File tree

7 files changed

+80
-3
lines changed

7 files changed

+80
-3
lines changed

lib/contrib/code_text_field-1.0.2m/lib/src/code_controller.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class CodeController extends TextEditingController {
4848
final styleList = <TextStyle>[];
4949
final modifierMap = <String, CodeModifier>{};
5050
var autoCompleteKeystroke = <String>[".",":"]; //TODO: make this controllable by plugins
51-
var autoCompleteTokenDelimiter = <String>[".",":"," ","\n"]; //TODO: make this controllable by plugins
51+
var autoCompleteTokenDelimiter = <String>[" ","\n","\t","[","]","(",")","//"]; //TODO: make this controllable by plugins
5252
RegExp? styleRegExp;
5353

5454
CodeController({

lib/editor.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ class _EditorPageState extends State<EditorPage> {
263263
break;
264264
}
265265
return Tooltip(
266-
verticalOffset: 200,
266+
verticalOffset: 64,
267267
message: desc,
268268
child: InkWell(
269269
//style: TextStyle(padding: MaterialStateProperty.all(EdgeInsets.zero)),

lib/main.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import 'package:corecoder_develop/editor.dart';
2+
import 'package:corecoder_develop/plugins_browser.dart';
23
import 'package:corecoder_develop/settings.dart';
34
import 'package:corecoder_develop/util/plugins_manager.dart';
45
import 'package:corecoder_develop/util/theme_manager.dart';
@@ -47,7 +48,8 @@ class CoreCoderAppState extends State<CoreCoderApp>{
4748
routes: {
4849
"/": (context) => HomePage(),
4950
EditorPage.routeName: (context) => const EditorPage(),
50-
SettingsPage.routeName: (context) => SettingsPage()
51+
SettingsPage.routeName: (context) => SettingsPage(),
52+
PluginsBrowser.routeName: (context) => const PluginsBrowser()
5153
},
5254
),
5355
providers: <SingleChildWidget>[

lib/plugins_browser.dart

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import 'package:flutter/material.dart';
2+
class PluginsBrowser extends StatefulWidget{
3+
static const routeName = "/Settings/PluginsManager/";
4+
5+
const PluginsBrowser({Key? key}) : super(key: key);
6+
@override
7+
State<StatefulWidget> createState() => PluginsBrowserState();
8+
}
9+
10+
class PluginsBrowserState extends State<PluginsBrowser>{
11+
@override
12+
Widget build(BuildContext context) {
13+
return Scaffold(
14+
appBar: AppBar(),
15+
body:Column(
16+
children: [
17+
Text('Plugins Browser'),
18+
],
19+
)
20+
);
21+
}
22+
}

lib/settings.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import 'package:corecoder_develop/plugins_browser.dart';
12
import 'package:corecoder_develop/util/modules_manager.dart';
23
import 'package:corecoder_develop/util/theme_manager.dart';
34
import 'package:flutter/cupertino.dart';
@@ -145,6 +146,15 @@ class SettingsPage extends StatelessWidget {
145146
snapshot.data!,
146147
),
147148
),
149+
ListTile(
150+
leading: Icon(Icons.download,size: 48,),
151+
title: Text("Download Plugins"),
152+
subtitle: Text("Get plugins from the internet"),
153+
onTap: () {
154+
Navigator.pushNamed(context, PluginsBrowser.routeName);
155+
},
156+
),
157+
const Text("Installed Plugins"),
148158
Column(children:List.generate(ModulesManager.modules.length, (index) {
149159
var mod = ModulesManager.modules[index];
150160
return ListTile(

pubspec.lock

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,48 @@ packages:
106106
url: "https://pub.dartlang.org"
107107
source: hosted
108108
version: "1.0.0"
109+
firebase_core:
110+
dependency: transitive
111+
description:
112+
name: firebase_core
113+
url: "https://pub.dartlang.org"
114+
source: hosted
115+
version: "1.10.6"
116+
firebase_core_platform_interface:
117+
dependency: transitive
118+
description:
119+
name: firebase_core_platform_interface
120+
url: "https://pub.dartlang.org"
121+
source: hosted
122+
version: "4.2.3"
123+
firebase_core_web:
124+
dependency: transitive
125+
description:
126+
name: firebase_core_web
127+
url: "https://pub.dartlang.org"
128+
source: hosted
129+
version: "1.5.3"
130+
firebase_database:
131+
dependency: "direct main"
132+
description:
133+
name: firebase_database
134+
url: "https://pub.dartlang.org"
135+
source: hosted
136+
version: "9.0.4"
137+
firebase_database_platform_interface:
138+
dependency: transitive
139+
description:
140+
name: firebase_database_platform_interface
141+
url: "https://pub.dartlang.org"
142+
source: hosted
143+
version: "0.2.0+3"
144+
firebase_database_web:
145+
dependency: transitive
146+
description:
147+
name: firebase_database_web
148+
url: "https://pub.dartlang.org"
149+
source: hosted
150+
version: "0.2.0+3"
109151
flutter:
110152
dependency: "direct main"
111153
description: flutter

pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ dependencies:
5757
ffi: ^1.1.2
5858
typed_data: ^1.3.0
5959
android_external_storage: ^0.1.0
60+
firebase_database: ^9.0.4
6061

6162
dev_dependencies:
6263
flutter_test:

0 commit comments

Comments
 (0)