-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from lucas-marciano/develop
Develop
- Loading branch information
Showing
55 changed files
with
1,821 additions
and
293 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Compose project | ||
|
||
## Introdução | ||
- Projeto serve como caso de estudo, montando a interface do seu negócio do app do iti | ||
|
||
## Proximas features | ||
- Testes unitários | ||
- Camada de dados | ||
- Testes de interface | ||
- Preview em todo os elementos | ||
- Construção de um theme sem usar as cores do material design |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
app/src/main/java/com/lucasmarciano/composeproject/data/models/ErrorVO.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.lucasmarciano.composeproject.data.models | ||
|
||
import androidx.annotation.DrawableRes | ||
import com.lucasmarciano.composeproject.R | ||
import com.lucasmarciano.composeproject.utils.extensions.emptyString | ||
|
||
internal data class ErrorVO( | ||
val image: ErrorImage = ErrorImage.CONNECTION_ERROR, | ||
val title: String, | ||
val description: String, | ||
val closeAction: String = emptyString(), | ||
val callToActionVO: CallToActionVO = CallToActionVO() | ||
) | ||
|
||
enum class ErrorImage(@DrawableRes val imageId: Int) { | ||
CONNECTION_ERROR(R.drawable.img_error_cone), | ||
EMPTY_ERROR(R.drawable.img_error_list); | ||
} |
23 changes: 23 additions & 0 deletions
23
app/src/main/java/com/lucasmarciano/composeproject/data/models/ItemTimeLineVO.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.lucasmarciano.composeproject.data.models | ||
|
||
import androidx.compose.ui.graphics.Color | ||
import com.lucasmarciano.composeproject.ui.theme.ColorBlueCard | ||
import com.lucasmarciano.composeproject.ui.theme.ColorBlueChipInfo | ||
import com.lucasmarciano.composeproject.ui.theme.ColorRedChipInfo | ||
|
||
internal data class ItemTimeLineVO( | ||
val position: Int, | ||
val id: String, | ||
val icon: String, | ||
val title: String, | ||
val value: String, | ||
val description: String, | ||
val tag: String, | ||
val tagType: ChipType = ChipType.INFO, | ||
val callToActionVO: CallToActionVO | ||
) | ||
|
||
internal enum class ChipType(val mainColor: Color, val secondaryColor: Color) { | ||
ERROR(Color.Red, ColorRedChipInfo), | ||
INFO(ColorBlueCard, ColorBlueChipInfo) | ||
} |
10 changes: 10 additions & 0 deletions
10
app/src/main/java/com/lucasmarciano/composeproject/data/models/SalesInformationVO.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.lucasmarciano.composeproject.data.models | ||
|
||
import com.lucasmarciano.composeproject.utils.extensions.emptyString | ||
|
||
data class SalesInformationVO( | ||
val title: String = emptyString(), | ||
val subtitle: String = emptyString(), | ||
val value: String = emptyString(), | ||
val icon: String = emptyString(), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 18 additions & 5 deletions
23
app/src/main/java/com/lucasmarciano/composeproject/features/home/components/BlueCardsList.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 15 additions & 3 deletions
18
app/src/main/java/com/lucasmarciano/composeproject/features/home/components/CardsList.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.