New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change "DONE" button text #2
Comments
Hi @88hitman, Thank you for opening this issue. Something like this: TextEditor(
fonts: fonts,
text: text,
textStyle: textStyle,
textAlingment: textAlign,
decoration: EditorDecoration(
doneButton: Text('Close'), // Or Icon(Icons.close)
alignment: AlignmentDecoration(
right: ...,
left: ...,
center: ...,
),
...
)
onEditCompleted: (style, align, text) {
setState(() {
_text = text;
_textStyle = style;
_textAlign = align;
});
},
) |
This is exactly what I was looking for:) By the way, do you plan to let us choose a list of colors in this EditorDecoration widget ? |
Do you mean the colors of the palette? |
Yes exactly, I saw that you hard coded color values in your ColorPalette class. Is it final ? |
No, It's not final. |
Glad to hear it, thank you |
Hi @88hitman TextEditor(
fonts: fonts,
text: text,
textStyle: textStyle,
textAlingment: textAlign,
+ paletteColors: [
+ Colors.black,
+ Colors.white,
+ Colors.blue,
+ Colors.red,
+ Colors.green,
+ Colors.yellow,
+ Colors.pink,
+ Colors.cyanAccent,
+ ],
+ decoration: EditorDecoration(
+ doneButton: Icon(Icons.close, color: Colors.white),
+ fontFamily: Icon(Icons.title, color: Colors.white),
+ colorPalette: Icon(Icons.palette, color: Colors.white),
+ alignment: AlignmentDecoration(
+ left: Text(
+ 'left',
+ style: TextStyle(color: Colors.white),
+ ),
+ center: Text(
+ 'center',
+ style: TextStyle(color: Colors.white),
+ ),
+ right: Text(
+ 'right',
+ style: TextStyle(color: Colors.white),
+ ),
+ ),
+ ),
), I'm closing this issue, feel free to reopen it if you have any problem. |
Hi ! Firstly, thanks a lot for this plugin, its awesome
Then, I would like to be able to change the "DONE" button text by a text of my choice.
Can you please take a look to provide us a way to change it ? Thank you
The text was updated successfully, but these errors were encountered: