title: Flutter, how to reduce repeated widget
body: <p>Thank you for aiding me.</p>
  
  <p>What I'm trying to do is cut down on repeat of the code below;</p>
  
  <pre><code> class PeddingRadius extends StatelessWidget {
    PeddingRadius(final column);
  
    @override
    Widget build(BuildContext context) {
      Container(
        padding: const EdgeInsets.all(8.0),
        child: Material(
            borderRadius: BorderRadius.circular(30),
            shadowColor: Colors.grey.shade100,
            elevation: 5,
            child: //my code
       ),
      )
    }
  }
  </code></pre>
  
  <p>Is there a way I could make above a function or method and insert the code below?</p>
  
  <pre><code>                  Image.asset(
                    'asset/images/HelloWorld.png', height: 100.0, width: 100.0,
                    ),
                    Text('Hello World, form Dart'),
  </code></pre>