-
Notifications
You must be signed in to change notification settings - Fork 658
Client Add/Edit Note #2480
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
Client Add/Edit Note #2480
Conversation
| ) | ||
|
|
||
| OutlinedTextField( | ||
| value = state.textFieldNotesPayload.note ?: "", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have MifosOutLined TextField can't we use it here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah we can use but make some changes like shape, textstyle and color use. one MifosOutLined TextField composable have these all but it have trailing space which is the text is not start from starting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think some one edited it it is taking leading icon space eventhough it was not there
see once
| } | ||
| }.onFailure { | ||
| mutableStateFlow.update { | ||
| it.copy( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't we use
DataState.Loading
DataState.Success
DataState.Failure
that approach because it was the one following in mifos repos
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one?
| composable<NoteRoute> { updateNoteList -> | ||
| NoteScreenScaffold( | ||
| onNavigateBack = onNavigateBack, | ||
| onNavigateAddEditNote = onNavigateAddEditNote, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead fetch this in viewmodel from savedStateHandle
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when I go back from edit screen then the previous screen not automatically update and when I use savedStateHandle in viewModel then it not call loadnote function again to refresh data.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I means viemModel not fetch savedStateHandle data when I navigateBack from editnoteScreen to noteListScreen
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok understood
d27c8fc to
06958a3
Compare
Fixes - Jira-#582