Popup menu UI optimization & request highlighting

This commit is contained in:
wanghongenpin
2024-10-20 13:22:58 +08:00
parent a01b03d97b
commit 11666ea9fc
13 changed files with 366 additions and 197 deletions

View File

@@ -143,8 +143,7 @@ class RequestSequenceState extends State<RequestSequence> with AutomaticKeepAliv
Divider(thickness: 0.2, height: 0, color: Theme.of(context).dividerColor),
itemCount: view.length,
itemBuilder: (context, index) {
GlobalKey<RequestRowState> key = GlobalKey();
indexes[view.elementAt(index)] = key;
GlobalKey<RequestRowState> key = indexes[view.elementAt(index)] ??= GlobalKey();
return RequestRow(
index: view.length - index,
key: key,