Monday Hero
Website
V2
V2
  • Overview
  • Workflow Basics
  • Getting Started
    • Installing the Desktop App
    • Log In & Create a Project
    • Prepare Design to Get the Best Code Results
    • Import Design Files into Monday Hero
      • Import Figma Design Files into Monday Hero
        • Import Your Figma Text Style and Color Library
      • Import Adobe XD Design Files into Monday Hero
      • Import Sketch Design Files Into Monday Hero
    • Share Your Project & Manage Roles
  • DESIGN TO FLUTTER
    • Convert Design to Flutter
    • Create Flutter Components
      • System Components
        • Material & Cupertino Components
        • Flutter Supported Components
      • Custom Components
    • Create Responsive Code
    • Colors
    • Text Styles
    • Assets
    • Sync Code
    • Flutter Project Base
      • Fast Start with Monday Hero Starter Project
      • Integrate Monday Hero to your Existing Project
    • Shadows, Gradients, and Other Design Elements
    • Troubleshooting Guide
      • Checklist for Design Element Review and Code Generation
      • Github Monday Hero Starter Project Troubleshooting
  • DESIGN TO SWIFT
    • Convert Design to Swift
    • Create Swift Components
      • System Components
        • Views
        • Texts
        • Images
        • Button
        • TextField/EditText
        • Text Area
        • Status Bar
        • Search Bar
        • List
        • Grid
        • Swift Supported Components
      • Custom Components
      • Video Player Code Component
    • Colors
    • Text Styles
    • Assets
    • Shadows, Gradients, and Other Design Elements
    • Firebase
      • How to get Video URL from Firebase
    • Export Code
      • Integrating Exported Files into an Existing Xcode Project
  • Hero AI Assistant
    • Hero AI Assistant
  • Design to React
    • Convert Design to React
  • Step-By-Step Tutorials
    • 🏖️Travel App
  • Support
    • Roadmap
    • Suggest a New Feature
    • Report a Bug
    • Product Announcements
    • Mail to Support
    • Frequently Asked Questions
  • Join & Follow Us
    • YouTube
    • Discord Community
    • GitHub
    • Twitter
    • LinkedIn
    • Blog
    • Instagram
    • Facebook
Powered by GitBook
On this page
  • Why Use Responsive Layouts?
  • Automatically Add Responsive Components
  • Manually Add or Edit Multi-Child Layout Widgets For Responsive Layout

Was this helpful?

  1. DESIGN TO FLUTTER

Create Responsive Code

Create and edit responsive code on Monday Hero.

PreviousCustom ComponentsNextColors

Last updated 1 year ago

Was this helpful?

Why Use Responsive Layouts?

When developing a mobile app, it's essential to ensure consistent functionality across various devices. Responsive design ensures that your app adapts to different screen sizes, preventing overlapping components and overflow errors that can lead to a poor user experience.

Monday Hero streamlines this process by automatically generating responsive code tailored to fit every device. It offers the convenience of the responsive components, which you can preview or edit as needed. Alternatively, if you prefer more control, you can manually through Monday Hero.

Automatically Add Responsive Components

Click to the 'Make Responsive Layout' button within the 'Widget Tree' menu. This convenient tool automatically guesses and arranges Rows, Columns, and Stacks, making your app ready for different screen sizes. You can easily review and edit the layout as needed once it's ready.

Manually Add or Edit Multi-Child Layout Widgets For Responsive Layout

Flutter provides multi-child layout widgets like Row, Column, and Stack for arranging items. You manually arrange items by using multi-child layout widgets in Flutter. These widgets get multiple items as a list in their 'children' property and arrange them in the list order. Row, column, and stack are the most used examples.

Row

Row is a widget that arranges its children horizontally in a line. Here's an example of how to group multiple widgets in a row:

Column

Column is a widget that arranges its children vertically in a stack. Here's an example of how to group multiple widgets in a column:

Common Alignment Options

These properties control how widgets are aligned within Rows and Columns:

  • MainAxisAlignment: Aligns children horizontally (for Row) or vertically (for Column).

  • CrossAxisAlignment: Aligns children vertically (for Row) or horizontally (for Column).

Options for MainAxisAlignment and CrossAxisAlignment include:

  • Start: Places children at the start of the widget.

  • End: Places children at the end of the widget.

  • Center: Places children at the center of the widget.

  • Space Between: Distributes space evenly between children.

  • Space Around: Distributes space evenly around children.

  • Space Evenly: Distributes space evenly between, before, and after each child.

You can adjust alignment properties directly within Monday Hero when grouping UI elements.

Stack

Stack is a widget that allows you to position its children relative to the edges of its box. It's particularly useful for overlapping multiple children, such as mixing texts, images, and buttons seamlessly. Here's an example demonstrating how to group multiple widgets in a stack:

automatically guessing
add or edit responsive components
Using 'Make Responsive Layout' feature
Adding rows
Adding columns
Main Axis and Cross Axis Properties of Row and Column
Setting Main Axis and Cross Axis properties
Adding stack