added proper editor buttons to prj card, APP BROKEN HERE.
All checks were successful
Build CI / AMD64 Build (push) Successful in 1m55s
Build CI / ARM64 Build (push) Successful in 7m8s

This commit is contained in:
2026-02-27 18:23:52 +05:30
parent 50c52b7619
commit 07f222a87e
7 changed files with 120 additions and 60 deletions

View File

@@ -0,0 +1,21 @@
import "package:flutter/material.dart";
import "package:prod/models/editor.dart";
import "package:prod/models/globalModel.dart";
import "package:provider/provider.dart";
class LauncherButton extends StatelessWidget {
const LauncherButton(this.eid, {super.key});
final String? eid;
@override
Widget build(BuildContext context) {
GlobalModel gm = Provider.of<GlobalModel>(context, listen: false);
final Editor edt = gm.nthEdt(gm.id2EdtMap[eid]!);
return eid == null
? Container()
: Expanded(
flex: 1,
child: TextButton(child: Text("${edt.sname}"), onPressed: () {}),
);
}
}