title: How to create a wrapper widget and pass children and properties to it in flutter
body: <p>I have two pages with the same layout</p>
  <p>In react I would create a wrapper, import it and pass the children, so both pages share the same wrapper.</p>
  <pre><code>&lt;Wrapper someproperty={1}&gt;
    &lt;div&gt;content page 1&lt;/div&gt;
  &lt;/Wrapper&gt;
  
  &lt;Wrapper someproperty={2}&gt;
    &lt;div&gt;content page 2&lt;/div&gt;
  &lt;/Wrapper&gt;
  </code></pre>
  <p>Is there an equivalent for this in flutter? Any other option is very welcome, like a shared class or something, thank you</p>