withScale function

Widget withScale(
  1. Widget child,
  2. {double value = 1}
)

Implementation

Widget withScale(Widget child, {double value = 1}) {
  return Transform(
      alignment: FractionalOffset.center,
      transform: new Matrix4.identity()..scale(value, value),
      child: child);
}