'how give max width according to screen flutter

Here is web application image

Here is mobile applicatio image

as you can mobile screen width is maxed to width but in web application it's not streached to max width

Please check this github link---https://github.com/dhaval7152/demohouse.git

I am new in flutter



Solution 1:[1]

Try this:

Container(
  // this is the width of the screen
  width: MediaQuery.of(context).size.width,
  child: Scaffold(...);
),

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 liam spiegel