Check out example codes for "raisedbutton full width flutter". It will help you in understanding the concepts better.

Code Example 1

   widthFactor: 1, // means 100%, you can change this to 0.8 (80%)
     child: RaisedButton.icon(
     onPressed: () {
     label: Text('Edit Comment', style: TextStyle(color: Colors.white)),
     icon: Icon(Icons.check, color: Colors.white),

Learn ReactJs, React Native from