From 08a8459edbf6cff52091deb7710f11289ad3f1de Mon Sep 17 00:00:00 2001 From: Sardar1208 Date: Wed, 31 Jan 2024 21:12:22 +0530 Subject: [PATCH] chore: updated textScaleFactor to textScaler --- .../example/macos/Flutter/GeneratedPluginRegistrant.swift | 4 +++- packages/at_follows_flutter/lib/services/size_config.dart | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/at_events_flutter/example/macos/Flutter/GeneratedPluginRegistrant.swift b/packages/at_events_flutter/example/macos/Flutter/GeneratedPluginRegistrant.swift index f87cfb69b..36c638cad 100644 --- a/packages/at_events_flutter/example/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/packages/at_events_flutter/example/macos/Flutter/GeneratedPluginRegistrant.swift @@ -10,6 +10,7 @@ import biometric_storage import device_info_plus import emoji_picker_flutter import file_selector_macos +import flutter_image_compress_macos import geolocator_apple import package_info_plus import path_provider_foundation @@ -24,8 +25,9 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin")) EmojiPickerFlutterPlugin.register(with: registry.registrar(forPlugin: "EmojiPickerFlutterPlugin")) FileSelectorPlugin.register(with: registry.registrar(forPlugin: "FileSelectorPlugin")) + FlutterImageCompressMacosPlugin.register(with: registry.registrar(forPlugin: "FlutterImageCompressMacosPlugin")) GeolocatorPlugin.register(with: registry.registrar(forPlugin: "GeolocatorPlugin")) - FLTPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FLTPackageInfoPlusPlugin")) + FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin")) PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) SharePlusMacosPlugin.register(with: registry.registrar(forPlugin: "SharePlusMacosPlugin")) SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) diff --git a/packages/at_follows_flutter/lib/services/size_config.dart b/packages/at_follows_flutter/lib/services/size_config.dart index ff9f09676..a0f6a2b28 100644 --- a/packages/at_follows_flutter/lib/services/size_config.dart +++ b/packages/at_follows_flutter/lib/services/size_config.dart @@ -29,7 +29,7 @@ class SizeConfig { refHeight = 812; refWidth = 375; - deviceTextFactor = _mediaQueryData.textScaleFactor; + deviceTextFactor = _mediaQueryData.textScaler.scale(20) / 20; // print("height is::: $screenHeight");