title: flutter - how to add a tiled image to my BoxDecoration
body: <p>I have created a working alpha slider control. The slider alpha gradient works fine.</p>
  <p>Now, I want to create a checkered background for my slider. I want the slider to have a checkered background to look like this (please note the rounded corners of the checker):</p>
  <p><a href="https://i.stack.imgur.com/IDF27.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IDF27.png" alt="this is how i want my slider widget to look" /></a></p>
  <p>The slider's size is variable so i think i need to tile a small checker pattern PNG.</p>
  <p>This is my current code:</p>
  <pre><code>      gradient = LinearGradient(
            colors: colors,
            begin: Alignment.topCenter,
            end: Alignment.bottomCenter);
  
      Widget content = Positioned(
        left: left,
        top: top,
        child: Container(
          width: barWidth,
          height: barHeight,
          decoration: BoxDecoration(
            border: Border.all(color: Colors.black),
              borderRadius:
                  BorderRadius.all(Radius.circular(10)),
              gradient: gradient),
              
        ),
      );
  
  </code></pre>
  <p>I think i need to use &quot;ImageShader&quot; but I couldn't get it to work.</p>