In this example, we are going to show to easiest way to set child widget’s width equal to parent widget’s width. You may need this kind of design in your flutter app UI. See the example below and learn to set child widget’s width 100% matching to parent widget.
https://www.fluttercampus.com/guide/57/how-to-set-child-widget-width-equal-to-parent-in-flutter/