Fix android system dns issues

Optimize dns default option

Fix some issues
This commit is contained in:
chen08209
2024-09-18 10:27:53 +08:00
parent 15c64327db
commit 3f0f7f051b
53 changed files with 276 additions and 221 deletions

View File

@@ -6,7 +6,9 @@ class Measure {
final TextScaler _textScale;
late BuildContext context;
Measure.of(this.context) : _textScale = MediaQuery.of(context).textScaler;
Measure.of(this.context)
: _textScale = TextScaler.linear(
WidgetsBinding.instance.platformDispatcher.textScaleFactor);
Size computeTextSize(Text text) {
final textPainter = TextPainter(