iampawan / VelocityX

A minimalist Flutter framework for rapidly building Flutter apps.

Home Page:https://velocityx.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature] - Scale text extension

carmas123 opened this issue · comments

Hi, can you add this extensions to scale text with factor?

Widget noTextScale(BuildContext context) {
    return this.scaleText(context, scaleFactor: 1.0);
  }

  Widget scaleText(BuildContext context, {required double scaleFactor}) {
    return MediaQuery(
      data: MediaQuery.of(context).copyWith(textScaleFactor: scaleFactor),
      child: this,
    );
  }

.scale() method Added in v3.3.0