input tags 50%
This commit is contained in:
parent
47d80791e5
commit
7e6de0aa38
@ -394,26 +394,30 @@ class _UpdateeventImageState extends State<UpdateeventImage>
|
||||
onTap: () => onTapFunctionTimePicker(
|
||||
context: context, position: "end")),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
left: 15.0, right: 15.0, top: 15, bottom: 0),
|
||||
//padding: EdgeInsets.symmetric(horizontal: 15),
|
||||
child: TextFieldTags<String>(
|
||||
textfieldTagsController: _stringTagController,
|
||||
initialTags: ['python', 'java'],
|
||||
textSeparators: const [' ', ','],
|
||||
validator: (String tag) {
|
||||
if (tag == 'php') {
|
||||
return 'Php not allowed';
|
||||
}
|
||||
return null;
|
||||
},
|
||||
inputFieldBuilder: (context, inputFieldValues) {
|
||||
return TextField(
|
||||
TextFieldTags<String>(
|
||||
textfieldTagsController: _stringTagController,
|
||||
initialTags: ['python', 'java'],
|
||||
textSeparators: const [' ', ','],
|
||||
validator: (String tag) {
|
||||
if (tag == 'php') {
|
||||
return 'Php not allowed';
|
||||
}
|
||||
return null;
|
||||
},
|
||||
inputFieldBuilder: (context, inputFieldValues) {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
left: 15.0, right: 15.0, top: 15, bottom: 0),
|
||||
child: TextField(
|
||||
controller: inputFieldValues.textEditingController,
|
||||
decoration: InputDecoration(
|
||||
border: OutlineInputBorder(),
|
||||
labelText: 'Tags evenement',
|
||||
hintText:
|
||||
'Cliquez ici pour ajouter ou supprimer des tags'),
|
||||
focusNode: inputFieldValues.focusNode,
|
||||
);
|
||||
})),
|
||||
));
|
||||
}),
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
left: 15.0, right: 15.0, top: 15, bottom: 0),
|
||||
|
Loading…
x
Reference in New Issue
Block a user