skip to Main Content

I want to put my Text widget at the upper left side of my Homepage.

Image

main.dart

home_page.dart

2

Answers


  1. In your home page you are making the Column mainAxisSize min. This means the column takes up as little room as possible. I believe it is in the row widget of your main.dart file. Rows by default have cross axis alignment set to center. Try to remove mainAxisSize in your homepage Column or add CrossAxisAlignment.start to the main.dart Row.

    Login or Signup to reply.
  2. Try the following code:

    Align(
      alignment: Alignment.topLeft,
      child: Text(
        …
      ),
    ),
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search