0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Compose横幅の最大幅、最小幅を設定する方法

Posted at

Composeで横幅が可変で最大幅、最小幅を決めたいことがあり、こちら調べたので、記載して行こうと思います。

最大幅、最小幅を設定する方法

Modifier.widthIn(0.dp, 40.dp)
ModifierwidthInを設定すると実装できます。

便利なので覚えておくと良いかもしれません。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?