changeSize method
Implementation
changeSize(BuildContext context) {
var mqc = MediaQuery.of(context);
isAndoridApp = mqc.size.width < mqcWidthSwitch_IsAndroid;
if (isAndoridApp) if (mqc.size.width > mqcWidthBase2)
KforScale = mqc.size.width / (mqcWidthBase);
else
KforScale = mqc.size.width / (mqcWidthBase2);
//xApp.KforScale = mqc.size.width / (mqcWidthBase - mqcWidthSwitch_IsAndroid);
else {
if (mqc.size.width > mqcWidthBase2)
KforScale = mqc.size.width / mqcWidthBase;
else
KforScale = mqc.size.width / mqcWidthBase2;
}
if (isAndoridApp) {
XStyles.KforScaleForFont = KforScale + 0.6;
} else {
XStyles.KforScaleForFont = KforScale - 0.1;
}
}