Scale whole app or widget contents to a screen size in Flutter

Starting from the most internal part:

  • SizedBox, to hard code a logical dimensions of the area that will be used by a child widget.
  • FittedBox, to scale its child to entirely fit the parent, maintaining its proportions.
  • Container, to set the background color of unused parts of the screen.




Android developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Managing Continuous Integration Pipelines with Jenkins

Airflow XCom examples | Airflow demystified

The Next Chapter

25 Best Active Forums for Programmers

Comparing API Gateways on AWS

Reflecting on improving programming skills in the last one year

How to reduce git repository size?

| Engineering News-Record

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Paweł Szymański

Paweł Szymański

Android developer

More from Medium

Missing Console Output in IntelliJ Plugin of Flutter?

Localizing Flutter Packages

Indexed Column, Indexed Row in Flutter program

Why does flutter choose to use dart?