input tags 50%

This commit is contained in:
Valentin CZERYBA 2024-10-07 23:59:15 +02:00
parent 47d80791e5
commit 7e6de0aa38

View File

@ -394,11 +394,7 @@ class _UpdateeventImageState extends State<UpdateeventImage>
onTap: () => onTapFunctionTimePicker( onTap: () => onTapFunctionTimePicker(
context: context, position: "end")), context: context, position: "end")),
), ),
Padding( TextFieldTags<String>(
padding: const EdgeInsets.only(
left: 15.0, right: 15.0, top: 15, bottom: 0),
//padding: EdgeInsets.symmetric(horizontal: 15),
child: TextFieldTags<String>(
textfieldTagsController: _stringTagController, textfieldTagsController: _stringTagController,
initialTags: ['python', 'java'], initialTags: ['python', 'java'],
textSeparators: const [' ', ','], textSeparators: const [' ', ','],
@ -409,11 +405,19 @@ class _UpdateeventImageState extends State<UpdateeventImage>
return null; return null;
}, },
inputFieldBuilder: (context, inputFieldValues) { inputFieldBuilder: (context, inputFieldValues) {
return TextField( return Padding(
padding: const EdgeInsets.only(
left: 15.0, right: 15.0, top: 15, bottom: 0),
child: TextField(
controller: inputFieldValues.textEditingController, controller: inputFieldValues.textEditingController,
decoration: InputDecoration(
border: OutlineInputBorder(),
labelText: 'Tags evenement',
hintText:
'Cliquez ici pour ajouter ou supprimer des tags'),
focusNode: inputFieldValues.focusNode, focusNode: inputFieldValues.focusNode,
); ));
})), }),
Padding( Padding(
padding: const EdgeInsets.only( padding: const EdgeInsets.only(
left: 15.0, right: 15.0, top: 15, bottom: 0), left: 15.0, right: 15.0, top: 15, bottom: 0),