Skip to content

feat: Responsive device context in Stac templates #412

Description

@Roshan-Dabhade

Description

Currently, STAC templates do not have a built-in way to adapt styling or layout based on screen size or device type. Adding a layout-aware responsive context (mobile / tablet / web or width-based breakpoints) would allow templates to declaratively control spacing, typography and structure without requiring custom Flutter code, enabling true responsive SDUI across mobile, tablet and web.

Additional Context

Example context-

{
"type": "container",
"padding": {
"mobile": 8,
"tablet": 16,
"web": 32
},
"child": {
"type": "text",
"data": "Responsive STAC UI",
"style": {
"fontSize": {
"mobile": 12,
"tablet": 14,
"web": 18
}
}
}
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions