0

After searching similar topics and especially this one, I haven't found any solid answer about the difference of those two when using them in widgets.

They both seem to have similar effect, being as big as their parent allows.

Which one of those two is considered as best practice ?

esentis
  • 4,190
  • 2
  • 12
  • 28
  • In the linked question and answer, only `double.infinity` is claimed. That link is insufficient to argue to not use `double.infinity`. What does the flutter documentation (or even other online articles) say? – user2864740 Nov 13 '21 at 21:05
  • Does this answer your question? [Whats the difference between double.infinity and MediaQuery?](https://stackoverflow.com/questions/54489513/whats-the-difference-between-double-infinity-and-mediaquery) – user2864740 Nov 13 '21 at 21:10
  • That is to say, this claimed usage of `maxFinite` does not actually appear well-supported. – user2864740 Nov 13 '21 at 21:11
  • 1
    I have seen both uses for the same cause that's where my confusion comes from. I think `double.infinity` is the correct way, but i'm not 100% sure. – esentis Nov 13 '21 at 21:12

0 Answers0