16 lines
388 B
Dart
16 lines
388 B
Dart
import 'package:wonders/common_libs.dart';
|
|
|
|
class StaticTextScale extends StatelessWidget {
|
|
const StaticTextScale({super.key, required this.child, this.scale = 1});
|
|
final Widget child;
|
|
final double scale;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MediaQuery(
|
|
data: MediaQuery.of(context).copyWith(textScaleFactor: scale),
|
|
child: child,
|
|
);
|
|
}
|
|
}
|