-
Notifications
You must be signed in to change notification settings - Fork 28
Implemented Clean Architecture #35
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
base: main
Are you sure you want to change the base?
Conversation
hello sir , can u review the code!!! |
Scaffold { paddingValues -> | ||
|
||
// ---- | ||
// providing dependency |
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.
?
import com.example.quotesapp.domain.repository.QuoteRepository | ||
|
||
class QuoteRepositoryImplementation:QuoteRepository { | ||
override fun getQuote(): MutableList<Quote> { |
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.
why returning mutable?
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.
the library i'm using for for swiping cards decks requires a mutable list
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.
if we think about scaling, what if in future library changes?
the place where we are using library, there we can keep it as mutable, WDYT?
...pp-shalenMathew/app/src/main/java/com/example/quotesapp/domain/repository/QuoteRepository.kt
Outdated
Show resolved
Hide resolved
.background(Color.Transparent)){ | ||
|
||
Column(modifier = Modifier.wrapContentHeight().fillMaxWidth()) { | ||
Text(text = "Quote of the day", |
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.
hardcode?
} | ||
|
||
@Composable | ||
fun QuoteItemListSection(state: QuoteState, quoteViewModel: QuoteViewModel) { |
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.
why all compose functions in one file?
import com.example.quotesapp.domain.model.Quote | ||
|
||
data class QuoteState ( | ||
val data:MutableList<Quote> = mutableListOf(), |
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.
why mutable?
hwy there can merge this if there are no conflicts |
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.
Whats BottomNav package?
Pull Request
Description
Checklist
README.md
file with a brief overview of the project, how to set it up, and any relevant information.Screenshots
Quotes App
A simple minimalistic quotes app