Flexible (Flutter Widget of the Week)

Поділитися
Вставка
  • Опубліковано 22 лип 2024
  • Use Flexible for resizing your widgets in rows and columns. You can use it to adjust how much space different child widgets take up relative to their parent widgets.
    Learn more about Flexible → goo.gle/2VhjGjs
    Learn everything about Flutter at → goo.gle/2WAhEN1
    Get more tips! → goo.gle/307BX6t
    Subscribe! → goo.gle/Flutter

КОМЕНТАРІ • 68

  • @AjaySingh-vp8zu
    @AjaySingh-vp8zu 5 років тому +73

    can you release these videos more often... they help so much to know about new widgets

  • @Poohbify
    @Poohbify 5 років тому +21

    I LOVE these snippet videos! They are considerate of my time and well done on the animation and explanations

  • @wontonfuton
    @wontonfuton 5 років тому +1

    Doesn't expanded() do the same thing when a flex is used with it?

  • @indahpratiwi4308
    @indahpratiwi4308 4 роки тому

    This flexible widget saved the day for me, shot out to the Flutter team and that beanie wearing glasses guy

  • @WilsonSilva90
    @WilsonSilva90 4 роки тому +9

    Given that these videos are roughly 1 minute long, we can learn the whole library and a couple of patterns in a couple of minutes!

  • @JustinEltoft
    @JustinEltoft 4 роки тому +1

    Hi, at the very end of Widget of the Week #51 FractionallySizedBox, he mention's that you may want to wrap it in "Flexible" to make it "play nice" with columns or rows. I think you should have pointed this out in way more detail here? Many times I've had widgets that just "don't show up" because they don't play well with Column.

  • @cdevelop
    @cdevelop 5 років тому +1

    This widget can be used for create responsive apps?

  • @gilbertoduran680
    @gilbertoduran680 5 років тому +1

    Publish this kind of widgets each day please!

  • @thinkdigital-cellphonespec4314
    @thinkdigital-cellphonespec4314 5 років тому

    Thanks! Love these videos

  • @mohammedelamin1563
    @mohammedelamin1563 5 років тому

    Very useful widget. Particularly for web

  • @agustinbs
    @agustinbs 5 років тому +29

    Loving these videos so much, you call me crazy, but when i see them in my notification bar i jump off my chair

  • @diydeveloper214
    @diydeveloper214 5 років тому +1

    Awesome widget 😍

  • @ssokurenko
    @ssokurenko 5 років тому

    Awesome widget!

  • @misterrmoron7012
    @misterrmoron7012 5 років тому +3

    Flutter is so damn amazing!

  • @peruviancode1360
    @peruviancode1360 5 років тому

    Mejor implementen una forma de como usar porcentajes(ancho y alto ,tamaño) en cambio de mediaqueries para hacer responsive

  • @mariodevelopersantos1102
    @mariodevelopersantos1102 4 роки тому

    This is so helpful !!

  • @trimfly
    @trimfly 5 років тому

    plz make smth about rotating

  • @AhmedAli-jx9ie
    @AhmedAli-jx9ie 5 років тому +4

    what is the different between this and the expanded widget !!

    • @rh230
      @rh230 3 роки тому

      Expanded forces the child to fill all available space in the Flex(), Flexible allows you to specify the strictness on filling the space in the Flex()
      EX: Flexible could allow one to have a container's height be less, while the width is filled with Flex
      Expanded would expand the container to the full height and width of the flex.

  • @bazoozoo1186
    @bazoozoo1186 4 роки тому +10

    how Flexible is different from Expandable?

    • @hyp3rstrik3r3
      @hyp3rstrik3r3 4 роки тому +2

      There is a great answer on stackoverflow. Check it there. It will clear all ur doubts.

    • @tulikatayal9062
      @tulikatayal9062 4 роки тому +6

      yeah here's the link stackoverflow.com/questions/52645944/flutter-expanded-vs-flexible#:~:text=Widget%20under%20Expanded%20is%20MATCH_PARENT%20you%20can%20change%20it%20using%20flex.&text=You%20may%20use%20Flexible%20to%20resize%20the%20widgets%20in%20rows%20and%20columns.&text=Meanwhile%2C%20Expanded%20changes%20the%20constraints,fill%20the%20available%20spaces%20there.

    • @unotwotriquatre
      @unotwotriquatre 4 роки тому +3

      A Expanded is just a Flexible with the fit property set to FlexFit.tight. The difference is seen in 0:54: with FlexFit.tight, the container must expand to fill the avaible space, whereas FlexFit.loose allows the container to have its preferred size.

    • @ytubeleo
      @ytubeleo 3 роки тому

      Indeed. Expanded inherits Flexible, literally just adding "fit: FlexFit.tight", as can be seen in the constructor of Expanded from the Flutter docs:
      const Expanded({
      Key key,
      int flex = 1,
      @required Widget child,
      }) : super(key: key, flex: flex, fit: FlexFit.tight, child: child);
      It's a handy shortcut!

  • @mustafaabdsh
    @mustafaabdsh 5 років тому

    thanks man

  • @azizkaukawala2320
    @azizkaukawala2320 4 роки тому

    What makes it different from Expanded Widget? Or This is new/updated version of Expanded Widget or vice versa?

    • @JeffNeet
      @JeffNeet 2 роки тому +1

      It's late, but I had the same question. The Flexible Widget has a flex value and options for the type of fit. The Expanded Widget extends Flexible Widget, so it still has a flex value, but it always fills the space. Flexible is more flexible, Expanded is more readable when its default behavior is sufficient.

    • @azizkaukawala2320
      @azizkaukawala2320 2 роки тому +1

      @@JeffNeet Understood. Thank you Jeff!

  • @arslankhan8813
    @arslankhan8813 2 роки тому

    I think this example is wrong , you need to wrap column with Expanded widget to to see the the Flex effects. If I am wrong then please tell me that can flex work in the column without wrapping the column with expanded widget?

  • @canbakr5602
    @canbakr5602 5 років тому

    I love it!

  • @BibeshManandhar
    @BibeshManandhar 5 років тому +1

    How can I set the text size according to screen size ??
    Please help

    • @Flutterfly
      @Flutterfly 5 років тому

      Check out the new Widget of the Week MediaQuery. You could use that to set the font sizes in your textTheme. ua-cam.com/video/A3WrA4zAaPw/v-deo.html

  • @gazialankus
    @gazialankus 2 роки тому +2

    Unfortunately the view in 0:56 is actually wrong. The empty space appears at the very bottom. Love Flutter nonetheless!

  • @tradewithtony
    @tradewithtony 5 років тому

    Awesome!!!!

  • @sloogypanda4599
    @sloogypanda4599 5 років тому

    Nice vid

  • @iammusalman
    @iammusalman 5 років тому +1

    Always want to see flutter new video notification.

  • @bhavneetsingh5864
    @bhavneetsingh5864 5 років тому +4

    What is diff between flexible and expandable?

    • @asif_mojtoba
      @asif_mojtoba 5 років тому +1

      *This might help you, I guess:*
      stackoverflow.com/questions/52645944/flutter-expanded-vs-flexible

    • @leventkantaroglu7892
      @leventkantaroglu7892 5 років тому +1

      I think this gives an idea:
      class Expanded extends Flexible {
      const Expanded({
      Key key,
      int flex = 1,
      @required Widget child,
      }) : super(key: key, flex: flex, fit: FlexFit.tight, child: child);
      }

  • @primetimetran
    @primetimetran 3 роки тому

    Google could you please implement a feature on UA-cam where a content creator and add code snippet at a given time in the video and then us as viewers can copy that code like at 0:34? Thank you

  • @cinnamon6462
    @cinnamon6462 3 роки тому

    I love you guys

  • @nickyn286
    @nickyn286 5 років тому +1

    noma sana, kitu kama css grid

  • @jammah-makemoneyonline8632
    @jammah-makemoneyonline8632 5 років тому

    I have problem “try re-installing or updating your android sdk” 😢 How solve ?

    • @ShivamJha00
      @ShivamJha00 5 років тому

      LoL

    • @curedollyyy
      @curedollyyy 4 роки тому

      close android studio and then reopen. make sure you have updated your dependencies. and you can always so a quick update in your terminal to check on the status of your sdk

  • @matthiasgehrmann1573
    @matthiasgehrmann1573 5 років тому

    nice !

  • @GAMER_DEVEL00PER
    @GAMER_DEVEL00PER 3 роки тому

    Nice 👍

  • @heshansandeepa9471
    @heshansandeepa9471 2 роки тому

    very nice

  • @KL13923j
    @KL13923j 5 років тому

    Cool!

  • @dma6967
    @dma6967 5 років тому +1

    Nice

  • @tannerdavisr
    @tannerdavisr 5 років тому

    Genius

  • @WikiGameYT
    @WikiGameYT 5 років тому +1

    I want to learn this language. 😊

  • @IreshDissanayakaM
    @IreshDissanayakaM 5 років тому

    First comment. I wanted to do this for a long time.

  • @ojogaming
    @ojogaming 5 років тому

    Wow.....😍😀

  • @markdioneeb8997
    @markdioneeb8997 2 роки тому

    So this is the Bootstrap Columns/Rows of Flutter, get it

  • @abhijeetsonawane5253
    @abhijeetsonawane5253 5 років тому

    nice

  • @ajisetyapratama1876
    @ajisetyapratama1876 5 років тому

    komen dulu ah

  • @kerim3451
    @kerim3451 5 років тому

    i love flutter

  • @vladalexeev8529
    @vladalexeev8529 5 років тому

    So, it's basically android's weight

  • @Sciker
    @Sciker 5 років тому

    hi

  • @justapugontheinternet
    @justapugontheinternet 5 років тому

    More

  • @krokenstiv8777
    @krokenstiv8777 2 роки тому

    soved my roblem oh yeah

  • @ShivamJha00
    @ShivamJha00 5 років тому +1

    I'm not really comfortable with flutter. Idk why. Java/Kotlin is so much more easier to understand.

    • @mustofa_id
      @mustofa_id 5 років тому

      You mean Dart, not Flutter, Flutter is framework.
      I think Dart is easier than Java/Kotlin.

  • @sarahfortunes6361
    @sarahfortunes6361 Рік тому

    :)