title: How to create the left to right or top to bottom overlay splattering animation in Flutter
body: <p><strong>Unable to create the overlay splattering animation above the layout in flutter.</strong></p>
  
  <p><a href="https://i.stack.imgur.com/rNaoE.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rNaoE.gif" alt="enter image description here"></a></p>
  
  <pre><code>class AnimateContainer extends StatelessWidget {
    final String assetPath;
  
    AnimateContainer(this.assetPath);
    @override
    Widget build(BuildContext context) {
      return Container(
        width: 300,
        height: 100,
        child: Image.asset(
          'assets/$assetPath',
        ),
      );
    }
  }
  </code></pre>