Skip to content

Instantly share code, notes, and snippets.

Created February 23, 2020 22:53
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
class Blob extends StatelessWidget {
final double rotation;
final double scale;
final Color color;
const Blob({@required this.color, this.rotation = 0, this.scale = 1})
: assert(color != null);
Widget build(BuildContext context) {
return Transform.scale(
scale: scale,
child: Transform.rotate(
angle: rotation,
child: Container(
decoration: BoxDecoration(
color: color,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(150),
topRight: Radius.circular(240),
bottomLeft: Radius.circular(220),
bottomRight: Radius.circular(180),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment