1

Sizedbox, container and similar widgets border radius, height, width is better to give int value or double? How does this affect the speed and quality of the program?

Which is better

enter image description here

enter image description here

1
  • Please provide further details about in what situation you have this choice. Commented Jul 25, 2022 at 9:10

1 Answer 1

2

It does not matter, in this specific example. The Container constructor takes double? for width and height so if you are providing integers, they will just be converted into double by the compiler when compiling the application. So no difference at all when running the program.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.