🖥📱RESPONSIVE DESIGN • Flutter Tutorial

Mitch Koko · 366K views · 2021 · 8:03

Open on YouTube

Web developmentSoftware (other)tutorial

Why Stack Overflow recommends it

Stack Overflow users link it in Flutter answers as a quick video demo of how to make an app layout respond to different screen sizes.

Recommended by 2 people across 2 different months, 2022 to 2022.

What it is

An 8-minute Flutter tutorial by Mitch Koko on building responsive layouts that adapt across phones, tablets and desktop. It is a short, practical walkthrough aimed at app developers learning Flutter.

What people said

Recommends Ali Jawad · 2022-11 · Stack Overflow · on “Responsive size in a website ( flutter web)”

There are three basic ways of making your application on website in a responsive manner. (That I personally have tried ) number one ) MediaQuery. This method is the one that I usually go with as it is more understandable for me. This is an example of how you create Responsiveness through MediaQuery. import 'package:flutter/material.dart'; class Responsive extends StatelessWidget { final Widget mobile; final Widget? mobileLarge; final Widget? tablet; final Widget desktop; const Responsive({ Key? key, required this.mobile, this.tablet, required this.desktop, this.mobileLarge, }) : super(key: key); static bool isMobile(BuildContext context) => MediaQuery.of(context).size.width <= 500; static bo

Recommends Gowtham Reddy · 2022-12 · Stack Overflow · on “How to use Transform.scale in flutter?”

Well, You have to research on what constraints define the device type. mostly height and width are used to define what kind of device we are using. it also happens that there are some special type of devices like foldable phones and others... if we consider android phone google have made 3 categories of device types: Compact(normal phones), Medium(foldable, mini tablets), Expanded (large screen tablets) as a specific values of height and width can be found out using media query and render accordingly find more info about android layouts here Responsive layouts by google develoeprs [LINK] a good starting point for you is to learn about responsive layouts in flutter using media query [LINK] i

Cites mohammad esmaili · 2022-09 · Stack Overflow · on “How to make existing Flutter App Project Responsive?”

You can make responsive with LayoutBuilder [LINK] like: LayoutBuilder( builder: (BuildContext context, BoxConstraints constraints) { if (constraints.maxWidth >= 600){ return Widget(...); // if bigger than } return Widget(); // else use default } ) You can use the BoxConstraints methods and check to show diffrent layout and widget You can use MediaQuery [LINK] too, just search about it but when we are talking about whole page structure in diffrent devices, its better to use LayoutBuilder there are tons of videos for your purpose: video from youtube [this video]