Skip to content
0xJihanPublic

About

A Jeptack Compose library with beautiful components and utils function. Visit documentation: 0xjihan.github.io/computils

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

Computils

JitPack License

Computils is an Android library designed to streamline the development process by offering a collection of predefined composable components, customizable UI elements, and utility packages. It reduces boilerplate code, improves productivity, and allows developers to focus on building features rather than dealing with repetitive tasks.

🚀 Features

  • Predefined Composable Components - Ready-to-use UI components for rapid development.
  • Customizable - Easily tweak components to fit your app's design and requirements.
  • Utility Packages - Helpful utility functions to simplify everyday tasks.
  • Extension Functions - Improve code readability and enhance app functionality.
  • Easy to Use - Intuitive API design for quick integration.
  • Less Boilerplate - Write less code while maintaining high-quality, reusable components.

📦 Installation

To include Computils in your project, follow these steps:

Step 1: Add JitPack Repository

Add the following to your settings.gradle file:

repositories {
    maven("https://jitpack.io")
}

Step 2: Add Dependency

Include the Computils dependency in your module-level build.gradle file:

implementation("com.github.0xJihan:computils:v1.0.4")

📖 Usage

Computils provides various UI components and utilities to simplify Android development. Below are some examples:

✅ Gap

       Column { 
                Text("Compose Utils")
                Gap(30) // 30dp gap vertically
                Text("Hi, there")
            }

            Row { 
                Text("Compose Utils")
                Gap(30) // 30dp gap horizontally
                Text("Hi, there")
            }
}

🔧 Text

@Composable
fun StyledTextUsage() {
    Column(modifier = Modifier.padding(16.dp)) {

        // 1. Simple usage of StyledText
        "Hello, Jetpack Compose!".text.make()

        // 2. Changing text size
        "Large Text".text.size(24).make()

        // 3. Changing text color
        "Colored Text".text.color(Color.Red).make()

        // 4. Making text bold
        "Bold Text".text.bold().make()

        // 5. Applying a modifier
        "Padded Text".text.modifier(Modifier.padding(8.dp)).make()
    }
}

// Example of using the toast function in an activity or Composable:
fun showToast(context: Context) {
    "Hello, Toast!".toast(context)
}

For more usage examples, visit the Documentation.


🤝 Contributing

We welcome contributions! If you'd like to improve Computils, feel free to:

  • Open an issue
  • Fork the repo and submit a pull request
  • Improve documentation

📄 License

Computils is licensed under the MIT License.


📬 Contact

For any queries, feel free to reach out:

Happy Coding! 🚀

About

A Jeptack Compose library with beautiful components and utils function. Visit documentation: 0xjihan.github.io/computils

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages