fixed nullable mess with editor ids
Some checks failed
Build CI / AMD64 Build (push) Has been cancelled
Build CI / ARM64 Build (push) Has been cancelled

This commit is contained in:
2026-02-28 15:20:26 +05:30
parent 07f222a87e
commit 4f0503ca50
8 changed files with 67 additions and 53 deletions

View File

@@ -14,7 +14,7 @@ class EditorEditor extends StatelessWidget {
return Scaffold(
appBar: AppBar(title: Text("/ PROject Dashboard / Editors")),
floatingActionButton: EditorFAB(),
body: gm.lenEdt > 0
body: gm.lenEdt - 1 > 0
? LayoutBuilder(
builder: (context, constraints) {
int cols = (constraints.maxWidth / 250).floor();
@@ -25,7 +25,7 @@ class EditorEditor extends StatelessWidget {
mainAxisSpacing: 10,
childAspectRatio: 1.5,
),
itemCount: gm.lenEdt,
itemCount: gm.lenEdt - 1,
itemBuilder: (context, index) => EditorCard(index),
);
},