mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2026-02-21 15:44:30 +01:00
new: server tag
This commit is contained in:
@@ -19,4 +19,16 @@ extension StringOrderX on StringOrder {
|
||||
if (index == -1) return;
|
||||
this[index] = newId;
|
||||
}
|
||||
|
||||
int index(String id) {
|
||||
return indexOf(id);
|
||||
}
|
||||
|
||||
void moveById(String oid, String nid, StoreProperty property) {
|
||||
final index = indexOf(oid);
|
||||
if (index == -1) return;
|
||||
final newIndex = indexOf(nid);
|
||||
if (newIndex == -1) return;
|
||||
move(index, newIndex, property);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -141,7 +141,7 @@ void showSnippetDialog(
|
||||
context.pop();
|
||||
AppRoute(const SnippetEditPage(), 'edit snippet').go(context);
|
||||
},
|
||||
child: Text(s.addOne),
|
||||
child: Text(s.add),
|
||||
)
|
||||
],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user