Repository: flutter
Issue: TextField doesn't handle trailing space as characters if textAlign is TextAlign.right/TextAlign.center
Labels: a: text input,framework,f: material design,has reproducible steps,P2,found in release: 2.2,found in release: 2.4,team-text-input,triaged-text-input

## Steps to Reproduce

1. Run `flutter create bug`.
2. Update main.dart as follows: ... 
```import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'TextField trailing space',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key? key, required this.title}) : super(key: key);
  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  var textAlign = TextAlign.center;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Text(
              'You have pushed the button this many times:',
            ),
            TextField(
              maxLines: null,
              textAlign: textAlign,
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () {setState(() {
          textAlign = (textAlign == TextAlign.right) ? TextAlign.center : TextAlign.right;
        });},
        tooltip: 'Increment',
        child: Icon(Icons.add),
      ), 
    );
  }
}
```

3. Write a single character, then press space repeatedly until the end of line is reached. Then type a character eg 'a'.

**Expected results:** proper line break for space characters/ space characters push back input string textAlign is TextAlign.right

**Actual results:** space characters are stopped at the end of TextField and won't be handle as normal character input (break into new line, pushing the input string if textAlign is TextAlign.right).

<details>
  <summary>Logs</summary>

<!--
      Run your application with `flutter run --verbose` and attach all the
      log output below between the lines with the backticks. If there is an
      exception, please see if the error message includes enough information
      to explain how to solve the issue.
-->

```
[  +70 ms] executing: [C:\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +400 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +2 ms] 02c026b03cd31dd3f867e5faeb7e104cce174c5f
[        ] executing: [C:\flutter/] git tag --points-at 02c026b03cd31dd3f867e5faeb7e104cce174c5f
[ +126 ms] Exit code 0 from: git tag --points-at 02c026b03cd31dd3f867e5faeb7e104cce174c5f
[   +1 ms] 2.2.1
[   +5 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +31 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[   +1 ms] origin/stable
[        ] executing: [C:\flutter/] git ls-remote --get-url origin
[  +26 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[ +114 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref HEAD
[  +34 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +1 ms] stable
[  +92 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +55 ms] executing: C:\Users\LENOVO\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[  +42 ms] List of devices attached
           z9q48ln7wsdambss       device product:begonia model:Redmi_Note_8_Pro device:begonia transport_id:4
[   +6 ms] C:\Users\LENOVO\AppData\Local\Android\sdk\platform-tools\adb.exe -s z9q48ln7wsdambss shell getprop
[  +73 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +154 ms] Skipping pub get: version match.
[ +112 ms] Generating D:\Project\Flutter\text_painter\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[  +56 ms] ro.hardware = mt6785
[   +1 ms] ro.build.characteristics = default
[  +31 ms] Initializing file store
[  +10 ms] Skipping target: gen_localizations
[   +6 ms] complete
[   +5 ms] Launching lib\main.dart on Redmi Note 8 Pro in debug mode...
[   +4 ms] C:\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev C:\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root C:\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/
--incremental --target=flutter --debugger-module-names --experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true --output-dill C:\Users\LENOVO\AppData\Local\Temp\flutter_tools.a1da3f28\flutter_tool.3ff19486\app.dill
--packages D:\Project\Flutter\text_painter\.dart_tool\package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill
build\3c113a45063dc6628e68a4111abcacad.cache.dill.track.dill --enable-experiment=alternative-invalidation-strategy
[  +30 ms] executing: C:\Users\LENOVO\AppData\Local\Android\sdk\build-tools\30.0.2\aapt dump xmltree D:\Project\Flutter\text_painter\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[  +49 ms] Exit code 0 from: C:\Users\LENOVO\AppData\Local\Android\sdk\build-tools\30.0.2\aapt dump xmltree D:\Project\Flutter\text_painter\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[   +1 ms] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1e
               A: android:compileSdkVersionCodename(0x01010573)="11" (Raw: "11")
               A: package="com.example.text_painter" (Raw: "com.example.text_painter")
               A: platformBuildVersionCode=(type 0x10)0x1e
               A: platformBuildVersionName=(type 0x10)0xb
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1e
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=16)
                 A: android:label(0x01010001)="text_painter" (Raw: "text_painter")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=21)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.text_painter.MainActivity" (Raw: "com.example.text_painter.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=35)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=45)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=49)
                     E: action (line=50)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=52)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=59)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[   +7 ms] executing: C:\Users\LENOVO\AppData\Local\Android\sdk\platform-tools\adb.exe -s z9q48ln7wsdambss shell -x logcat -v time -t 1
[   +8 ms] <- compile package:text_painter/main.dart
[ +157 ms] --------- beginning of main
                    07-20 00:54:06.913 I/ADB_SERVICES(23105): post waitpid (pid=31212) status=0000
[  +12 ms] executing: C:\Users\LENOVO\AppData\Local\Android\sdk\platform-tools\adb.exe version
[  +22 ms] Android Debug Bridge version 1.0.41
           Version 30.0.4-6686687
           Installed as C:\Users\LENOVO\AppData\Local\Android\sdk\platform-tools\adb.exe
[   +2 ms] executing: C:\Users\LENOVO\AppData\Local\Android\sdk\platform-tools\adb.exe start-server
[  +24 ms] Building APK
[  +17 ms] Running Gradle task 'assembleDebug'...
[   +9 ms] Using gradle from D:\Project\Flutter\text_painter\android\gradlew.bat.
[  +11 ms] executing: [D:\Project\Flutter\text_painter\android/] D:\Project\Flutter\text_painter\android\gradlew.bat -Pverbose=true -Ptarget-platform=android-arm64 -Ptarget=D:\Project\Flutter\text_painter\lib\main.dart
-Pdart-defines=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ== -Pdart-obfuscation=false -Ptrack-widget-creation=true -Ptree-shake-icons=false -Pfilesystem-scheme=org-dartlang-root assembleDebug
[ +797 ms] Welcome to Gradle 6.7!
[   +1 ms] Here are the highlights of this release:
[   +1 ms]  - File system watching is ready for production use
[   +1 ms]  - Declare the version of Java your build requires
[        ]  - Java 15 support
[        ] For more details see https://docs.gradle.org/6.7/release-notes.html
[+4364 ms] > Task :app:compileFlutterBuildDebug
[   +2 ms] [ +118 ms] executing: [C:\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +2 ms] [ +479 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +1 ms] [        ] 02c026b03cd31dd3f867e5faeb7e104cce174c5f
[   +5 ms] [        ] executing: [C:\flutter/] git tag --points-at 02c026b03cd31dd3f867e5faeb7e104cce174c5f
[   +2 ms] [  +56 ms] Exit code 0 from: git tag --points-at 02c026b03cd31dd3f867e5faeb7e104cce174c5f
[   +2 ms] [        ] 2.2.1
[   +1 ms] [  +10 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +1 ms] [  +46 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[   +1 ms] [        ] origin/stable
[        ] [        ] executing: [C:\flutter/] git ls-remote --get-url origin
[   +1 ms] [  +27 ms] Exit code 0 from: git ls-remote --get-url origin
[   +1 ms] [        ] https://github.com/flutter/flutter.git
[        ] [  +67 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref HEAD
[   +4 ms] [  +36 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +1 ms] [        ] stable
[   +1 ms] [  +63 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +3 ms] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +5 ms] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +2 ms] [   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +2 ms] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[   +3 ms] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[   +2 ms] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[   +1 ms] [ +107 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[   +3 ms] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[   +1 ms] [   +3 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +3 ms] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[   +2 ms] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[   +2 ms] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[   +3 ms] [        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[   +1 ms] [  +36 ms] Initializing file store
[   +1 ms] [  +22 ms] Skipping target: gen_localizations
[        ] [  +13 ms] kernel_snapshot: Starting due to {}
[   +3 ms] [ +106 ms] C:\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev C:\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --target=flutter --no-print-incremental-dependencies -DFLUTTER_WEB_AUTO_DETECT=true -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts
--track-widget-creation --no-link-platform --packages D:\Project\Flutter\text_painter\.dart_tool\package_config.json --output-dill D:\Project\Flutter\text_painter\.dart_tool\flutter_build\60b53fb5fa496bd16c6b90a133d5c8c5\app.dill
--depfile D:\Project\Flutter\text_painter\.dart_tool\flutter_build\60b53fb5fa496bd16c6b90a133d5c8c5\kernel_snapshot.d package:text_painter/main.dart
[+9696 ms] [+9823 ms] kernel_snapshot: Complete
[ +701 ms] [ +623 ms] debug_android_application: Starting due to {}
[ +298 ms] [ +338 ms] debug_android_application: Complete
[ +597 ms] [ +564 ms] Persisting file store
[   +1 ms] [   +7 ms] Done persisting file store
[        ] [   +9 ms] build succeeded.
[        ] [  +18 ms] "flutter assemble" took 11,689ms.
[ +201 ms] [ +149 ms] ensureAnalyticsSent: 145ms
[   +1 ms] [   +1 ms] Running shutdown hooks
[        ] [        ] Shutdown hooks complete
[        ] [        ] exiting with code 0
[ +185 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[   +1 ms] > Task :app:preBuild UP-TO-DATE
[   +1 ms] > Task :app:preDebugBuild UP-TO-DATE
[        ] > Task :app:compileDebugAidl NO-SOURCE
[        ] > Task :app:compileDebugRenderscript NO-SOURCE
[        ] > Task :app:generateDebugBuildConfig UP-TO-DATE
[ +107 ms] > Task :app:checkDebugAarMetadata UP-TO-DATE
[   +1 ms] > Task :app:cleanMergeDebugAssets
[        ] > Task :app:mergeDebugShaders UP-TO-DATE
[        ] > Task :app:compileDebugShaders NO-SOURCE
[        ] > Task :app:generateDebugAssets UP-TO-DATE
[        ] > Task :app:mergeDebugAssets
[ +295 ms] > Task :app:copyFlutterAssetsDebug
[   +1 ms] > Task :app:generateDebugResValues UP-TO-DATE
[   +1 ms] > Task :app:generateDebugResources UP-TO-DATE
[        ] > Task :app:mergeDebugResources UP-TO-DATE
[        ] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[        ] > Task :app:extractDeepLinksDebug UP-TO-DATE
[        ] > Task :app:processDebugMainManifest UP-TO-DATE
[        ] > Task :app:processDebugManifest UP-TO-DATE
[        ] > Task :app:processDebugManifestForPackage UP-TO-DATE
[  +84 ms] > Task :app:processDebugResources UP-TO-DATE
[   +1 ms] > Task :app:compileDebugKotlin UP-TO-DATE
[        ] > Task :app:javaPreCompileDebug UP-TO-DATE
[        ] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :app:compileDebugSources UP-TO-DATE
[        ] > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
[ +208 ms] > Task :app:processDebugJavaRes NO-SOURCE
[   +1 ms] > Task :app:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[  +94 ms] > Task :app:dexBuilderDebug UP-TO-DATE
[  +98 ms] > Task :app:desugarDebugFileDependencies UP-TO-DATE
[ +102 ms] > Task :app:mergeExtDexDebug UP-TO-DATE
[   +1 ms] > Task :app:mergeDexDebug UP-TO-DATE
[        ] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :app:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[        ] > Task :app:validateSigningDebug UP-TO-DATE
[+1196 ms] > Task :app:compressDebugAssets
[+2994 ms] > Task :app:packageDebug
[ +107 ms] > Task :app:assembleDebug
[   +1 ms] Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
[        ] Use '--warning-mode all' to show the individual deprecation warnings.
[        ] See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings
[        ] BUILD SUCCESSFUL in 22s
[        ] 32 actionable tasks: 7 executed, 25 up-to-date
[ +602 ms] Running Gradle task 'assembleDebug'... (completed in 22.9s)
[+1496 ms] calculateSha: LocalDirectory: 'D:\Project\Flutter\text_painter\build\app\outputs\flutter-apk'/app.apk
[ +672 ms] √  Built build\app\outputs\flutter-apk\app-debug.apk.
[  +22 ms] executing: C:\Users\LENOVO\AppData\Local\Android\sdk\build-tools\30.0.2\aapt dump xmltree D:\Project\Flutter\text_painter\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[  +91 ms] Exit code 0 from: C:\Users\LENOVO\AppData\Local\Android\sdk\build-tools\30.0.2\aapt dump xmltree D:\Project\Flutter\text_painter\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[        ] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1e
               A: android:compileSdkVersionCodename(0x01010573)="11" (Raw: "11")
               A: package="com.example.text_painter" (Raw: "com.example.text_painter")
               A: platformBuildVersionCode=(type 0x10)0x1e
               A: platformBuildVersionName=(type 0x10)0xb
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1e
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=16)
                 A: android:label(0x01010001)="text_painter" (Raw: "text_painter")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=21)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.text_painter.MainActivity" (Raw: "com.example.text_painter.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=35)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=45)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=49)
                     E: action (line=50)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=52)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=59)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[   +2 ms] Stopping app 'app.apk' on Redmi Note 8 Pro.
[        ] executing: C:\Users\LENOVO\AppData\Local\Android\sdk\platform-tools\adb.exe -s z9q48ln7wsdambss shell am force-stop com.example.text_painter
[ +156 ms] executing: C:\Users\LENOVO\AppData\Local\Android\sdk\platform-tools\adb.exe -s z9q48ln7wsdambss shell pm list packages com.example.text_painter
[  +76 ms] package:com.example.text_painter
[   +2 ms] executing: C:\Users\LENOVO\AppData\Local\Android\sdk\platform-tools\adb.exe -s z9q48ln7wsdambss shell cat /data/local/tmp/sky.com.example.text_painter.sha1
[  +53 ms] ab183ad7343b06705bd1ea64528edc9748a9ad55
[   +1 ms] Installing APK.
[   +2 ms] Installing build\app\outputs\flutter-apk\app.apk...
[        ] executing: C:\Users\LENOVO\AppData\Local\Android\sdk\platform-tools\adb.exe -s z9q48ln7wsdambss install -t -r D:\Project\Flutter\text_painter\build\app\outputs\flutter-apk\app.apk
[+6589 ms] Performing Streamed Install
                    Success
[   +1 ms] Installing build\app\outputs\flutter-apk\app.apk... (completed in 6.6s)
[   +1 ms] executing: C:\Users\LENOVO\AppData\Local\Android\sdk\platform-tools\adb.exe -s z9q48ln7wsdambss shell echo -n b51456567897f09aa40954cddad52944e006976c > /data/local/tmp/sky.com.example.text_painter.sha1
[  +77 ms] executing: C:\Users\LENOVO\AppData\Local\Android\sdk\platform-tools\adb.exe -s z9q48ln7wsdambss shell -x logcat -v time -t 1
[ +233 ms] --------- beginning of main
                    07-20 00:54:39.908 D/AppCompatStateReceiver( 5195): json params=[{"pkg":"com.example.text_painter","ver":"1"}]
[   +6 ms] executing: C:\Users\LENOVO\AppData\Local\Android\sdk\platform-tools\adb.exe -s z9q48ln7wsdambss shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling
true --ez enable-checked-mode true --ez verify-entry-points true com.example.text_painter/com.example.text_painter.MainActivity
[ +294 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.text_painter/.MainActivity (has extras) }
[   +1 ms] Waiting for observatory port to be available...
[+1233 ms] Observatory URL on device: http://127.0.0.1:43745/-LS0ARhsix0=/
[   +1 ms] executing: C:\Users\LENOVO\AppData\Local\Android\sdk\platform-tools\adb.exe -s z9q48ln7wsdambss forward tcp:0 tcp:43745
[  +17 ms] 61270
[        ] Forwarded host port 61270 to device port 43745 for Observatory
[   +4 ms] Caching compiled dill
[ +129 ms] Connecting to service protocol: http://127.0.0.1:61270/-LS0ARhsix0=/
[ +335 ms] Launching a Dart Developer Service (DDS) instance at http://127.0.0.1:0, connecting to VM service at http://127.0.0.1:61270/-LS0ARhsix0=/.
[ +154 ms] DDS is listening at http://127.0.0.1:61275/aHs7bxSCInQ=/.
[  +56 ms] Successfully connected to service protocol: http://127.0.0.1:61270/-LS0ARhsix0=/
[  +31 ms] DevFS: Creating new filesystem on the device (null)
[  +80 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.text_painter/code_cache/text_painterUEFLBS/text_painter/)
[   +1 ms] Updating assets
[  +69 ms] Syncing files to device Redmi Note 8 Pro...
[   +2 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[   +2 ms] <- recompile package:text_painter/main.dart 9a40f0d2-91f5-4fb6-b5db-736d8da4b362
[        ] <- 9a40f0d2-91f5-4fb6-b5db-736d8da4b362
[  +23 ms] I/OpenGLRenderer(31488): Davey! duration=867ms; Flags=1, IntendedVsync=1826060224492527, Vsync=1826060838091203, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=1826060855516865,
AnimationStart=1826060855588865, PerformTraversalsStart=1826060855593788, DrawStart=1826060871165172, SyncQueued=1826060873681865, SyncStart=1826060873895634, IssueDrawCommandsStart=1826060876239326, SwapBuffers=1826061088240634,
FrameCompleted=1826061091827403, DequeueBufferDuration=3112000, QueueBufferDuration=248000,
[   +1 ms] W/Looper  (31488): Slow Looper main: doFrame is 623ms late because of 1 msg, msg 1 took 639ms (late=1ms h=android.view.Choreographer$FrameHandler c=android.view.Choreographer$FrameDisplayEventReceiver)
[  +57 ms] Updating files.
[        ] DevFS: Sync finished
[   +1 ms] Syncing files to device Redmi Note 8 Pro... (completed in 89ms)
[        ] Synced 0.0MB.
[   +1 ms] <- accept
[  +30 ms] Connected to _flutterView/0x6f71f0c820.
[   +2 ms] Flutter run key commands.
[   +1 ms] r Hot reload. 
[   +1 ms] R Hot restart.
[        ] h Repeat this help message.
[        ] d Detach (terminate "flutter run" but leave application running).
[        ] c Clear the screen
[        ] q Quit (terminate the application on the device).
[        ]  Running with sound null safety 
[        ] An Observatory debugger and profiler on Redmi Note 8 Pro is available at: http://127.0.0.1:61275/aHs7bxSCInQ=/
[ +859 ms] The Flutter DevTools debugger and profiler on Redmi Note 8 Pro is available at: http://127.0.0.1:9102?uri=http%3A%2F%2F127.0.0.1%3A61275%2FaHs7bxSCInQ%3D%2F
[+5233 ms] I/le.text_painte(31488): ProcessProfilingInfo new_methods=617 is saved saved_to_disk=1 resolve_classes_delay=8000
[+106250 ms] D/Surface (31488): Surface::disconnect(this=0x6f5da0e000,api=1)
[   +2 ms] D/Surface (31488): Surface::disconnect(this=0x6f5da0e000,api=-1)
[ +235 ms] D/Surface (31488): Surface::disconnect(this=0x6f5da0d000,api=1)
[  +20 ms] V/PhoneWindow(31488): DecorView setVisiblity: visibility = 4, Parent = android.view.ViewRootImpl@3538a2b, this = DecorView@6ed1e88[MainActivity]
```

<!--
     Run `flutter analyze` and attach any output of that command below.
     If there are any analysis errors, try resolving them before filing this issue.
-->

```
Analyzing text_painter...
No issues found! (ran in 2.4s)
```

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
[√] Flutter (Channel stable, 2.2.1, on Microsoft Windows [Version 10.0.19042.1110], locale en-US)
    • Flutter version 2.2.1 at C:\flutter
    • Framework revision 02c026b03c (8 weeks ago), 2021-05-27 12:24:44 -0700
    • Engine revision 0fdb562ac8
    • Dart version 2.13.1

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at C:\Users\LENOVO\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: C:\Program Files\Java\jdk-11.0.11\bin\java
    • Java version Java(TM) SE Runtime Environment 18.9 (build 11.0.11+9-LTS-194)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[√] IntelliJ IDEA Community Edition (version 2020.3)
    • IntelliJ at D:\IntelliJ IDEA Community Edition 2020.3.2
    • 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

[√] VS Code (version 1.58.2)
    • VS Code at C:\Users\LENOVO\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.24.0

[√] Connected device (3 available)
    • Redmi Note 8 Pro (mobile) • z9q48ln7wsdambss • android-arm64  • Android 9 (API 28)
    • Chrome (web)              • chrome           • web-javascript • Google Chrome 91.0.4472.124
    • Edge (web)                • edge             • web-javascript • Microsoft Edge 91.0.864.70
```

</details>