Closed DowsingUK closed 2 years ago
@DowsingUK Could you please provide a code snippet and flutter doctor
output?
Sure,
Container( constraints: BoxConstraints(maxWidth: 100), color: Theme.of(context).primaryColor, child: AutoSizeTextField( showCursor: true, readOnly: true, buildCounter: (BuildContext context, {int currentLength, int maxLength, bool isFocused}) => null, autofocus: true, autocorrect: false, minLines: 1, maxLines: 1, maxLength: 13, controller: displayController, textAlign: TextAlign.center, cursorColor: Theme.of(context).accentColor, style: TextStyle(fontSize: 120), decoration: InputDecoration(hintText: '', hintStyle: TextStyle(color: Colors.black45), border: InputBorder.none,), ), );
[✓] Flutter (Channel stable, 2.2.2, on Mac OS X 10.15.7 19H2 darwin-x64, locale en-US) • Flutter version 2.2.2 at /flutter/2.2.2-stable • Framework revision d79295af24 (5 months ago), 2021-06-11 08:56:01 -0700 • Engine revision 91c9fc8fe0 • Dart version 2.13.3
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at /usr/local/share/android-sdk • Platform android-30, build-tools 30.0.3 • ANDROID_HOME = /usr/local/share/android-sdk/ • ANDROID_SDK_ROOT = /usr/local/share/android-sdk/ • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264) • All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 12.4, Build version 12D4e • CocoaPods version 1.10.0
[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
[✓] VS Code (version 1.61.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension can be installed from: 🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (1 available) • Chrome (web) • chrome • web-javascript • Google Chrome 95.0.4638.54
• No issues found!
Closing this thread because it's duplicated with https://github.com/lzhuor/auto_size_text_field/issues/21
Please kindly follow #21 for updates.
auto_size_text_field: ^1.0.1
It's not resizing font, it's working as a regular TextField.