compose-modifier-and-layout-style
CommunityMake Compose layout code caller-friendly.
Authorsoygabimoreno
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It prevents Compose layout components from locking in placement, sizing, and padding decisions, which makes reuse, composition, and layout changes painful during development and code review.
Core Features & Use Cases
- Declare and apply a
modifieron the root so callers control placement and constraints rather than the composable hardcoding layout behavior. - Build modifier chains cleanly as one fluent expression (avoid
varreassignments) and format long chains for readability. - Hoist “only-if” layouts by moving a lone
ifoutside the container when the layout exists solely to hold conditional content.
Quick Start
When writing or reviewing a layout composable, ensure it has a modifier: Modifier = Modifier parameter, apply that modifier to the root first, avoid hardcoded sizing like .fillMaxWidth() on the root, and don’t wrap a container around a single conditional—hoist the if instead.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: compose-modifier-and-layout-style Download link: https://github.com/soygabimoreno/Los-ANDROIDES/archive/main.zip#compose-modifier-and-layout-style Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.