Skip to content

Conversation

@shalenMathew
Copy link

@shalenMathew shalenMathew commented Oct 5, 2024

Pull Request

Description

  • Implemented Clean Architecture
  • Created Events
  • Implemented Use Cases
  • Created Interface and its implementation
  • Implemented Manual DI

Checklist

  • My project includes a README.md file with a brief overview of the project, how to set it up, and any relevant information.
  • I have added a screenshot or screen recording showing the functionality of the app.
  • I have tested the project and confirmed it works as expected.

Screenshots

WhatsApp Image 2024-10-05 at 6 39 29 PM

Quotes App

A simple minimalistic quotes app

  • Follows clean architecture
  • Follows Solid Principles
  • Manual DI
  • Fetches static data for now

@shalenMathew
Copy link
Author

hello sir , can u review the code!!!

Comment on lines 29 to 32
Scaffold { paddingValues ->

// ----
// providing dependency
Copy link
Contributor

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> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why returning mutable?

Copy link
Author

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

Copy link
Contributor

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?

.background(Color.Transparent)){

Column(modifier = Modifier.wrapContentHeight().fillMaxWidth()) {
Text(text = "Quote of the day",
Copy link
Contributor

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) {
Copy link
Contributor

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(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why mutable?

@shalenMathew
Copy link
Author

hwy there can merge this if there are no conflicts

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whats BottomNav package?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants