NeoPOP
NeoPOP is CRED's inbuilt library for using NeoPOP components in your app.
What really is NeoPOP?
NeoPOP was created with one simple goal; to create the next generation of a beautiful, affirmative design system. NeoPOP stays true to everything that design at CRED stands for.
NeoPOP is built for Android, iOS, Flutter and Web
Install
You can install NeoPOP by adding these to your project:
- Add this to your module
build.gradle
file:
dependencies {
implementation 'club.cred:neopop:1.0.0'
}
- Add this to the root/project
build.gradle
file:
allprojects {
repositories {
google()
jcenter()
maven {
url = 'https://libs.dev.cred.club/'
}
}
}
PopLayout
PopFrameLayout
render 5 surfaces, top, left, right, bottom and center. These surfaces can be customized in two ways:
Elevated
By specifying the button_position
as bottom|right
, the layout computes bottom and right surface's color according to neopop_center_surface_color
. It will also compute visibility of the surfaces according to button_position
<club.cred.neopop.PopFrameLayout ... android:clickable="true" app:neopop_button_position="bottom|right" app:neopop_center_surface_color="@color/white" app:neopop_depth="3dp" app:neopop_parent_view_color="@color/black"/>