Giter Site home page Giter Site logo

compose-gap's Introduction

Compose Gap

Easily adding gaps inside such as Columns and Rows for Jetpack Compose.

Inspired by Flutter's Gap.

Introduction

When it comes to add empty space between widgets inside a Column or a Row, we have multiple options:

We can either add a Padding around these widgets but it's very verbose Or we can add Spacer widgets between them. Gap is another option. It's like Spacer but you don't have to know if it's inside a Row or a Column. So that it's less verbose than using a Spacer.

Features

Gradle settings

implementation 'jp.wasabeef:gap:1.1.0'

Then you just have to add a Gap inside a Column or a Row with the specified extent.

  Column {
    Text(text = "Hello")
    // Spacer(modifier = modifier.width(20.dp))
    Gap(20.dp)
    Text(text = "World")
  }

  Row {
    Text(text = "Hello")
    // Spacer(modifier = modifier.height(20.dp))
    Gap(20.dp)
    Text(text = "World")
  }

Contributing

Feel free to open a issue or submit a pull request for any bugs/improvements.

compose-gap's People

Contributors

renovate-bot avatar wasabeef avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

compose-gap's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • build: lock file maintenance

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/android-ci.yml
  • actions/checkout v2
  • gradle/wrapper-validation-action v1
  • actions/setup-java v1
  • actions/cache v2
.github/workflows/deploy-docs.yml
  • actions/checkout v2
  • gradle/wrapper-validation-action v1
  • actions/setup-java v1
  • actions/cache v2
gradle
buildSrc/src/main/java/AndroidSdk.kt
buildSrc/src/main/java/Libs.kt
gradle.properties
settings.gradle.kts
  • de.fayard.refreshVersions 0.23.0
build.gradle.kts
buildSrc/settings.gradle.kts
  • de.fayard.refreshVersions 0.23.0
buildSrc/build.gradle.kts
buildSrc/src/main/java/detekt-config.gradle.kts
buildSrc/src/main/java/module-config.gradle.kts
gap/build.gradle.kts
sample/build.gradle.kts
gradle-wrapper
gradle/wrapper/gradle-wrapper.properties
  • gradle 7.3.1

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.