Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions app/lib/screens/connect_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class _ConnectScreenState extends State<ConnectScreen> {
body: Center(
child: ConstrainedBox(
constraints: const BoxConstraints(maxWidth: 420),
child: Padding(
child: SingleChildScrollView(
padding: const EdgeInsets.all(32),
child: Column(
mainAxisSize: MainAxisSize.min,
Expand Down Expand Up @@ -150,9 +150,9 @@ class _ConnectScreenState extends State<ConnectScreen> {
color: scheme.onSurface.withOpacity(0.7))),
]),
const SizedBox(height: 8),
_code('cd <your-folder>/NexaNote'),
_code('python main.py'),
_code('# or: bash nexanote.sh'),
_code('cd ~/NexaNote'),
_code('bash nexanote.sh'),
_code('# or: python main.py'),
],
),
),
Expand All @@ -168,6 +168,7 @@ class _ConnectScreenState extends State<ConnectScreen> {
padding: const EdgeInsets.only(top: 4),
child: Text(
text,
overflow: TextOverflow.ellipsis,
style: const TextStyle(
fontFamily: 'monospace', fontSize: 12, color: Color(0xFF6366F1)),
),
Expand Down
2 changes: 1 addition & 1 deletion app/lib/services/app_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@ class AppState extends ChangeNotifier {
return result['summary'] ?? 'Sync complete';
} catch (e) { return 'Sync failed: $e'; }
}
}
}
6 changes: 5 additions & 1 deletion app/linux/runner/my_application.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,20 @@ G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION)
static void my_application_activate(GApplication* application) {
MyApplication* self = MY_APPLICATION(application);
GtkWindow* window = GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application)));
gtk_window_set_title(window, "NexaNote");
gtk_window_set_default_size(window, 1280, 800);
gtk_widget_show(GTK_WIDGET(window));

g_autoptr(FlDartProject) project = fl_dart_project_new();
fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments);

FlView* view = fl_view_new(project);
gtk_widget_set_hexpand(GTK_WIDGET(view), TRUE);
gtk_widget_set_vexpand(GTK_WIDGET(view), TRUE);
gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view));
fl_register_plugins(FL_PLUGIN_REGISTRY(view));
gtk_widget_grab_focus(GTK_WIDGET(view));

gtk_widget_show_all(GTK_WIDGET(window));
}

static void my_application_dispose(GObject* object) {
Expand Down
Empty file modified nexanote.sh
100755 → 100644
Empty file.
Loading