To get a Git project into your build:
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
..
maven { url 'https://jitpack.io'}
..
}
}
//Swipe Card
implementation 'com.github.YusufbekIbragimov:SwipeCard:#latest_version'
class MainActivity : ComponentActivity() {
@OptIn(ExperimentalMaterialApi::class)
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
val list = listOf(
TestDataModel(R.drawable.theme4, "Highlight 1", "Description for the highlight one"),
TestDataModel(R.drawable.theme5, "Highlight 2", "Description for the highlight two"),
TestDataModel(R.drawable.theme7, "Highlight 3", "Description for the highlight three"),
)
setContent {
Column(
modifier = Modifier.fillMaxSize(),
horizontalAlignment = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.Center
) {
SwipeCard(
modifier = Modifier,
itemsList = list
) { dataModel ->
DefaultContent(
modifier = Modifier
.wrapContentSize()
.padding(horizontal = 8.dp),
item = dataModel
)
}
}
}
}
}
For bugs, feature requests, and discussion, please use GitHub Issues. For general questions ONLY, please contact via Telegram.