Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.

Replace story tags text input with chips input #29

Open
aabounegm opened this issue Mar 4, 2022 · 0 comments
Open

Replace story tags text input with chips input #29

aabounegm opened this issue Mar 4, 2022 · 0 comments

Comments

@aabounegm
Copy link
Collaborator

The story info editor contains a field for the story tags. It is currently a text input, but it should be converted to a chips input with autocomplete from the list of tags added by other users before for a better UX.
The lines in question are:

TextFormField(
decoration: const InputDecoration(
labelText: 'Story tags',
prefixIcon: Icon(Icons.tag_rounded),
),
initialValue: prettyTags(
StoryTranslation.get(editor.translation)?.tags,
separator: ' ',
),
onChanged: (s) {
StoryTranslation.get(editor.translation)?.tags =
s.split(' ').where((t) => t.isNotEmpty).toList();
},
),

@aabounegm aabounegm mentioned this issue Mar 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant