[enter image description here][1]
Container( height: 40, width: width * 0.57, child: DropdownSearch(
dropDownButton: const Icon(
Icons.arrow_drop_down,
size: 20,
color: Color.fromRGBO(155, 155, 155, 1),
),
mode: Mode.MENU,
showAsSuffixIcons: true,
dropdownSearchDecoration: underlineDecoration,
showSelectedItem: true,
items: DataList,
showClearButton: false,
onChanged: setselected,
selectedItem: this.defaultTemplateOption,
),
)
HtmlEditor( height: height * 0.45, controller: html_editor_controller, hint: "Enter the text here", toolbar: [ Style(), Font(buttons: [ FontButtons.bold, FontButtons.underline, FontButtons.clear ]), ColorBar(buttons: [ColorButtons.color]), Paragraph(buttons: [ ParagraphButtons.ul, ParagraphButtons.ol, ParagraphButtons.paragraph ]), Insert(buttons: [ InsertButtons.link, InsertButtons.picture, InsertButtons.video, InsertButtons.table ]), Misc(buttons: [ MiscButtons.fullscreen, MiscButtons.codeview, MiscButtons.help ]) ], callbacks: Callbacks( onEnter: () { print('enter/return pressed'); }, onFocus: () { print('editor focused'); }, onBlur: () { print('editor unfocused'); }, onBlurCodeview: () { print('codeview either focused or unfocused'); }, onKeyDown: (int keyCode) { print('$keyCode key downed'); print( 'current character count: ${html_editor_controller}'); }, onKeyUp: (int keyCode) { print('$keyCode key released'); }, onPaste: () { print('pasted into editor'); }, ), plugins: [], ) [1]: https://i.stack.imgur.com/1w5rq.png
Aucun commentaire:
Enregistrer un commentaire