For a simple scaling operation along the x-axis,
create a new Matrix4 identity object
and use its scale() method to specify the scaling factor.

When you scale a parent widget,
its child widgets are scaled accordingly.

transform: scale(1.5);
}

Transform(
      alignment: Alignment.center,
      transform: Matrix4.identity()..scale(1.5),
      child: Container(
        // red box
        padding: const EdgeInsets.all(16),
        decoration: BoxDecoration(
          color: Colors.red[400],
        ),
        child: Text(
          'Lorem ipsum',
          style: bold24Roboto,
          textAlign: TextAlign.center,
        ),
      ),
    ),
  ),
);

Applying a linear gradient

Container widget.
Then use the

BoxDecoration object, and use