Responsive Layouts for Responsive Apps

  Рет қаралды 9,506

Tadas Petra

Tadas Petra

Күн бұрын

Пікірлер: 27
3 жыл бұрын
I would like to point out a important difference between MediaQuery and LayoutBuilder. If you use then as parent of your page, sure, they will work the same. However, while MediaQuery returns the dimensions of the screen, LayoutBuilder returns the dimensions of the available space (determined by the constraints passed from the parent to its child)
@tadaspetra
@tadaspetra 3 жыл бұрын
Yes! I actually meant to mention that in the video, but I guess I missed it. I will pin your comment. Great catch!
@mnc12004
@mnc12004 3 жыл бұрын
I have an in production with many screens. To get it working on Web and desktop to, I need to sort out the layouts for bigger screens. Not really sure how to achieve it, but yep loads research and trial and error. Thanks loads for this video. Points me in the right direction...
@christianmarpert3844
@christianmarpert3844 3 жыл бұрын
Thks mate! nice explanation! For my purposes I createt a deviceSettings class containing all relevant properties. In a next step I use a function returning a deviceSetting object, depending on the device I pass in(mobile, tablet, laptop). To get the device itself I use the GetX package. Maybe there are simpler ways, but works pretty well for me. And I can incorporate some of your tips ;). Cheers
@JigneshWorld
@JigneshWorld 3 жыл бұрын
Thanks much, nice video and fundamental building blocks to have responsiveness on your flutter app. AFAIK: MediaQuery and LayoutBuilder will have a different use-case MediaQuery - It will provide size of the current media (e.g., the window containing your app). This is useful to know size of the app window when app used in mobile full screen, part of screen with picture in picture mode, foldable device or desktop app window or browser window size. LayoutBuilder - It will provide constraints of parent to it's child to render widget accordingly. This is useful when the parent constrains the child's size and doesn't depend on the child's intrinsic size. e.g. auto size text
@tadaspetra
@tadaspetra 3 жыл бұрын
Yes you are correct!
@mithson
@mithson 3 жыл бұрын
Nice video bro, great work keep doing it
@chipekowasa6571
@chipekowasa6571 3 жыл бұрын
Awesome 👏👏👏
@ebenezervampu7882
@ebenezervampu7882 Жыл бұрын
Thank you so much
@olajireabdullahi1196
@olajireabdullahi1196 3 жыл бұрын
Thanks for the video. Which emulator are you using to the extends that you can resize and expand it. Is it device preview package??
@dwiky2329
@dwiky2329 3 жыл бұрын
it's a macOs device. Not an emulator
@festusikperha6528
@festusikperha6528 3 жыл бұрын
So awesome
@michaelkalango5779
@michaelkalango5779 3 жыл бұрын
Nice! Thanks for the video..
@tadaspetra
@tadaspetra 3 жыл бұрын
Thanks for watching!
@silas_wolf
@silas_wolf 3 жыл бұрын
THANK YOU!!!
@tadaspetra
@tadaspetra 3 жыл бұрын
Happy to help!
@marufhassan634
@marufhassan634 3 жыл бұрын
Its all fine and good but we need a simpler way for responsiveness of the app's height, width and fontSize. All these values are provided by the designer in Figma and I can't keep using hit and try method to find the percentage or ratio it works out with. We need a simple widget that takes in exact value and resizes the fontSize and text according to the screen change.
@tadaspetra
@tadaspetra 3 жыл бұрын
You could use this. pub.dev/packages/auto_size_text
@sder-v2v
@sder-v2v 3 жыл бұрын
Are you running on M1?
@tadaspetra
@tadaspetra 3 жыл бұрын
No still on the Intel processor
@arustresso
@arustresso 3 жыл бұрын
Wat do u prefer?
@tadaspetra
@tadaspetra 3 жыл бұрын
I think they are all for different situations. So it really depends on what you need to do
@SandeepKumar-gg9jg
@SandeepKumar-gg9jg 3 жыл бұрын
Noice
@Algardraug
@Algardraug 3 жыл бұрын
"A square with an aspect ratio of 2:1".... that's a rectangle
Clean and Organized Code with Linting
9:41
Tadas Petra
Рет қаралды 11 М.
How to Make Responsive Flutter Apps, Pixel Perfect
14:58
Learn App Code
Рет қаралды 47 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
🖥📱RESPONSIVE DESIGN • Flutter Tutorial
8:03
Mitch Koko
Рет қаралды 303 М.
Implementing complex UI with Flutter - Marcin Szałek | Flutter Europe
44:26
Flutter Responsive Design Tutorial 📲
11:00
CodeX
Рет қаралды 68 М.
Top 70 Flutter Tips, Widgets & Packages
16:22
Flutter Mapp
Рет қаралды 130 М.
MVVM Architecture Simplified - Flutter Recommendation
6:01
Tadas Petra
Рет қаралды 1,6 М.
Flutter File Structure for Big Projects
9:40
Tadas Petra
Рет қаралды 59 М.
How to Do 90% of What Plugins Do (With Just Vim)
1:14:03
thoughtbot
Рет қаралды 911 М.
Top 10 Must Know Widgets In Detail for Flutter Developers | Flutter Tutorial
1:09:13
easiest way to make RESPONSIVE FLUTTER APPS!!!
8:43
CodeMate Hussain
Рет қаралды 9 М.