Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork0
Yet another awesome Intro screen library 🔥
License
KapilYadav-dev/ComposeIntro
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Yet another Intro Screen library made with the love of Kotlin and Jetpack compose : )❤️
https://github.com/KapilYadav-dev/ComposeIntro/blob/main/demo.mp4
repositories { maven { url'https://jitpack.io' }// Add jitpack}dependencies { implementation'com.github.KapilYadav-dev:ComposeIntro:<latest.version>'}// These are the must fields.IntroScreen(//Passing the list items= items,// Setting the Header icon headerIcon=Icons.Outlined.Password,//Left click handler onLeftButtonClick= { },//Right click handler onRightButtonClick= { },//On backpress handler onBackPress= { },//Get current Page currentPage= { })
funIntroScreen(items:List<IntroData>,infiniteLoop:Boolean = false,/* * These are the color which will shape the color of UI*/headerIconTint:Color =Color(0xfffFF6464),primaryColor:Color =Color(0xfffFF6464),secondaryColor:Color =Color(0xfffBABABA),/* * These are the fonts which will shape the fonts of UI*/primaryFont:FontFamily =BebasNue(),secondaryFont:FontFamily =Poppins(),/* * This is the header drawable*/headerIcon:ImageVector,/* * These are callbacks or high order function which will help to interact with buttons*/onRightButtonClick: ()->Unit,onLeftButtonClick: ()->Unit,onBackPress: ()->Unit,currentPage:(Int)->Unit,/* * These are the text of the buttons*/leftButtonText:String = "REGISTER",rightButtonText:String = "LOGIN",/* * These are the units of various text and views*/headerIconSize:Dp = 48.dp,primaryFontSize:TextUnit = 56.sp,secondaryFontSize:TextUnit = 15.sp,highlightFontSize:TextUnit = 40.sp,unhighlightFontSize:TextUnit = 20.sp,buttonFontSize:TextUnit = 18.sp,)
classMainActivity :ComponentActivity() {overridefunonCreate(savedInstanceState:Bundle?) {super.onCreate(savedInstanceState) setContent {IntroioTheme {// A surface container using the 'background' color from the themeSurface( modifier=Modifier.fillMaxSize(), color=MaterialTheme.colors.background ) {val context=LocalContext.current//UsageIntroScreen(//Passing the list items= introItems(),// Setting the Header icon headerIcon=Icons.Outlined.Password,//Left click handler onLeftButtonClick= {Toast.makeText(context,"Left click",Toast.LENGTH_SHORT).show() },//Right click handler onRightButtonClick= {Toast.makeText(context,"Right click",Toast.LENGTH_SHORT).show() },//On backpress handler onBackPress= {Toast.makeText(context,"BackPRess Page",Toast.LENGTH_SHORT).show() },//Get current Page currentPage= {Toast.makeText(context,"Current Page:$it",Toast.LENGTH_SHORT).show() }, ) } } } }}funintroItems()=listOf(IntroData("Stop using unsecure passwords for your online accounts, level up with OnePass. Get the most secure and difficult-to-crack passwords.","Generate\nSecure Passwords." ),IntroData("Store and manage all of your passwords from one place. Don’t remember hundreds of passwords, just remember one.","All your passwords are here" ),IntroData("Don’t compromise your passwords by typing them in public, let OnePass autofill those and keep your credentials secure.","Don't type,\nAutofill your credentials." ))
👤mrkaydev
- Linkedin:@mrkaydev
- Email:infokaydev@gmail.com
Feel free to ping me 😉
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Anycontributions you make aregreatly appreciated.
- Open an issue first to discuss what you would like to change.
- Fork the Project
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a pull request
Please make sure to update tests as appropriate.
Give a ⭐️ if this project helped you!

- Add UI tests and unit tests
- Add Text size support and more responsive
Copyright © 2022 - mrkaydevLicensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.About
Yet another awesome Intro screen library 🔥
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.
