Skip to content

Commit

Permalink
Fix icon urls
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedRejeb committed Mar 12, 2023
1 parent 096126b commit c655f91
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
Binary file modified icons/dna.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ import org.koin.android.ext.koin.androidContext
import org.koin.core.scope.Scope

actual fun Scope.sqlDriverFactory(): SqlDriver {
println("driver created")
return AndroidSqliteDriver(PokemonDatabase.Schema, androidContext(), "${DatabaseConstants.name}.db")
}
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ internal fun MainScreen(component: MainComponent) {
},
modifier = Modifier.padding(LocalSafeArea.current)
) { paddingValues ->
println("LocalSafeArea" + LocalSafeArea.current)
MainContent(
state = state,
onEvent = component::onEvent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,28 @@ data class CategoryState(
companion object {
val pokedex = CategoryState(
title = "Pokedex",
iconUrl = "https://cdn-icons-png.flaticon.com/512/361/361998.png",
iconUrl = "https://raw.githubusercontent.com/M0Coding/Pokedex/main/icons/pokeball.png",
startColor = Red300,
endColor = Red500,
)

val moves = CategoryState(
title = "Moves",
iconUrl = "https://cdn-icons-png.flaticon.com/512/616/616494.png",
iconUrl = "https://raw.githubusercontent.com/M0Coding/Pokedex/main/icons/electric.png",
startColor = Yellow300,
endColor = Yellow500,
)

val evolutions = CategoryState(
title = "Evolutions",
iconUrl = "https://cdn-icons-png.flaticon.com/512/9077/9077327.png",
iconUrl = "https://raw.githubusercontent.com/M0Coding/Pokedex/main/icons/dna.png",
startColor = Green300,
endColor = Green500,
)

val locations = CategoryState(
title = "Locations",
iconUrl = "https://cdn-icons-png.flaticon.com/512/149/149060.png",
iconUrl = "https://raw.githubusercontent.com/M0Coding/Pokedex/main/icons/location.png",
startColor = Blue300,
endColor = Blue500,
)
Expand Down
1 change: 0 additions & 1 deletion shared/src/iosMain/kotlin/com/mocoding/pokedex/main.ios.kt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ fun MainViewController(

// Bind safe area as the value for LocalSafeArea
CompositionLocalProvider(LocalSafeArea provides safeArea) {
println(safeArea)
PokedexTheme {
Surface(
color = MaterialTheme.colorScheme.background,
Expand Down

0 comments on commit c655f91

Please sign in to comment.