Add new tags to top of list when editing profiles

This commit is contained in:
stopflock
2025-12-17 16:49:43 -06:00
parent f8643da8e2
commit aab4f6d445

View File

@@ -126,7 +126,7 @@ class _ProfileEditorState extends State<ProfileEditor> {
style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 16)),
if (widget.profile.editable)
TextButton.icon(
onPressed: () => setState(() => _tags.add(const MapEntry('', ''))),
onPressed: () => setState(() => _tags.insert(0, const MapEntry('', ''))),
icon: const Icon(Icons.add),
label: Text(locService.t('profileEditor.addTag')),
),