mirror of
https://github.com/igorescodro/alkaa.git
synced 2025-05-17 11:06:00 +08:00
🧱 Add @CommonIgnoredOnParcel
to HomeDestination
members
The `title` and `icon` members of the `HomeDestination` data objects are now annotated with `@CommonIgnoredOnParcel`. This will suppress the build warning related to these properties.
This commit is contained in:
@ -7,6 +7,7 @@ import androidx.compose.material.icons.outlined.MoreHoriz
|
||||
import androidx.compose.material.icons.outlined.Search
|
||||
import androidx.compose.ui.graphics.vector.ImageVector
|
||||
import com.escodro.navigationapi.marker.TopLevel
|
||||
import com.escodro.parcelable.CommonIgnoredOnParcel
|
||||
import com.escodro.parcelable.CommonParcelize
|
||||
import com.escodro.resources.Res
|
||||
import com.escodro.resources.home_title_categories
|
||||
@ -21,28 +22,44 @@ object HomeDestination {
|
||||
@Serializable
|
||||
@CommonParcelize
|
||||
data object TaskList : Destination, TopLevel {
|
||||
|
||||
@CommonIgnoredOnParcel
|
||||
override val title: StringResource = Res.string.home_title_tasks
|
||||
|
||||
@CommonIgnoredOnParcel
|
||||
override val icon: ImageVector = Icons.Outlined.Check
|
||||
}
|
||||
|
||||
@Serializable
|
||||
@CommonParcelize
|
||||
data object Search : Destination, TopLevel {
|
||||
|
||||
@CommonIgnoredOnParcel
|
||||
override val title: StringResource = Res.string.home_title_search
|
||||
|
||||
@CommonIgnoredOnParcel
|
||||
override val icon: ImageVector = Icons.Outlined.Search
|
||||
}
|
||||
|
||||
@Serializable
|
||||
@CommonParcelize
|
||||
data object CategoryList : Destination, TopLevel {
|
||||
|
||||
@CommonIgnoredOnParcel
|
||||
override val title: StringResource = Res.string.home_title_categories
|
||||
|
||||
@CommonIgnoredOnParcel
|
||||
override val icon: ImageVector = Icons.Outlined.Bookmark
|
||||
}
|
||||
|
||||
@Serializable
|
||||
@CommonParcelize
|
||||
data object Preferences : Destination, TopLevel {
|
||||
|
||||
@CommonIgnoredOnParcel
|
||||
override val title: StringResource = Res.string.home_title_settings
|
||||
|
||||
@CommonIgnoredOnParcel
|
||||
override val icon: ImageVector = Icons.Outlined.MoreHoriz
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user