added prj editing page, must change to dialog bcz page too big
This commit is contained in:
@@ -23,10 +23,14 @@ class ProjectCard extends StatelessWidget {
|
||||
),
|
||||
onHover: (st) => gm.setHoverShow(id, st),
|
||||
onTap: () {
|
||||
var shell = Shell();
|
||||
Editor edt1 = gm.editors[0];
|
||||
String comm = edt1.commandTemplate.replaceAll("\$path", prj.path.path);
|
||||
shell.run(comm);
|
||||
// var shell = Shell();
|
||||
// Editor edt1 = gm.editors[0];
|
||||
// String comm = edt1.commandTemplate.replaceAll("\$path", prj.path.path);
|
||||
// shell.run(comm);
|
||||
// ScaffoldMessenger.of(context).showSnackBar(
|
||||
// SnackBar(content: Text("Launched "), duration: Duration(seconds: 3)),
|
||||
// );
|
||||
Navigator.pushNamed(context, "/manageprj", arguments: id);
|
||||
},
|
||||
child: Center(
|
||||
child: Column(
|
||||
@@ -46,15 +50,15 @@ class ProjectCard extends StatelessWidget {
|
||||
],
|
||||
),
|
||||
gm.getHoverShow(id) ? Text("${prj.path.path}") : Container(),
|
||||
gm.getHoverShow(id)
|
||||
? IconButton(
|
||||
icon: Icon(Icons.close),
|
||||
onPressed: () => gm.delPrj(id),
|
||||
style: IconButton.styleFrom(
|
||||
overlayColor: Color(0xffff0000),
|
||||
),
|
||||
)
|
||||
: Container(),
|
||||
// gm.getHoverShow(id)
|
||||
// ? IconButton(
|
||||
// icon: Icon(Icons.close),
|
||||
// onPressed: () => gm.delPrj(id),
|
||||
// style: IconButton.styleFrom(
|
||||
// overlayColor: Color(0xffff0000),
|
||||
// ),
|
||||
// )
|
||||
// : Container(),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user