feat: Add bulk edit forms

This commit is contained in:
Anton Stubenbord
2023-03-12 18:26:44 +01:00
parent 81822f5897
commit a5df4deeb9
7 changed files with 564 additions and 305 deletions

View File

@@ -137,7 +137,7 @@ class _LabelFormFieldState<T extends Label> extends State<LabelFormField<T>> {
decoration: InputDecoration(
prefixIcon: widget.prefixIcon,
label: Text(widget.textFieldLabel),
hintText: _getLocalizedHint(context),
hintText: S.of(context)!.startTyping,
suffixIcon: _buildSuffixIcon(context),
),
selectionToTextTransformer: (suggestion) {
@@ -192,14 +192,4 @@ class _LabelFormFieldState<T extends Label> extends State<LabelFormField<T>> {
);
_textEditingController.clear();
}
String _getLocalizedHint(BuildContext context) {
if (T == Correspondent) {
return S.of(context)!.startTyping;
} else if (T == DocumentType) {
return S.of(context)!.startTyping;
} else {
return S.of(context)!.filterTags;
}
}
}