mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-07-29 15:19:50 +00:00
Permissions and AntiFeatures as Chip Grid
This commit is contained in:
@ -1,7 +1,11 @@
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
import com.looker.droidify.ui.compose.pages.app_detail.components.AntiFeaturesGrid
|
||||
import com.looker.droidify.ui.compose.pages.app_detail.components.PermissionGrid
|
||||
import com.looker.droidify.ui.compose.pages.app_detail.components.ReleaseItem
|
||||
import com.looker.droidify.ui.compose.theme.AppTheme
|
||||
import com.looker.droidify.ui.compose.utils.CustomChip
|
||||
import com.looker.droidify.utility.SampleData
|
||||
|
||||
@Preview
|
||||
@ -12,4 +16,59 @@ fun ReleaseItemPreview() {
|
||||
release = SampleData.demoRelease
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Preview
|
||||
@Composable
|
||||
fun CustomChipPrev() {
|
||||
AppTheme(blackTheme = false) {
|
||||
CustomChip(text = "Test Chip")
|
||||
}
|
||||
}
|
||||
|
||||
@Preview
|
||||
@Composable
|
||||
fun ChipGridPreview() {
|
||||
AppTheme(blackTheme = false) {
|
||||
Column {
|
||||
PermissionGrid(
|
||||
permissions = listOf(
|
||||
"test",
|
||||
"test",
|
||||
"te12312st",
|
||||
"te123st",
|
||||
"te123123st",
|
||||
"test",
|
||||
"test",
|
||||
"test",
|
||||
"test",
|
||||
"test",
|
||||
"te12312st",
|
||||
"te123st",
|
||||
"te123123st",
|
||||
"test",
|
||||
"test"
|
||||
)
|
||||
)
|
||||
AntiFeaturesGrid(
|
||||
antiFeatures = listOf(
|
||||
"test",
|
||||
"test",
|
||||
"te12312st",
|
||||
"te123st",
|
||||
"te123123st",
|
||||
"test",
|
||||
"test",
|
||||
"test",
|
||||
"test",
|
||||
"test",
|
||||
"te12312st",
|
||||
"te123st",
|
||||
"te123123st",
|
||||
"test",
|
||||
"test"
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user