Flutter Responsive Design Tutorial 📲

Поделиться
HTML-код
  • Опубликовано: 13 июл 2024
  • Hey there, in this video I have shown how easy it is to create responsive design inside flutter application.
    I have demonstrated with help of Portrait and Landscape of Mobile application but the same concept goes for all possible form factors like tablets and web.
    0:00 - Introduction
    1:00 - Page Setup
    1:30 - Example and Agenda
    3:05 - LayoutBuilder
    7:45 - Responsive Widget
    Join this channel to get access to perks:
    ruclips.net/user/CodeXDevjoin
    Gears ========
    Camera 📸 || Canon 250D : amzn.to/34isdKr
    Mic 🎤 || Maono AU-04 : amzn.to/341g9wS
    #CodeX
    Connect with me on social media:
    FB: / codexdevs
    Twitter: / afzalali15
    LinkedIn: / afzalali15
    Discord: / discord

Комментарии • 103

  • @CodeXdev
    @CodeXdev  3 года назад +10

    0:00 - Introduction
    1:00 - Page Setup
    1:30 - Example and Agenda
    3:05 - LayoutBuilder
    7:45 - Responsive Widget

    • @faheemahmadofficial7701
      @faheemahmadofficial7701 3 года назад +1

      BRo why dont you say "ASSALAM U ALKUM " in the start of your video??? please be a better muslim and spread islamic values

    • @luxecaviar7420
      @luxecaviar7420 3 года назад

      Straight to the point, clear and concise. Organized and not wasting anyones time. Great quality video. 💯💯💯💯💯

  • @kainatnaeem4607
    @kainatnaeem4607 2 года назад +1

    One of the best tutorials of Layout Builders on YT, Thank you for such a simple & meaningful explanation, Stay Blessed & JazakAllah!!!

  • @bellekassouf8852
    @bellekassouf8852 2 года назад

    Such an easy method with an outstanding explanation! No need for any external plugins as well. I definitely recommend. Thank you!

  • @krzysztoffryc6095
    @krzysztoffryc6095 3 года назад +4

    Very clear explanation and good show of clean code methodology. Thank you!

  • @Zim_88
    @Zim_88 2 года назад

    Wonderful clean and concise example with understandable compact code. Thank you!

  • @mykolamykhaliuk
    @mykolamykhaliuk 6 месяцев назад +1

    I like applause in the end😅. Make me smile😂

  • @longtimedeveloper6498
    @longtimedeveloper6498 2 года назад

    Outstanding presentation, very easy to follow, thank you!

  • @tushargupta6533
    @tushargupta6533 3 года назад

    The solution is so clear that I had to subscribe 👍

  • @nornsiem4379
    @nornsiem4379 2 года назад

    Best Flutter Channel

  • @Seankim-vj1fl
    @Seankim-vj1fl 3 года назад +1

    Good tutorial simple and easy to understand. Thank you

  • @faizdev220
    @faizdev220 3 года назад

    Thank you. It’s a simple but meaningful

  • @noumanzafar8566
    @noumanzafar8566 2 года назад

    perfect way to optimize code .. thank you for such a nice explanation

  • @nirjanmunshi9334
    @nirjanmunshi9334 3 года назад

    A smart approach and easy to learn also. thanks, bro.

  • @orkhanmammadov7175
    @orkhanmammadov7175 Год назад

    Thanks for everythink my brother.This will help to me.

  • @ShafqatNadeem
    @ShafqatNadeem 3 года назад +1

    Thank you so much . love you

  • @ahmedcpr5706
    @ahmedcpr5706 2 года назад

    Time saver, thank you

  • @aashiqumar3017
    @aashiqumar3017 2 года назад

    Thanks! Great Tutorial..

  • @muhammadafzal237
    @muhammadafzal237 Год назад

    Awesome👏

  • @fadlydestrianarusmana1076
    @fadlydestrianarusmana1076 2 года назад +1

    Great!

  • @031_mohdahmad8
    @031_mohdahmad8 2 года назад

    finally, a worthy tutorial 😍😍😍

    • @CodeXdev
      @CodeXdev  2 года назад

      Thank you for the feedback :) Have you checked REST API tutorials, thats also very well made.

  • @shourya-shikhar
    @shourya-shikhar 2 года назад

    You just solved one of my biggest problems.

  • @junaidjameel5049
    @junaidjameel5049 Год назад

    very nice

  • @imankamali5799
    @imankamali5799 2 года назад

    👍😍

  • @prashant3285
    @prashant3285 3 года назад

    Nice

  • @mastersorcerer555
    @mastersorcerer555 2 года назад

    Wonderful

  • @tasaddaqrandhawa4219
    @tasaddaqrandhawa4219 3 года назад +1

    Great

  • @sabuj0338
    @sabuj0338 3 года назад +4

    Can you make a video about background work using the foreground service?

  • @programmingskills3404
    @programmingskills3404 3 года назад

    perfect

  • @indikaNK95
    @indikaNK95 3 года назад

    superb
    👍👍👍

  • @hpbisa7225
    @hpbisa7225 3 года назад +2

    Thank you, this is very nice tutorial😍
    Can you provide getx + hive db tutorial in next video, please.

  • @martygamingyt181
    @martygamingyt181 3 года назад

    thank you for this tutorial , best possible explanation.

    • @CodeXdev
      @CodeXdev  3 года назад

      Glad it was helpful!

  • @vandeljasonstrypper6734
    @vandeljasonstrypper6734 3 года назад

    show we put inside an if else I don't know just a variable instead of the whole UI ?, because we can make the UI react based on the given mode we are in

  • @sumonnexus7045
    @sumonnexus7045 3 года назад +1

    Thanks for all video and afford your giving 🖤
    Dio vs http and what why when

  • @akamadmanfire
    @akamadmanfire 3 года назад

    I have been searching on how to do responsive layouts in Flutter for AGES and they have been all really hard to follow. This sir is Clear, Simple and so easy to follow and understand. Best tutorial out there. Thank you so much and you have just earn yourself a new subscriber 🙂

    • @CodeXdev
      @CodeXdev  3 года назад

      Thank you for sub! I m glad that it helped you in some way ❤️

    • @akamadmanfire
      @akamadmanfire 3 года назад

      @@CodeXdev Hey me again, I was wonder if you can help me with an issue I have. I just followed your tutorial again (been out of coding for a while), everything is word or word but for some reason when I rotate it to Landscape is still showing the mobile layout. Sometimes when I rotate the device I can see the change for a split second but by the time it rotates the Landscape its still the mobile view. Is there a reason why this might be happening?

  • @AZainkhan46
    @AZainkhan46 3 года назад +2

    sir how to use local notifications when receive events from pusher channel if app is open or closed it must show notifications because it is a chatting app. kindly elaborate or make a video on it I really need help as I am stuck in my project

  • @phatho3875
    @phatho3875 3 года назад

    How to make widgets size correct on multiple screen? For example, I have a container which is 72x72 (width x height). It is correct on certain screen but it is large on small screen. I want it's like dp or sp in Android native. How do I deal with this?

  • @DiyaLalDileepLal
    @DiyaLalDileepLal 9 месяцев назад

    How will I make all my pages responsive in a flutter app? Should I implement the responsive layout code in every pages or will it inherit the responsive layout from its parent(main.dart)?

  • @sanchaarnewsapp
    @sanchaarnewsapp 2 года назад

    Nice video,, easily understandable.

    • @CodeXdev
      @CodeXdev  2 года назад

      Glad to hear that

  • @MoAdel92
    @MoAdel92 3 года назад +2

    Please please please getx tutorial
    I can't build big project with it

  • @sankaranarayananp8407
    @sankaranarayananp8407 2 года назад

    I want more videos for responsive design. Please consider my request.

  • @animeshbanerjee4379
    @animeshbanerjee4379 2 года назад

    Hi sir, I faced a real issue which is solved by this video. But I have one more question that can we use single one code for both tab and mobile and how ?

  • @sanketjain2310
    @sanketjain2310 3 года назад

    Which software is used to mobile view

  • @starskyz105
    @starskyz105 2 года назад

    with the latest update of flutter now comes with null safety, how can I get around this "The return type 'Widget?' isn't a 'Widget', as required by the closure's context." when returning the mobile or tab in the ResponsiveWidget class ?

    • @purplemojicon
      @purplemojicon 2 года назад

      ruclips.net/video/Q_WloMNKOkU/видео.html
      You should watch this one video 📸

  • @glen8146
    @glen8146 2 года назад

    is this better than using media queries?

  • @hunter85070
    @hunter85070 3 года назад +2

    Hi! Hope you are fine! First that all thanks for this tutorial, i have a quesiton.
    This method works to any screen size? I practice layouts in Flutter and my main problem are overflows when i change screen to a smaller screen.

    • @CodeXdev
      @CodeXdev  3 года назад +1

      Yes, this trick works on all screen size.. you just have to target set of sizes and define layout for that.

    • @hunter85070
      @hunter85070 3 года назад

      @@CodeXdev perfect! the images and texts would also adapt automatically?

    • @CodeXdev
      @CodeXdev  3 года назад +1

      Not really, that also you can keep per form factor! Size->20 for Phone, 22 for Tab and 24 for desktop... make sure you only apply wherever its needed.

    • @hunter85070
      @hunter85070 3 года назад

      @@CodeXdev ohhh god! I will try it! THANKS SO MUCH! HAPPY VALENTINE'S DAY!

  • @poisonels8023
    @poisonels8023 3 года назад

    please how to display image on web build with flutter

  • @makemypetgamedevprocess6475
    @makemypetgamedevprocess6475 3 года назад

    awesome intro, this video was really useful, keep it up :)

  • @mohammedaabid8608
    @mohammedaabid8608 3 года назад

    Hi afzal. Thanks for this video. Can you make a video on complex form with Getx

    • @CodeXdev
      @CodeXdev  3 года назад

      Hello Aabid, what exactly you mean with complex form? UI or input form?

    • @mohammedaabid8608
      @mohammedaabid8608 3 года назад

      @@CodeXdev can you make video on input forms with radio buttons, checkbox?

  • @himanshugarg08
    @himanshugarg08 3 года назад

    bhai please ye btaa do ki flutter ke liye intern ya as an entry level job ke liye kitna chaiye..and how to find opportunity? please..help

  • @gaaty1954
    @gaaty1954 3 года назад

    Windows/Linux: Put your cursor on the widget name and press Ctrl+Alt+M to extract it as a method or "Ctrl+Alt+W to extract it as a widget.

  • @kanote6705
    @kanote6705 2 года назад

    How does its code work without the main function? In addition, the responsive is automatic in this video, it's not my case

  • @soulofdarkbynta
    @soulofdarkbynta 4 месяца назад

    can we make the layout as a root and to get whole app follow the condition that we check with constraints?. or do we have to check for every single screen?

    • @CodeXdev
      @CodeXdev  4 месяца назад +1

      Actually every single screen and every component has to change based on the condition, so its ideal to put the check on individual item.

    • @soulofdarkbynta
      @soulofdarkbynta 4 месяца назад

      Thank you ​@@CodeXdev

  • @faizdev220
    @faizdev220 3 года назад +1

    Sir, can you please tell me how to use post api using getx.

  • @akasfotosnfilms7386
    @akasfotosnfilms7386 3 года назад

    Hi, ap VS code pir third party Emmulator kaisy use kr rahai hain . plz guid me

  • @balajibalu6452
    @balajibalu6452 3 года назад

    Bro can u do a tutorial on Web Scraping using pupperteen library.

    • @CodeXdev
      @CodeXdev  3 года назад

      What is the pupperteen library?

  • @muhammadjavedrafique4592
    @muhammadjavedrafique4592 2 года назад

    i was watching this in the office and the sound of clapping at the end just shocked me

    • @CodeXdev
      @CodeXdev  2 года назад

      we have one more story now for this clap sound.. hahaha many have experienced the same 😉

  • @harshjain4256
    @harshjain4256 3 года назад

    Hi afzal i made a clock app by following your tutorial but the alarm sound is not repetitive and the alarm notification is not showing in full screen mode just like a phone call screen. I searched alot on internet but found nothing plz help

    • @CodeXdev
      @CodeXdev  3 года назад

      Hello Harsh, currently the implementation of clock app is like that only. Its not the Native clock app which can show over entire screen. It just gives notification.
      I really doubt if we can make exact clock app like the inbuilt.

    • @harshjain4256
      @harshjain4256 3 года назад

      @@CodeXdev is there any way to make an app like this?

    • @harshjain4256
      @harshjain4256 3 года назад

      @@CodeXdev like how whatsapp implemented there phone call feature in which they show there phone calls notification on full screen even when the device is locked?

    • @CodeXdev
      @CodeXdev  3 года назад

      Thats phone call feature, both Android and iOS provide callkit with all the actions and interface

  • @leonardeuler7988
    @leonardeuler7988 Год назад

    according to this tutorial, we need to create mutliple screens to make flutter apps responsive.

    • @CodeXdev
      @CodeXdev  Год назад

      Responsiveness is achieved in multiple ways, sometime conditional layout, sometime different size of same layout or sometime by scaling up and down..
      So its very broad term, the idea is to utilize available screen and show content in better way

  • @testwareinformatics6818
    @testwareinformatics6818 3 года назад

    hi bro, could you do make a video for create a camera module capture image upload to dio method

  • @rezaasgary1442
    @rezaasgary1442 3 года назад

    What about the fonts and paddings

    • @CodeXdev
      @CodeXdev  3 года назад

      That also needs to be handled separately, in this video I focused only on layout change

  • @tommyeagen3763
    @tommyeagen3763 3 года назад

    the wrap widget could’ve solve that problem as well

    • @CodeXdev
      @CodeXdev  3 года назад

      Indeed, but that is automatically done.. what if we want to control how many element show go in next line. Or may be I want to reduce the size of some widget.

  • @faheemahmadofficial7701
    @faheemahmadofficial7701 3 года назад

    BRo why dont you say "ASSALAM U ALKUM " in the start of your video???

  • @yashnayi8777
    @yashnayi8777 3 года назад

    How to stop landscape in flutter??

    • @CodeXdev
      @CodeXdev  3 года назад +1

      You can do that from native platform, iOS info.plist and Android manifest

    • @yashnayi8777
      @yashnayi8777 3 года назад

      @@CodeXdev Thank a lot : )

  • @siddharth6043
    @siddharth6043 3 года назад

    I'm typing same code getting error. How it's running to you .

    • @CodeXdev
      @CodeXdev  3 года назад

      😜 thats magic 🪄 kidding, tell us whats the issue for u?

    • @siddharth6043
      @siddharth6043 3 года назад

      @@CodeXdev Widget build(BuildContext context) {
      var screenSize = MediaQuery.of(context).size;
      return WillPopScope(
      onWillPop: _onWillPop,
      child: Scaffold(
      backgroundColor: Constant.BLACK_COLOR,
      appBar: AppBar(
      centerTitle: true,
      this is my code need to make font responsive in tab , what i found is fontSize: Constant.FONT_SIZE_20*screenSize.width/430, id ont know how to apply your forma

    • @CodeXdev
      @CodeXdev  3 года назад

      you didn’t mentioned what is the issue?

    • @siddharth6043
      @siddharth6043 3 года назад

      @@CodeXdev how to apply your method for this

    • @siddharth6043
      @siddharth6043 3 года назад

      @@CodeXdev this code is working , but want to make tablet font size bigger

  • @agoodmansaid
    @agoodmansaid 2 года назад

    Since you asked, no I don't like your intro. BUT I LOVED THE TUTORIAL

    • @CodeXdev
      @CodeXdev  2 года назад

      Along with a developer, theres a designer in me who keeps trying such extras to make content even better 😍