title: How to set a custom elevation color on Flutter?
body: <p>I am trying to customize the color of the RaisedButton's shadow on flutter, e.g Green instead of Grey, I don't want to put the button inside a Container like all solutions on the internet, so I hope that there's a solution using elevation and the old answer that this is not possible by "android material" is not an issue any more.</p>
  
  <p><strong>Edited</strong>: the problem with the container with ShadowBox solution is that will be Spread to all sides as the offset has two values only,vertical and horizontal, and if we push the ShadowBox to make it in one side only, then in one side BUT it's going to be big(half of the button height)!</p>
  
  <p>So if there's a way to make the child(RaisedButton) bigger than the container then that would be a solution. </p>
  
  <p>I am trying to use Stack(..Positioned(..)) but no luck so far.</p>
  
  <p><strong>BTW, this is the button that I need a <em>native but colorful shadow</em> for it.</strong></p>
  
  <pre><code>RaisedButton(
     padding: EdgeInsets.symmetric(vertical: 15.0),
     shape: RoundedRectangleBorder(
           borderRadius: BorderRadius.circular(30.0)
     ),
     color: Theme.of(context).primaryColor,
     onPressed: () =&gt; print('Hello'),
     child: Center(Text(...)),
  ),  
  </code></pre>
  
  <p>I want a shadow at the bottom only with same color as the button:
  <a href="https://i.stack.imgur.com/SGlrO.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/SGlrO.jpg" alt="button with same color shadow"></a></p>
  
  <p>but what I am getting so far:</p>
  
  <p><a href="https://i.stack.imgur.com/Vmlip.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Vmlip.png" alt="buttons with diff shadows"></a></p>
  
  <p>thanks</p>