Notify
Notify copied to clipboard
Create a Text Editor
Create a Text Editor in AddNoteScreen where there will be buttons for Bold, Italic, Strikethrough, etc.
Can you please assign this to me?
Sure @githubashutoshsoni All the best.
@aritra-tech we have handful of libraries for compose yet they are not very customizing. can you suggest some library that does this or we need to build our own custom compose library for rich edit text? I checked out the below it does most of the job but BaseEditText does not have onValueChange function that can return the result
I suggest not to use a third party library.
Okay, I've got it working. Can you please merge single tap to top to develop branch since I got this completed as well. I will update this once I you do a quick merge to develop branch so there are no conflicts.
I have requested some changes in the PR that you have created please check it out. Once it's fixed I will merge it out.
Hey @githubashutoshsoni any updates?
I haven't resolved the issue yet. The creation of a new note functions correctly, but editing an existing note seems to be malfunctioning. Could you please review it in this pull request? #141
RichTextStyleRow(
modifier = Modifier.fillMaxWidth(),
state = basicRichTextState,
)
RichTextEditor(
state = basicRichTextState,
modifier = Modifier
.fillMaxSize(),
textStyle = TextStyle(
fontSize = 18.sp,
fontFamily = FontFamily(Font(R.font.poppins_light)),
),
keyboardOptions = KeyboardOptions.Default.copy(
capitalization = KeyboardCapitalization.Sentences,
keyboardType = KeyboardType.Text,
),
maxLines = Int.MAX_VALUE,
placeholder = {
Text(
stringResource(R.string.notes),
fontSize = 20.sp,
fontWeight = FontWeight.W500,
color = Color.Gray,
fontFamily = FontFamily(Font(R.font.poppins_light))
)
},
)
description = basicRichTextState.annotatedString.text
if (isNew) {
characterCount = title.length + description.length
} else {
addEditViewModel.updateDescription(description)
}
Hey @githubashutoshsoni can you please fix the changes that I have told you regarding the PR that you have raised.
@aritra-tech i am back assign it to me and also have you uploaded any post about changes in v1.5.1 on LinkedIn
Yeah sure All the best 👋
I have tried it today the thing is it will change all the text style rather the upcoming typed text and the library of RICH text compose will change the total structure of your description text field function which i don't want to do !!!!
Which library did you use? This one - https://github.com/MohamedRejeb/Compose-Rich-Editor
yes this one But the library of RICH text compose will change the total structure of your description text field function which i don't want to do !!!!
Okay got your point.