beautified project editing window, added theme
All checks were successful
Build CI / AMD64 Build (push) Successful in 2m23s

This commit is contained in:
2026-03-19 13:55:04 +05:30
parent a8d397a53e
commit 823690aed3
5 changed files with 137 additions and 83 deletions

View File

@@ -17,7 +17,30 @@ class EditorFAB extends StatelessWidget {
showDialog(
context: context,
builder: (context) => SimpleDialog(
title: Text("Add Editor"),
title: Row(
mainAxisAlignment: .spaceBetween,
children: [
FilledButton(
child: Text("Cancel"),
onPressed: () => Navigator.pop(context),
),
Text("Add Editor"),
ElevatedButton(
child: Text(" Add "),
onPressed: () {
Provider.of<GlobalModel>(context, listen: false).addEdt(
Editor.create(
nameController.text,
commandController.text,
commandTemplateController.text,
),
);
Navigator.pop(context);
},
),
],
),
children: [
Padding(
padding: const EdgeInsets.all(8.0),
@@ -45,30 +68,6 @@ class EditorFAB extends StatelessWidget {
child: const Text("Example: zed -n \$path"),
padding: const EdgeInsets.all(9.0),
),
Row(
mainAxisAlignment: .end,
children: [
TextButton(
child: Text("Cancel"),
onPressed: () => Navigator.pop(context),
),
TextButton(
child: Text("Add"),
onPressed: () {
Provider.of<GlobalModel>(context, listen: false).addEdt(
Editor.create(
nameController.text,
commandController.text,
commandTemplateController.text,
),
);
Navigator.pop(context);
},
),
],
),
],
),
);