text:
Mechanism to show warning, when the flutter sdk is modified.

I have join into some group in Telegram about Flutter (Flutter Indonesia).
And i read in there that lot of problem occured because of the flutter source code are modified. This is usually happen for user which is in the stage of learning Flutter and using Visual Studio Code (Windows). They modified the code unintently.
Is it possible to give somekind of warning to us when the flutter sdk is somehow modified? Maybe the result of git status or other mechanism? so that the programmer could understand that the Flutter code is modified, when they run the project. So if some error happened, they could guess it themselves before asking to the community.

For example like this:
If someone unintentionally change the ChangeNotifier code:
from throw FlutterError(... to pthrow FlutterError(...
This will make the project error even though its from the default project (counter) after creation.

unintentionally change the flutter framework source code, which is not supposed to be changed, for a beginner.

I think all the changes that are being made goes through PR review process and most probably those changes will be identified before changes are merged, so the typos or unintentional changes being pushed to master are very less likely.

by adding the information about the integrity of flutter source code on the flutter doctor, whether the repo is intact or being modified.
Or by giving warning to the user (something like the update warning, when running flutter run) and give the solution git reset --hard which they could run when error occured because of it.

I am not sure if tracking such changes is feasible or practical to give out the warnings by the framework / tool. If you have pulled latest changes and it has some compile errors as you pointed out above due to typos for example, then the immediate remedy is to file a PR to fix it. I don't think tracking such changes at granular level is possible, so I suggest you to keep an eye on latest master / stable commits and PRs for the changes that are being made.
Based on above, I am going ahead and closing as not feasible. If you disagree, write in comments and I'll reopen it.

unintentionally change the flutter framework source code, which is not supposed to be changed, for a beginner.

I think all the changes that are being made goes through PR review process and most probably those changes will be identified before changes are merged, so the typos or unintentional changes being pushed to master are very less likely.

by adding the information about the integrity of flutter source code on the flutter doctor, whether the repo is intact or being modified.
Or by giving warning to the user (something like the update warning, when running flutter run) and give the solution git reset --hard which they could run when error occured because of it.

I am not sure if tracking such changes is feasible or practical to give out the warnings by the framework / tool. If you have pulled latest changes and it has some compile errors as you pointed out above due to typos for example, then the immediate remedy is to file a PR to fix it. I don't think tracking such changes at granular level is possible, so I suggest you to keep an eye on latest master / stable commits and PRs for the changes that are being made.
Based on above, I am going ahead and closing as not feasible. If you disagree, write in comments and I'll reopen it.

I dont think that you understand my meaning.
I don't know how to explain it. Maybe someone else with a good english could explain better.
What i mean by the change is not about PR or something like that.
Its more about the user whose learning flutter in the beginning, sometimes they modify the code of the framework, without they realizing it. Of course it will throw an error, but they will got confused by the error. They think something wrong with their code, which is not.

authors: darshankawar hndrbrm


text:
[tool_crash] ProcessException: The paging file is too small for this operation to complete.Working directory:  Command: C:\Users\user\Downloads\flutter\flutter\bin\cache\dart-sdk\bin\dart.EXE, OS error code: 1455

Command
flutter doctor

Steps to Reproduce

...
...
...

Logs
ProcessException: The paging file is too small for this operation to complete.

Working directory: "C:\Users\user\Downloads\flutter\flutter\packages\flutter_tools" (exists)
pub env: {
  "FLUTTER_ROOT": "C:\Users\user\Downloads\flutter\flutter",
  "PUB_ENVIRONMENT": "flutter_cli:get",
  "PUB_CACHE": "C:\Users\user\Downloads\flutter\flutter\.pub-cache",
}
 Command: C:\Users\user\Downloads\flutter\flutter\bin\cache\dart-sdk\bin\dart.EXE, OS error code: 1455

#0      _DefaultPub._runWithStdioInherited (package:flutter_tools/src/dart/pub.dart:445:9)
<asynchronous suspension>
#1      _DefaultPub.get (package:flutter_tools/src/dart/pub.dart:346:5)
<asynchronous suspension>
#2      PubDependencies.update (package:flutter_tools/src/flutter_cache.dart:125:5)
<asynchronous suspension>
#3      Cache.updateAll (package:flutter_tools/src/cache.dart:677:9)
<asynchronous suspension>
#4      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1376:7)
<asynchronous suspension>
#5      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1257:27)
<asynchronous suspension>
#6      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#7      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
<asynchronous suspension>
#8      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:283:9)
<asynchronous suspension>
#9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#10     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
<asynchronous suspension>
#11     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:64:9)
<asynchronous suspension>
#12     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)

[!] Flutter (Channel unknown, 0.0.0-unknown, on Microsoft Windows [Version 10.0.19044.2486], locale en-US)
    ! Flutter version 0.0.0-unknown on channel unknown at C:\Users\user\Downloads\flutter\flutter
      Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions at
      https://flutter.dev/docs/get-started/install.
      Cannot resolve current version, possibly due to local changes.
      Reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install.
    ! Unknown upstream repository.
      Reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install.
    • Framework revision  (3 days ago), 2023-01-23 16:55:55 -0800
    • Engine revision b24591ed32
    • Dart version 2.19.0
    • DevTools version 2.20.1
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly
      to perform update checks and upgrades.

[✓] Windows Version (Installed version of Windows is version 10 or higher)

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[!] Visual Studio - develop for Windows (Visual Studio Build Tools 2019 16.11.21)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
    • Visual Studio Build Tools 2019 version 16.11.33027.164
    ✗ The current Visual Studio installation is incomplete. Please reinstall Visual Studio.

[!] 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).

[✓] VS Code (version 1.74.3)
    • VS Code at C:\Users\user\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19044.2486]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 109.0.5414.75
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 109.0.1518.61

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 4 categories.

Flutter Application Metadata
No pubspec in working directory.

@vijayarawat19
From the error log, it indicates a memory issue and the flutter tool rightly caught and showed the cause.
Also, from your flutter doctor, not sure if you are on a valid flutter version because it shows Channel unknown, 0.0.0-unknown, so it doesn't seem to be valid install or something might have corrupted while installing the sdk. I suggest you to properly install the flutter sdk which shows correct and current stable version from the docs and then see if you still get the same tool crash or not.
Closing for now.

source: gharchive/issue

repo: flutter/flutter

license_type: permissive

license_source: github-api


text:
[tool_crash] RPCError

Command
flutter --no-color run --machine --track-widget-creation --device-id=chrome --start-paused --dart-define=flutter.inspector.structuredErrors=true lib/main.dart

Logs
RPCError
#0      new _OutstandingRequest (package:vm_service/src/vm_service.dart:1746:45)
#1      VmService._call (package:vm_service/src/vm_service.dart:2262:21)
#2      VmService.getIsolate (package:vm_service/src/vm_service.dart:1986:7)
#3      FlutterVmService.getIsolateOrNull (package:flutter_tools/src/vmservice.dart:934:20)
#4      FlutterVmService.findExtensionIsolate (package:flutter_tools/src/vmservice.dart:899:51)
<asynchronous suspension>
#5      FlutterResidentDevtoolsHandler._waitForExtensionsForDevice (package:flutter_tools/src/resident_devtools_handler.dart:177:7)
<asynchronous suspension>
#6      Future.wait.<anonymous closure> (dart:async/future.dart:522:21)
<asynchronous suspension>
#7      FlutterResidentDevtoolsHandler.hotRestart (package:flutter_tools/src/resident_devtools_handler.dart:245:55)
<asynchronous suspension>

[✓] Flutter (Channel stable, 3.3.9, on macOS 12.1 21C52 darwin-x64, locale en-GB)
    • Flutter version 3.3.9 on channel stable at /Users/trentiumsolution/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b8f7f1f986 (3 months ago), 2022-11-23 06:43:51 +0900
    • Engine revision 8f2221fbef
    • Dart version 2.18.5
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
    • Android SDK at /Users/trentiumsolution/Library/Android/sdk
    • Platform android-33, build-tools 32.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 13F100
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • 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.10+0-b96-7281165)

[✓] VS Code (version 1.75.1)
    • 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 110.0.5481.177

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Flutter Application Metadata
Type: app
Version: 1.0.0+1
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: stable
Creation framework version: f1875d570e39de09040c8f79aa13cc56baab8db1
Plugins
amplify_auth_cognito-1.0.0-next.3
amplify_auth_cognito_android-1.0.0-next.3
amplify_auth_cognito_ios-1.0.0-next.3
amplify_flutter-1.0.0-next.3
amplify_flutter_android-1.0.0-next.3
amplify_flutter_ios-1.0.0-next.3
amplify_secure_storage-0.1.4+1
connectivity_plus-2.3.7
connectivity_plus_linux-1.3.1
connectivity_plus_macos-1.2.4
connectivity_plus_web-1.2.3
connectivity_plus_windows-1.2.2
file_picker-5.2.5
flutter_plugin_android_lifecycle-2.0.7
path_provider-2.0.11
path_provider_android-2.0.20
path_provider_ios-2.0.11
path_provider_linux-2.1.7
path_provider_macos-2.0.6
path_provider_windows-2.1.3
url_launcher-6.1.7
url_launcher_android-6.0.22
url_launcher_ios-6.0.17
url_launcher_linux-3.0.1
url_launcher_macos-3.0.1
url_launcher_web-2.0.13
url_launcher_windows-3.0.1

Closing this as duplicate of https://github.com/flutter/flutter/issues/87690


text:
[Impeller] Link 99th and worst frame time benchmarks on the document containing important Impeller benchmarks.

Some important benchmarks the team tracks are documented here. However, this is currently missing the 99th and worst frame time benchmarks. These are important as they capture the jank due to shader compilation. References to these benchmarks must be added to the page.

cc @gaaclarke

I followed the link and several of the bencharmks due include 99% and worst frame time. If there are specific ones that should be added, just make the change?

authors: chinmaygarde jonahwilliams


text:
Device orientation behavior (Android & IOS) when changing pages

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce

Go to a portait to a landscape page with goRouter (same behavior with Navigator.push()).
Wait the magic....

Expected results
I'm expacting a landscape page when I choose landscape.
Actual results
The landscape is set 1 sec and my orientation is reset to portait
Code sample
TestPage() code
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

class TestPage extends StatefulWidget {
  const TestPage({super.key});

  @override
  State<TestPage> createState() => _TestPageState();
}

class _TestPageState extends State<TestPage> {

  @override
  void initState() {
    super.initState();
    SystemChrome.setPreferredOrientations(
      [
        DeviceOrientation.landscapeLeft,
        DeviceOrientation.landscapeRight,
      ],
    );
  }

  @override
  void dispose() {
    super.dispose();
    SystemChrome.setPreferredOrientations(
      [
        DeviceOrientation.portraitUp,
        DeviceOrientation.portraitDown,
      ],
    );
  }

  @override
  Widget build(BuildContext context) {
    return const Column(
      children: [
        Text("AAAAAAAAAAAAAAAh")
      ],
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration
Screen_recording_20230929_083556.webm

Logs
Logs
Nothing

Flutter Doctor output
Doctor output
[√] Flutter (Channel stable, 3.13.4, on Microsoft Windows [version 10.0.19045.3448], locale fr-FR)
    • Flutter version 3.13.4 on channel stable at W:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 367f9ea16b (2 weeks ago), 2023-09-12 23:27:53 -0500
    • Engine revision 9064459a8b
    • Dart version 3.1.2
    • DevTools version 2.25.0

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at C:\Users\Teyir\AppData\Local\Android\sdk
    • Platform android-33, build-tools 33.0.1
    • Java binary at: I:\AndroidStudio2022\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.1.0)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.1.32210.238
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2020.3)
    • Android Studio at I:\AndroidStudio
    • 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.10+0-b96-7249189)

[√] Android Studio (version 2021.3)
    • Android Studio at I:\AndroidStudio2022
    • 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.13+0-b1751.21-8125866)

    • Android SDK built for x86 (mobile) • emulator-5554 • android-x86    • Android 10 (API 29) (emulator)
    • Windows (desktop)                  • windows       • windows-x64    • Microsoft Windows [version 10.0.19045.3448]
    • Chrome (web)                       • chrome        • web-javascript • Google Chrome 116.0.5845.188
    • Edge (web)                         • edge          • web-javascript • Microsoft Edge 117.0.2045.36

[√] Network resources
    • All expected network resources are available.

• No issues found!

Pubspec.yaml
This is my pubspec:
name: traknard
description: Traknard mobile app
publish_to: 'none'
version: 1.0.0
environment:
sdk: '>=3.0.0'
flutter: '>=3.13.2' #Il faut avoir minimum flutter 3.13.4 pour lancer le projet
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
cupertino_icons: ^1.0.2
go_router: ^10.1.2
animate_icons: ^2.0.0
http: ^0.13.5
intl: ^0.18.0
flutter_secure_storage: ^8.0.0
internet_connection_checker: ^1.0.0+1
flutter_facebook_auth: ^5.0.7
google_sign_in: ^6.1.2
fluttertoast: ^8.1.2
flutter_facebook_keyhash: ^0.0.4
image_picker: ^1.0.0
url_launcher: ^6.1.11
i18n:
path: i18n
reflectable: ^4.0.5
cached_network_image: ^3.2.3
package_info_plus: ^4.0.2
syncfusion_flutter_sliders: ^22.1.36
mobx: ^2.2.0
provider: ^6.0.5
flutter_mobx: ^2.0.6+5
hive: ^2.2.3
hive_flutter: ^1.1.0
get_it:
injectable:
path_provider: ^2.0.15
card_slider: ^1.0.5
carousel_slider: ^4.2.1
flutter_animate: ^4.1.1+1
socket_io_client: ^2.0.3+1
sentry_flutter: ^7.10.1
dev_dependencies:
flutter_launcher_icons: "^0.13.1"
flutter_test:
sdk: flutter
flutter_lints: ^2.0.0
build_runner:
mobx_codegen:
hive_generator: ^2.0.0
injectable_generator:
flutter:
assets:
- assets/
- assets/images/
fonts:
- family:  Traknard
fonts:
- asset: assets/fonts/Traknard.ttf
- family: Poppins
fonts:
- asset: assets/fonts/Poppins-Regular.ttf
weight: 400
- asset: assets/fonts/Poppins-Italic.ttf
weight: 400
style: italic
- asset: assets/fonts/Poppins-Medium.ttf
weight: 500
- asset: assets/fonts/Poppins-MediumItalic.ttf
weight: 500
style: italic
- asset: assets/fonts/Poppins-SemiBold.ttf
weight: 600
- asset: assets/fonts/Poppins-SemiBoldItalic.ttf
weight: 600
style: italic
- asset: assets/fonts/Poppins-Bold.ttf
weight: 700
- asset: assets/fonts/Poppins-BoldItalic.ttf
weight: 700
style: italic
- asset: assets/fonts/Poppins-ExtraBold.ttf
weight: 800
- asset: assets/fonts/Poppins-ExtraBoldItalic.ttf
weight: 800
style: italic
- asset: assets/fonts/Poppins-Black.ttf
weight: 900
- asset: assets/fonts/Poppins-BlackItalic.ttf
weight: 900
style: italic
uses-material-design: true
flutter_gen:
output: lib/generated
flutter_launcher_icons:
android: "launcher_icon"
ios: true
image_path: "assets/app_logo.png"
min_sdk_android: 21

Thank you very much

Hi @Teyir
Your sample code contains only one page and is not similar to the demonstration above. Please update the sample code corresponding to the demonstration.

Go to a portait to a landscape page

This step is quite vague, please provide the detailed steps to reproduce. Thanks!

authors: Teyir huycozy


text:
A memory leak occurred while I was using a Canvas receipt image and converting it to ui.Image

Steps to reproduce
void setPixelcolor(List points, double brushsize, Color color)(_recorder ??= ui.PictureRecorder()；
_canvas ??= ui.Canvas(_recorder!)；
_canvas?.dravImage(layers[currentEditLayout].uiImage!, Offset.zero, Paint())；
canvas!.drawPoints(
ui.PointMode.points,
points,
Paint()
..color = color
..strokeWidth = 1);
_picture = _recorder!.endRecording();
layers[currentEditLayout].uiImage = _picture!.toImageSync(canvassize.width.toInt(),canvassize.height.toInt())；picture!.dispose()；
_picture = null;
This is the function executed
Expected results
Memory is stable
Actual results
I execute 5000 times, and the memory goes up badly
Code sample
Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[Paste your output here]

Closing this as a duplicate of https://github.com/flutter/flutter/issues/145210. Please don't file multiple issues for the same reason.


text:
RenderFlex should not use defaultComputeDistanceToFirstActualBaseline to calculate its baseline in Axis.vertical

VerticalDirection.up  reorders its children. This will be a breaking change.
  test('Vertical Flex Baseline', () {
    const BoxConstraints square = BoxConstraints.tightFor(width: 100.0, height: 100.0);
    final RenderConstrainedBox box1 = RenderConstrainedBox(
      additionalConstraints: square,
      child: RenderFlowBaselineTestBox()
        ..gridCount = 1
        ..baselinePlacer = (double height) => 10,
    );
    final RenderConstrainedBox box2 = RenderConstrainedBox(
      additionalConstraints: square,
      child: RenderFlowBaselineTestBox()
        ..gridCount = 1
        ..baselinePlacer = (double height) => 10,
    );
    final RenderFlex flex = RenderFlex(
      textDirection: TextDirection.ltr,
      children: <RenderBox>[box1, box2],
      direction: Axis.vertical,
    );
    layout(flex, phase: EnginePhase.paint);

    // We can't call the getDistanceToBaseline method directly. Check the dry
    // baseline instead, and in debug mode there are asserts that verify
    // the two methods return the same results.
    expect(flex.getDryBaseline(flex.constraints, TextBaseline.alphabetic), 10);

    flex.mainAxisAlignment = MainAxisAlignment.end;
    pumpFrame(phase: EnginePhase.paint);
    expect(flex.getDryBaseline(flex.constraints, TextBaseline.alphabetic), 410);

    flex.verticalDirection = VerticalDirection.up;
    pumpFrame(phase: EnginePhase.paint);
    expect(flex.getDryBaseline(flex.constraints, TextBaseline.alphabetic), 10);

    flex.mainAxisAlignment = MainAxisAlignment.start;
    pumpFrame(phase: EnginePhase.paint);
    expect(flex.getDryBaseline(flex.constraints, TextBaseline.alphabetic), 410);
  });

Hi @LongCatIsLooong
RenderFlowBaselineTestBox is not defined. Could you also share it?

@Hixie in a vertical RenderFlex with VerticalDirection.up, which child's baseline should be used? The documentation of computeDistanceToActualBaseline says it

Returns the distance from the y-coordinate of the position of the box to the y-coordinate of the first given baseline in the box's contents, if any, or null otherwise.

How do I interpret "the first given baseline" here? For multi-child containers, does it mean "the baseline with the smallest y-offset"?

If I recall correctly, the "first child" is intended to be the first one in the child list (the one that firstChild points to).

(It's definitely not automatically the one with the smallest y-offset, in fact that's often the wrong child (for example consider a stack). It's also not always the first child that you want, for example a Material text field explicitly doesn't want to use the label for its baseline, since that moves around; it wants to use the user-editable text in the text field.)

Ah so if I have a column with VerticalDirection.up, the expected behavior is to use the bottom-most child with a baseline?

for example consider a stack

Stacks do use the highest baseline it seems:  https://api.flutter.dev/flutter/rendering/RenderStack/computeDistanceToActualBaseline.html

in fact that's often the wrong child

There doesn't seem to be a fast & easy remedy for that besides writing a custom RenderObject? Does it sound reasonable to introduce a ParentDataWidget to specify the baseline child then (I think we are allowed to have more than one ParentDataWidget on a render object now)?

Ah so if I have a column with VerticalDirection.up, the expected behavior is to use the bottom-most child with a baseline?

I mean honestly at this point given how much content exists that depends on this, I would say the expected behaviour is probably whatever we do. If we change it, we're going to break people in really subtle ways.

Stacks do use the highest baseline it seems: https://api.flutter.dev/flutter/rendering/RenderStack/computeDistanceToActualBaseline.html

Heh, figures. :-)

There doesn't seem to be a fast & easy remedy for that besides writing a custom RenderObject?

The IgnoreBaseline widget is the usual remedy, but in general, writing a custom RenderObject is probably the way to go if you care about the layout and baseline positions and so on.

Does it sound reasonable to introduce a ParentDataWidget to specify the baseline child then (I think we are allowed to have more than one ParentDataWidget on a render object now)?

I'm not sure what problem we're trying to solve here so it's hard for me to evaluate.

The IgnoreBaseline widget is the usual remedy

Ah clever. Thanks I'll close this then.

authors: Hixie LongCatIsLooong huycozy


text:
flutter run -d macos warns "Using the Skia rendering backend"

"[IMPORTANT:flutter/shell/platform/darwin/graphics/FlutterDarwinContextMetalSkia.mm(68)] Using the Skia rendering backend (Metal)." isn't actionable since Impeller is not yet supported on macOS.  Only show this log line on iOS.
$ flutter run lib/main.dart -d macos
...
[2024-05-30 16:52:14.109615] [STDOUT] run:stdout: ✓ Built build/macos/Build/Products/Debug/ui.app
[2024-05-30 16:52:15.059330] [STDOUT] run:stdout: [IMPORTANT:flutter/shell/platform/darwin/graphics/FlutterDarwinContextMetalSkia.mm(68)] Using the Skia rendering backend (Metal).
[2024-05-30 16:52:15.390364] [STDOUT] run:stdout: Syncing files to device macOS...                                    24ms
[2024-05-30 16:52:15.393318] [STDOUT] run:stdout:
[2024-05-30 16:52:15.393492] [STDOUT] run:stdout: Flutter run key commands.
[2024-05-30 16:52:15.394165] [STDOUT] run:stdout: r Hot reload. 🔥🔥🔥

cc @jonahwilliams


text:
[go_router] [url_launcher] Navigating using Link widget in web not working on mobile

Steps to reproduce
Run any sample code, such as the Flutter counter app, and add go_router and url_launcher to the dependencies. Then, wrap a button with the Link widget and set its uri argument to a valid route like Uri(path: '/myroute'). In the builder, pass the followLink function to the button's onPressed callback. This works fine on desktop web browsers, but on mobile web browsers, nothing happens. Additionally, there are no logs in the debug terminal or the browser's console.
I have tested this behavior using Chrome on Windows in both debug and release modes.
Expected results
Navigates to given route.
Actual results
Nothing happens.
Code sample
.
Screenshots or Video
No response
Logs
No response
Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.24.0, on Microsoft Windows [Version 10.0.22621.4037], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.6.3)
[√] Android Studio (version 2023.2)
[√] VS Code (version 1.92.2)
[√] Connected device (3 available)
[√] Network resources

• No issues found!

Updating to Channel stable, 3.24.1 would fix this.
I assume this was the core issue.


text:
Flutter Gallery says it's the "April 2017 Preview"

The "about box" in Flutter Gallery says it's the "April 2017 Preview". I'm pretty sure it's more recent than that!
Perhaps we need to make this more dynamic:
https://github.com/flutter/flutter/blob/master/examples/flutter_gallery/lib/gallery/drawer.dart#L243

What should this number be? The time when the user is looking at this? The when this instance of the gallery was built? The current beta version when the instance of the gallery was built? Etc etc.

The string should capture when the Gallery was built, not when the user is looking at it. The primary objective is to facilitate easily see how recent an installed Gallery app is.
How frequently do we typically push updates? I wonder if the current month-based scheme is fine-grained enough?
Maybe just use a version number, specifically the same version number as the Flutter SDK? So a gallery build from current master build today could say "Version 0.2.4"?

Now it says April 2018 Preview but that also sounds outdated.
Perhaps waiting for #22722
#24863 might be related
Somewhat related the release on the App Store #15618

authors: mit-mit xster zoechi


text:
Text field input type issue for Android

Steps to reproduce
I am working on a OTP UI screen ,I am facing issue in android works fine for iOS ,Where while entering the numbers the input type keyboard flickers in between and switching back to default keyboard.
Expected results
The Keyboard UI should not flicker while entering the input number
Actual results
The Keyboard UI is flickering in between and switching back to default keyboard for input type number keyboard
Code sample
Code sample
[import 'dart:async';  // For timer functionality
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

class ModernOTPBottomSheet extends StatefulWidget {
  final Function(String) onOtpSubmitted;
  final Function() onRetryRequested;

  ModernOTPBottomSheet({required this.onOtpSubmitted, required this.onRetryRequested});

  @override
  _ModernOTPBottomSheetState createState() => _ModernOTPBottomSheetState();
}

class _ModernOTPBottomSheetState extends State<ModernOTPBottomSheet> with SingleTickerProviderStateMixin {
  final List<TextEditingController> _controllers = List.generate(4, (index) => TextEditingController());
  final FocusNode _focusNode = FocusNode();
  final ValueNotifier<bool> _isButtonEnabled = ValueNotifier(false);  // To track if all OTP digits are entered
  late Timer _timer;  // Timer to track 3-minute period
  int _remainingTime = 180; // 3 minutes in seconds
  bool _canRetry = false;
  late AnimationController _animationController;  // Animation controller for scaling

  @override
  void initState() {
    super.initState();
    _startTimer();
    _animationController = AnimationController(
      vsync: this,
      duration: Duration(milliseconds: 200),  // Fast scaling animation
    );
  }

  @override
  void dispose() {
    _controllers.forEach((controller) => controller.dispose());
    _isButtonEnabled.dispose();
    _timer.cancel();
    _animationController.dispose();
    super.dispose();
  }

  // Start the countdown timer
  void _startTimer() {
    _timer = Timer.periodic(Duration(seconds: 1), (timer) {
      if (_remainingTime > 0) {
        setState(() {
          _remainingTime--;
        });
      } else {
        setState(() {
          _canRetry = true;
        });
        _timer.cancel();
      }
    });
  }

  String get _formattedTime {
    int minutes = _remainingTime ~/ 60;
    int seconds = _remainingTime % 60;
    return "$minutes:${seconds.toString().padLeft(2, '0')}";
  }

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.all(20),
      decoration: BoxDecoration(
        color: Colors.white,
        borderRadius: BorderRadius.only(
          topLeft: Radius.circular(25),
          topRight: Radius.circular(25),
        ),
      ),
      child: Column(
        mainAxisSize: MainAxisSize.min,
        crossAxisAlignment: CrossAxisAlignment.center,
        children: [
          Text(
            'Enter OTP',
            style: TextStyle(
              fontSize: 22,
              fontWeight: FontWeight.bold,
              color: Colors.black87,
            ),
          ),
          const SizedBox(height: 20),
          Row(
            mainAxisAlignment: MainAxisAlignment.spaceEvenly,
            children: List.generate(4, (index) {
              return _buildTextField(context, _controllers[index], index);
            }),
          ),
          const SizedBox(height: 20),
          Text(
            'Resend OTP in ${_formattedTime}',
            style: TextStyle(fontSize: 16, color: Colors.grey),
          ),
          const SizedBox(height: 10),
          GestureDetector(
            onTap: _canRetry ? () {
              widget.onRetryRequested();  // Call retry function
              setState(() {
                _remainingTime = 180; // Reset timer
                _canRetry = false;
                _startTimer();  // Restart the timer
              });
            } : null,
            child: Text(
              'Resend OTP',
              style: TextStyle(
                fontSize: 16,
                fontWeight: FontWeight.bold,
                color: _canRetry ? Colors.blue : Colors.grey,
              ),
            ),
          ),
          const SizedBox(height: 30),
          ValueListenableBuilder<bool>(
            valueListenable: _isButtonEnabled,
            builder: (context, isEnabled, child) {
              return ElevatedButton(
                onPressed: isEnabled
                    ? () {
                  String otp = _controllers.map((controller) => controller.text.trim()).join();
                  widget.onOtpSubmitted(otp);
                  Navigator.pop(context);
                }
                    : null,  // Disable the button if not all digits are entered
                child: Text('Submit'),
                style: ElevatedButton.styleFrom(
                  padding: EdgeInsets.symmetric(vertical: 15),
                  shape: RoundedRectangleBorder(
                    borderRadius: BorderRadius.circular(20),
                  ),
                  textStyle: TextStyle(fontSize: 18),
                  minimumSize: Size(double.infinity, 50),  // Full-width button
                  backgroundColor: isEnabled ? Colors.deepPurple : Colors.grey,  // Change color based on enabled state
                ),
              );
            },
          ),
        ],
      ),
    );
  }

  Widget _buildTextField(BuildContext context, TextEditingController controller, int index) {
    return AnimatedContainer(
      duration: Duration(milliseconds: 200),  // Animation duration
      width: _focusNode.hasFocus ? 55 : 45,  // Increase size when focused
      height: _focusNode.hasFocus ? 55 : 45,  // Increase size when focused
      child: TextField(
        autofillHints: const <String>[AutofillHints.oneTimeCode],
        controller: controller,
        autocorrect: false,
        autofocus: false,
        focusNode: index == 0 ? _focusNode : null,  // Optional: manage focus
        keyboardType: TextInputType.number,
        textAlign: TextAlign.center,
        inputFormatters: [LengthLimitingTextInputFormatter(1), FilteringTextInputFormatter.digitsOnly],
        decoration: InputDecoration(
          filled: true,
          fillColor: Colors.grey.shade100,  // Light background for a modern look
          border: UnderlineInputBorder(
            borderSide: BorderSide(color: Colors.black54),  // Underline instead of box
          ),
        ),
        style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
        onTap: () {
          _animationController.forward();
        },
        onChanged: (value) {
          if (value.length == 1 && index < 3) {
            FocusScope.of(context).nextFocus();  // Move to the next field
          } else if (value.isEmpty && index > 0) {
            FocusScope.of(context).previousFocus();  // Move to the previous field on backspace
          }
          _checkOtpComplete();  // Check if all fields are filled
        },
      ),
    );
  }

  // Method to check if all fields are filled and enable/disable the button accordingly
  void _checkOtpComplete() {
    bool isComplete = _controllers.every((controller) => controller.text.trim().isNotEmpty);
    _isButtonEnabled.value = isComplete;
  }
}
]

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[Paste your output here]

@TiruKallepalli
Can you provide flutter doctor -v to know on which version you are seeing the reported behavior ?
Can you also provide device details (make, model and OS version) on which you are seeing this ? Also provide a short video of the behavior. Most importantly, provide only minimal but complete runnable reproducible code sample (ex: main.dart) that we can simply copy paste and run to verify further, so you can remove unwanted code implementation and only keep which matters to trigger the behavior.
https://stackoverflow.com/help/minimal-reproducible-example

Hi @darshankawar
Here are my flutter details
• Flutter version 3.24.3 on channel stable at /Users/tirumalesh/Documents/FlutterDev/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 2663184aa7 (3 months ago), 2024-09-11 16:27:48 -0500
• Engine revision 36335019a8
• Dart version 3.5.3
• DevTools version 2.37.3

I have tested by creating the new project as well

I have tested in android emulator and even on real device google pixel 8 and samsung note 10 plus which is running on android 15 and android 12 versions.

The above code can be called simply in main.dart file.
Attaching the video for your reference
if you see in the video how the keyboard is flickering while entering input
https://github.com/user-attachments/assets/dee8b427-6ec7-4ab1-9cfd-69dcb79b294a

final Function(String) onOtpSubmitted;
  final Function() onRetryRequested;

@TiruKallepalli Please provide these values to be passed in the main function.

final Function(String) onOtpSubmitted == This callback to pass otp value which is entered to other class;
final Function() onRetryRequested==  This is nothing just a function to call api

I see below upon running the code so I am unable to verify this properly.

Hence, as I had requested earlier, only provide minimal code by removing unwanted implementation.

@darshankawar
Please check this code
`import 'dart:async';  // For timer functionality
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
class ModernOTPBottomSheet extends StatefulWidget {
final Function(String) onOtpSubmitted;
final Function() onRetryRequested;
ModernOTPBottomSheet({required this.onOtpSubmitted, required this.onRetryRequested});
@override
_ModernOTPBottomSheetState createState() => _ModernOTPBottomSheetState();
}
class _ModernOTPBottomSheetState extends State with SingleTickerProviderStateMixin {
final List _controllers = List.generate(4, (index) => TextEditingController());
final FocusNode _focusNode = FocusNode();
final ValueNotifier _isButtonEnabled = ValueNotifier(false);  // To track if all OTP digits are entered
late Timer _timer;  // Timer to track 3-minute period
int _remainingTime = 180; // 3 minutes in seconds
bool _canRetry = false;
late AnimationController _animationController;  // Animation controller for scaling
@override
void initState() {
super.initState();
_startTimer();
_animationController = AnimationController(
vsync: this,
duration: Duration(milliseconds: 200),  // Fast scaling animation
);
}
@override
void dispose() {
_controllers.forEach((controller) => controller.dispose());
_isButtonEnabled.dispose();
_timer.cancel();
_animationController.dispose();
super.dispose();
}
// Start the countdown timer
void _startTimer() {
_timer = Timer.periodic(Duration(seconds: 1), (timer) {
if (_remainingTime > 0) {
setState(() {
_remainingTime--;
});
} else {
setState(() {
_canRetry = true;
});
_timer.cancel();
}
});
}
String get _formattedTime {
int minutes = _remainingTime ~/ 60;
int seconds = _remainingTime % 60;
return "$minutes:${seconds.toString().padLeft(2, '0')}";
}
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Container(
padding: EdgeInsets.all(20),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(25),
topRight: Radius.circular(25),
),
),
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Text(
'Enter OTP',
style: TextStyle(
fontSize: 22,
fontWeight: FontWeight.bold,
color: Colors.black87,
),
),
const SizedBox(height: 20),
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: List.generate(4, (index) {
return _buildTextField(context, _controllers[index], index);
}),
),
const SizedBox(height: 20),
Text(
'Resend OTP in ${_formattedTime}',
style: TextStyle(fontSize: 16, color: Colors.grey),
),
const SizedBox(height: 10),
GestureDetector(
onTap: _canRetry ? () {
widget.onRetryRequested();  // Call retry function
setState(() {
_remainingTime = 180; // Reset timer
_canRetry = false;
_startTimer();  // Restart the timer
});
} : null,
child: Text(
'Resend OTP',
style: TextStyle(
fontSize: 16,
fontWeight: FontWeight.bold,
color: _canRetry ? Colors.blue : Colors.grey,
),
),
),
const SizedBox(height: 30),
ValueListenableBuilder(
valueListenable: _isButtonEnabled,
builder: (context, isEnabled, child) {
return ElevatedButton(
onPressed: isEnabled
? () {
String otp = _controllers.map((controller) => controller.text.trim()).join();
widget.onOtpSubmitted(otp);
Navigator.pop(context);
}
: null,  // Disable the button if not all digits are entered
child: Text('Submit'),
style: ElevatedButton.styleFrom(
padding: EdgeInsets.symmetric(vertical: 15),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(20),
),
textStyle: TextStyle(fontSize: 18),
minimumSize: Size(double.infinity, 50),  // Full-width button
backgroundColor: isEnabled ? Colors.deepPurple : Colors.grey,  // Change color based on enabled state
),
);
},
),
],
),
),
),
);
}
Widget _buildTextField(BuildContext context, TextEditingController controller, int index) {
return AnimatedContainer(
duration: Duration(milliseconds: 200),  // Animation duration
width: _focusNode.hasFocus ? 55 : 45,  // Increase size when focused
height: _focusNode.hasFocus ? 55 : 45,  // Increase size when focused
child: TextField(
autofillHints: const [AutofillHints.oneTimeCode],
controller: controller,
autocorrect: false,
autofocus: false,
focusNode: index == 0 ? _focusNode : null,  // Optional: manage focus
keyboardType: TextInputType.number,
textAlign: TextAlign.center,
inputFormatters: [LengthLimitingTextInputFormatter(1), FilteringTextInputFormatter.digitsOnly],
decoration: InputDecoration(
filled: true,
fillColor: Colors.grey.shade100,  // Light background for a modern look
border: UnderlineInputBorder(
borderSide: BorderSide(color: Colors.black54),  // Underline instead of box
),
),
style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
onTap: () {
_animationController.forward();
},
onChanged: (value) {
if (value.length == 1 && index < 3) {
FocusScope.of(context).nextFocus();  // Move to the next field
} else if (value.isEmpty && index > 0) {
FocusScope.of(context).previousFocus();  // Move to the previous field on backspace
}
_checkOtpComplete();  // Check if all fields are filled
},
),
);
}
// Method to check if all fields are filled and enable/disable the button accordingly
void _checkOtpComplete() {
bool isComplete = _controllers.every((controller) => controller.text.trim().isNotEmpty);
_isButtonEnabled.value = isComplete;
}
}
`

@darshankawar
Yes in master branch there is no issue can i expect in stable branch for a new flutter version

Yes it most probably be available in next stable release, so watch out for it.
Closing this as fixed.

authors: TiruKallepalli darshankawar


text:
flutter 与原生混合的时候，手势的问题

原生跳转到一个 flutter 页面，这个flutter 页面有个横向滚动的列表，这个横向滚动的列表与原生的侧滑返回事件冲突。怎么解决这种滑动手势冲突

直接让google的工程师帮你开发算了

@pp126 那怎么控制两者的冲突，你牛逼你来

@OHeroJ 问题你都描述不清楚还怎么聊？？  原生页面跳flutter  意味着进入flutter所依附的activity，你的意思是原生界面的事件带入了后者？？   再者，侧滑返回一般都是边缘触摸，Android有边缘手势管理的方法，不是很方便就能判断是否禁止？

@OHeroJ 问题你都描述不清楚还怎么聊？？ 原生页面跳flutter 意味着进入flutter所依附的activity，你的意思是原生界面的事件带入了后者？？ 再者，侧滑返回一般都是边缘触摸，Android有边缘手势管理的方法，不是很方便就能判断是否禁止？

你是个 android 开发者，那 ios你懂？

问题很清楚，一个页面中有个横向滚动的Listview,  页面本身有个侧滑的手势，当 Listview  的元素先左滑然后在右滑的时候，系统的侧滑手势优先了

我只是跟你用Android打个比方而已，系统的侧滑手势的禁用与开启，一个状态不就能判断？？ios一般是默认开启，有相应的api来控制是否打开。

而且ios也是边缘手势，这里的手势比Android还要简单，只涉及到左边缘右滑

看来你没读懂我的问题

我只是跟你用Android打个比方而已，系统的侧滑手势的禁用与开启，一个状态不就能判断？？ios一般是默认开启，有相应的api来控制是否打开。

你就说怎么解决，瞎比比

原生跳转到一个 flutter 页面，这个flutter 页面有个横向滚动的列表，这个横向滚动的列表与原生的侧滑返回事件冲突。怎么解决这种滑动手势冲突

https://github.com/flutter/flutter/issues/27071

Flutter 和 iOS 之间的 Battle：手势交互听谁的？

Hi @OHeroJ
I see there's an open issue addressing the case you described.
Please follow up on that issue,
I'm closing the current one as duplicate.
If you disagree please write in the comments
and I will reopen it.
Thank you


text:
Haptic feedback heavier on Flutter than iOS

Comparing this Flutter app with an iOS system app, the haptic feedback is inconsistent for switch widgets.
Repro:

Open Veggie Seasons app, and navigate to Settings / Preferred Categories
Flip the switches a few times
Now go to the iPhone Settings app and choose something like the Do Not Disturb tab
Flip the switches a few times

The difference in sensation is pronounced if the iPhone is on a hard surface (e.g. table). I'd guesstimate that the Flutter app haptics are 2-3x stronger than they should be -- for the system haptic, it's a gentle nudge, compared to an abrupt sensation on the Flutter app.
Device type: iPhone Xs, iOS 12.2. App compiled with Flutter 1.2 using Xcode 10.1.

Thanks for catching.
Note to self: we're using UIImpactFeedbackStyleLight on UIImpactFeedbackGenerator switches but perhaps they're using something different altogether, like UISelectionFeedbackGenerator or some such.

So here's what's really weird: the "Save to Garden" switch generates a light haptic feedback, whereas the switches on the settings screen generate a strong haptic feedback. Looking at the code, I can't see any difference: both are fairly straightforward invocations of CupertinoSwitch.
The only thing I'm wondering is whether the haptic is somehow being generated twice in quick session, which might possibly give the perception of a strong feedback. Adding @RedBrogdon -- any smart ideas?

My guess is it being caused by the hardware being pre-spun in a hot state when toggling multiple switches from the settings screen vs kicking from a cold state via save to garden.
In the most ideal case, we should really be calling prepare https://developer.apple.com/documentation/uikit/uifeedbackgenerator?language=objc#2555405 seconds before sending the feedback trigger to let the taptic engine spin up.
I'm guessing without preparing, the taptic engine sacrifices some power to get the right responsiveness and coincidentally lands us on the desired power.
But predicting the future isn't always practical and I've resisted creating asymmetrical dart APIs for Apple hardware, but we can do it.

Actually I tested it a bit. You might have to show me at some point.
I tried both UIImpactFeedbackGenerator.UIImpactFeedbackStyleLight and UISelectionFeedbackGenerator. UISelectionFeedbackGenerator is too weak compared to native and UIImpactFeedbackStyleLight seems just right on an iPhone X iOS 12.2. I wonder if we're doing something different.

It definitely feels heavier than native when using CupertinoSwitch and a switch from settings

code sample
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      theme: ThemeData.dark(),
      home: Home(),
    );
  }
}

class Home extends StatefulWidget {
  @override
  _HomeState createState() => _HomeState();
}

class _HomeState extends State<Home> {
  bool _lights = false;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Material App Bar'),
      ),
      body: Center(
        child: MergeSemantics(
          child: ListTile(
            title: Text('Lights'),
            trailing: CupertinoSwitch(
              value: _lights,
              onChanged: (bool value) {
                setState(() {
                  _lights = value;
                });
              },
            ),
            onTap: () {
              setState(() {
                _lights = !_lights;
              });
            },
          ),
        ),
      ),
      floatingActionButton: FloatingActionButton(
        child: Icon(Icons.add),
        onPressed: () {},
      ),
    );
  }
}

flutter doctor -v
[✓] Flutter (Channel master, 1.22.0-10.0.pre.137, on Mac OS X 10.15.6 19G2021,
    locale en-GB)
    • Flutter version 1.22.0-10.0.pre.137 at
      /Users/tahatesser/Code/flutter_master
    • Framework revision 37e2013774 (4 hours ago), 2020-09-11 04:05:02 -0400
    • Engine revision bdaac368f8
    • Dart version 2.10.0 (build 2.10.0-115.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/tahatesser/Code/sdk
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = /Users/tahatesser/Code/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.7)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.7, Build version 11E801a
    • CocoaPods version 1.9.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 49.0.2
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.49.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.14.1

[✓] Connected device (3 available)
    • macOS (desktop)  • macos      • darwin-x64     • Mac OS X 10.15.6 19G2021
    • Web Server (web) • web-server • web-javascript • Flutter Tools
    • Chrome (web)     • chrome     • web-javascript • Google Chrome 85.0.4183.102

• No issues found!

Hi, we have tried multiple devices and we can't see the difference anymore between Flutter app (built with sample code at https://github.com/flutter/flutter/issues/30510#issuecomment-691119767) and iPhone Settings app on the latest Flutter stable and master channels.
Verified devices:

iPhone 7 iOS 15.7
iPhone XR
iPhone XS (iOS 16.0)

flutter doctor -v (stable and master)
[✓] Flutter (Channel stable, 3.3.9, on macOS 13.0 22A380 darwin-x64, locale en-VN)
    • Flutter version 3.3.9 on channel stable at /Users/huynq/Documents/GitHub/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b8f7f1f986 (31 hours ago), 2022-11-23 06:43:51 +0900
    • Engine revision 8f2221fbef
    • Dart version 2.18.5
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-33, build-tools 31.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14A400
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
    • 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.13+0-b1751.21-8125866)

[✓] IntelliJ IDEA Community Edition (version 2022.2.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 70.0.5
    • Dart plugin version 222.4167.21

[✓] IntelliJ IDEA Community Edition (version 2022.1.1)
    • IntelliJ at /Users/huynq/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/221.5591.52/IntelliJ IDEA CE.app
    • 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.73.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.52.0

[✓] Connected device (3 available)
    • SM T225 (mobile) • R9JT3004VRJ • android-arm64  • Android 12 (API 31)
    • macOS (desktop)  • macos       • darwin-x64     • macOS 13.0 22A380 darwin-x64
    • Chrome (web)     • chrome      • web-javascript • Google Chrome 107.0.5304.110

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

[!] Flutter (Channel master, 3.6.0-7.0.pre.52, on macOS 13.0 22A380 darwin-x64, locale en-VN)
    • Flutter version 3.6.0-7.0.pre.52 on channel master at /Users/huynq/Documents/GitHub/flutter_master
    ! Warning: `flutter` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ff59250dbe (4 hours ago), 2022-11-24 18:08:30 -0500
    • Engine revision 7665ae5184
    • Dart version 2.19.0 (build 2.19.0-429.0.dev)
    • DevTools version 2.19.0
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-33, build-tools 31.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14A400
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
    • 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.13+0-b1751.21-8125866)

[✓] IntelliJ IDEA Community Edition (version 2022.2.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 70.0.5
    • Dart plugin version 222.4167.21

[✓] IntelliJ IDEA Community Edition (version 2022.1.1)
    • IntelliJ at /Users/huynq/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/221.5591.52/IntelliJ IDEA CE.app
    • 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.73.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.52.0

[✓] Connected device (3 available)
    • Pixel 3a (mobile) • 964AY0WL20 • android-arm64  • Android 12 (API 32)
    • macOS (desktop)   • macos      • darwin-x64     • macOS 13.0 22A380 darwin-x64
    • Chrome (web)      • chrome     • web-javascript • Google Chrome 107.0.5304.110

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

So we will close the issue as can not reproduce it now. If you or anyone still has this issue, please write a comment and we will open it right away. Thanks!

authors: TahaTesser huycozy timsneath xster


text:
Text is not selectable by default on the web

Describe the bug
Text cannot be selected for copying. This affects all text elements other than text fields.
To Reproduce

Run the /examples/gallery app
Navigate to http://localhost:8080/#/material/text
Attempt to highlight and select text.

Expected behavior
Text should be selectable and can be copied to the clipboard.
Screenshots

Desktop (please complete the following information):

OS: mac
Browser chrome 72.0.3626.121, safari 12.0.3
Dart Version 2.2.1
Flutter Web commit SHA f2006dd26c71fe7e9e7e144abbd3add40b4915f9

See also #5422 - would the framework fix in progress for this be a fix for web?  Or is the expectation in web that all text be selectable?

the expectation in web is strongly that all text is selectable, unless the property user-select: none;  has been set

Any update here? We have 7 months since the last post, just an update can help us.

@yjbanov @mdebbar - is this something that should behave differently for web?  This has a fix on the framework side but there Text is not selectable by default.
/cc @ferhatb

@dnfield @lubritto In Flutter, text isn't selectable by default. Try using SelectableText to enable selection of text. Please let us know if you face any issues.

Hi Dan, are you suggesting adding an api (maybe theme level) that will allow changing the default ?I'm fine with the consistency (default off everywhere). I think web's default makes sense on content heavy sites/docs rather than apps.

@dnfield @lubritto In Flutter, text isn't selectable by default. Try using SelectableText to enable selection of text. Please let us know if you face any issues.

With respect @mdebbar, this answer isn't satisfactory.  SelectableText doesn't behave as expected in a Web context.  Users expect to be able to use ctrl+c or right click on the selected text with their mouse and see "copy" in the context menu.  None of this appears to be the case with SelectableText, at least on the beta channel.

No way to copy text using SelectableText on dev channel. As for me the issue should be reopened. Web without ability to select/copy is... not what I expect from the web :)

@azol that sounds like a seperate issue - please file one for that (SelectableText can't be copied on web).

@azol @prujohn the issue you are describing is valid, and I can confirm that it isn't fixed on web. Like @dnfield said, it's a separate issue from the closed one.
I created a separate issue for the inability to copy selected text: https://github.com/flutter/flutter/issues/47234

Inadvertent content and web scraping protection is the best :D
Only copyright infringers and criminals need to copy text! /s

I understand and respect why keeping behavior consistent with other parts of flutter is desirable, but I also think there might be a better compromise to be struck here -
If you go to twitter.com, nytimes.com, github.com, etc, 95+% of text is selectable.
Breaking this assumption will cause some negative emotional reactions towards flutter web apps from users and developers, and that it's worth reconsidering the intended behavior here. Text behavior is a common smell test for "is this a native web experience"?
Even if this behavior stands for the time being, do you think another solution, such as using the Theme to store whether text is selectable by default, could be considered in the future?

@dnfield @lubritto In Flutter, text isn't selectable by default. Try using SelectableText to enable selection of text. Please let us know if you face any issues.

SelectableText does not help, because it makes the text selectable only within one widget.
Web users expect the text to be selectable across many elements, for example, i selected and copied this text from the previous post:

Nash0x7E2 mentioned this issue on Jan 18
Copy support on web #49117
Closed
7 of 11 tasks complete

Any updates on this?

authors: MaxBittker TheChileanKink azol dnfield ferhatb lubritto martinrybak mdebbar polina-c prujohn searchy2


text:
App gets stuck or never reloads when Table has >6 children

When there are more than 6 children in Table widget the app gets stuck and never reloads (Need to stop the app in IDE) . The issue is faced in following phones Mi A1, Mi A2, Lenovo Vibe k4, etc. It works fine in POCO F1 (Haven't tried it with more devices).
If I try with the release apk using 'flutter build apk', the installed app gets stuck when opened and should be closed forcefully.
Everything works fine if there are less than 6 children. The issue is seen only in the above devices for now but is significant to look at as the app gets stuck and has to be closed.
Steps to Reproduce

Build the apk in above-mentioned phones
Hot reload
I have included the link to the gist below.
https://gist.github.com/melwinlobo18/52edc2c842e75df7aa0a1b2bf9d3a5a1

Logs
Analyzing timetable_app...
No issues found! (ran in 2.0s)

[✓] Flutter (Channel stable, v1.7.8+hotfix.3, on Linux, locale en_US.UTF-8)
    • Flutter version 1.7.8+hotfix.3 at /home/melwin/development/flutter
    • Framework revision b712a172f9 (5 weeks ago), 2019-07-09 13:14:38 -0700
    • Engine revision 54ad777fd2
    • Dart version 2.4.0

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /home/melwin/Android/Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 28.0.3
    • Java binary at: /home/melwin/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[✓] Android Studio (version 3.3)
    • Android Studio at /home/melwin/android-studio
    • Flutter plugin version 34.0.1
    • Dart plugin version 182.5215
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[✓] VS Code (version 1.35.0)
    • VS Code at /usr/share/code
    • Flutter extension version 3.2.0

[✓] Connected device (1 available)
    • Lenovo A7010a48 • U4UWZSFQU8CY9SRC • android-arm64 • Android 6.0 (API 23)

• No issues found!

This should be fixed by https://github.com/flutter/flutter/commit/1b57006c82493a6609481dda507128202f466412

Thanks a lot. It works fine now.


text:
iOS compilation error: Assets.xcassets distill failed for unknown reasons

Hi guys i don't know if this issue as a result of Xcode 11? i am currently facing this same issue on
https://github.com/flutter/flutter/issues/40031
And also i have updated my Xcode several times from app store
and i also have a blank screen on my ios simulator
Mac OS Catalina

FLUTTER DOCTOR
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.9.1+hotfix.2, on Mac OS X 10.15 19A487m, locale en-GB)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.1)
[✓] Android Studio (version 3.5)
[✓] Connected device (1 available)

• No issues found!

FLUTTER DOCTOR --VERBOSE
[✓] Flutter (Channel stable, v1.9.1+hotfix.2, on Mac OS X 10.15 19A487m, locale en-GB)
    • Flutter version 1.9.1+hotfix.2 at /Users/bappstack/flutter
    • Framework revision 2d2a1ffec9 (5 weeks ago), 2019-09-06 18:39:49 -0700
    • Engine revision b863200c37
    • Dart version 2.5.0

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/bappstack/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.1, Build version 11A1027
    • CocoaPods version 1.8.3

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 40.1.2
    • Dart plugin version 191.8423
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] Connected device (1 available)
    • iPhone 11 Pro Max • E0287B30-CC7A-45A2-9CB6-F902E34DF5D5 • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-1 (simulator)

• No issues found!

ERROR
Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
Running Xcode build...
Xcode build done.                                           23.0s
Failed to build iOS app
Error output from Xcode build:
↳
    2019-10-11 07:02 xcodebuild[1328] (FSEvents.framework) fsevent_realpath: err(2): [No such file or directory]

    ** BUILD FAILED **

Xcode's output:
↳
    2019-10-11 07:02:35.324 ibtoold[1444:147805] DEBUG: Added to environment: {
        TMPDIR = "/var/folders/4d/526ywq0j4zs8bqrvvb46p03r0000gn/T/CA9BF82B-7CDC-4777-BCF6-68698AD0F237";
    }
    2019-10-11 07:02:36.859 IBCocoaTouchImageCatalogTool[1447:147962] Unable to get image dimensions for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
    2019-10-11 07:02:36.867 IBCocoaTouchImageCatalogTool[1447:147962] Unable to get image dimensions for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
    2019-10-11 07:02:36.868 IBCocoaTouchImageCatalogTool[1447:147962] Unable to get image dimensions for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
    2019-10-11 07:02:36.869 IBCocoaTouchImageCatalogTool[1447:147962] Unable to get image dimensions for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
    2019-10-11 07:02:36.869 IBCocoaTouchImageCatalogTool[1447:147962] Unable to get image dimensions for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
    2019-10-11 07:02:36.869 IBCocoaTouchImageCatalogTool[1447:147962] Unable to get image dimensions for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
    2019-10-11 07:02:36.870 IBCocoaTouchImageCatalogTool[1447:147962] Unable to get image dimensions for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
    2019-10-11 07:02:36.871 IBCocoaTouchImageCatalogTool[1447:147962] Unable to get image dimensions for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
    2019-10-11 07:02:36.871 IBCocoaTouchImageCatalogTool[1447:147962] Unable to get image dimensions for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
    2019-10-11 07:02:36.872 IBCocoaTouchImageCatalogTool[1447:147962] Unable to get image dimensions for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
    2019-10-11 07:02:36.873 IBCocoaTouchImageCatalogTool[1447:147962] Unable to get image dimensions for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
    2019-10-11 07:02:36.873 IBCocoaTouchImageCatalogTool[1447:147962] Unable to get image dimensions for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
    2019-10-11 07:02:36.874 IBCocoaTouchImageCatalogTool[1447:147962] Unable to get image dimensions for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
    2019-10-11 07:02:36.875 IBCocoaTouchImageCatalogTool[1447:147962] Unable to get image dimensions for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
    2019-10-11 07:02:36.875 IBCocoaTouchImageCatalogTool[1447:147962] Unable to get image dimensions for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
    2019-10-11 07:02:36.876 IBCocoaTouchImageCatalogTool[1447:147962] Unable to get image dimensions for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
    2019-10-11 07:02:36.877 IBCocoaTouchImageCatalogTool[1447:147962] Unable to get image dimensions for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
    2019-10-11 07:02:36.877 IBCocoaTouchImageCatalogTool[1447:147962] Unable to get image dimensions for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
    2019-10-11 07:02:36.878 IBCocoaTouchImageCatalogTool[1447:147962] Unable to get image dimensions for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
    2019-10-11 07:02:36.878 IBCocoaTouchImageCatalogTool[1447:147962] Unable to get image dimensions for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
    2019-10-11 07:02:36.879 IBCocoaTouchImageCatalogTool[1447:147962] Unable to get image dimensions for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
    2019-10-11 07:02:36.884 IBCocoaTouchImageCatalogTool[1447:147962] Unable to get image dimensions for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
    2019-10-11 07:02:36.885 IBCocoaTouchImageCatalogTool[1447:147962] Unable to get image dimensions for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
    2019-10-11 07:02:36.897 IBCocoaTouchImageCatalogTool[1447:147962] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
    2019-10-11 07:02:36.897 IBCocoaTouchImageCatalogTool[1447:147962] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
    2019-10-11 07:02:36.898 IBCocoaTouchImageCatalogTool[1447:147962] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
    2019-10-11 07:02:36.898 IBCocoaTouchImageCatalogTool[1447:147962] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
    2019-10-11 07:02:36.898 IBCocoaTouchImageCatalogTool[1447:147962] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
    2019-10-11 07:02:36.898 IBCocoaTouchImageCatalogTool[1447:147962] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
    2019-10-11 07:02:36.898 IBCocoaTouchImageCatalogTool[1447:147962] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
    2019-10-11 07:02:36.899 IBCocoaTouchImageCatalogTool[1447:147962] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
    2019-10-11 07:02:36.899 IBCocoaTouchImageCatalogTool[1447:147962] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
    2019-10-11 07:02:36.899 IBCocoaTouchImageCatalogTool[1447:147962] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
    2019-10-11 07:02:36.899 IBCocoaTouchImageCatalogTool[1447:147962] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
    2019-10-11 07:02:36.900 IBCocoaTouchImageCatalogTool[1447:147962] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
    2019-10-11 07:02:36.900 IBCocoaTouchImageCatalogTool[1447:147962] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
    2019-10-11 07:02:36.900 IBCocoaTouchImageCatalogTool[1447:147962] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
    2019-10-11 07:02:36.900 IBCocoaTouchImageCatalogTool[1447:147962] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
    2019-10-11 07:02:36.901 IBCocoaTouchImageCatalogTool[1447:147962] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
    2019-10-11 07:02:36.901 IBCocoaTouchImageCatalogTool[1447:147962] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
    2019-10-11 07:02:36.901 IBCocoaTouchImageCatalogTool[1447:147962] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
    2019-10-11 07:02:36.901 IBCocoaTouchImageCatalogTool[1447:147962] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
    2019-10-11 07:02:36.902 IBCocoaTouchImageCatalogTool[1447:147962] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
    2019-10-11 07:02:36.902 IBCocoaTouchImageCatalogTool[1447:147962] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
    2019-10-11 07:02:36.902 IBCocoaTouchImageCatalogTool[1447:147962] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
    2019-10-11 07:02:36.902 IBCocoaTouchImageCatalogTool[1447:147962] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
    2019-10-11 07:02:36.902 IBCocoaTouchImageCatalogTool[1447:147962] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
    2019-10-11 07:02:36.903 IBCocoaTouchImageCatalogTool[1447:147962] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
    2019-10-11 07:02:36.903 IBCocoaTouchImageCatalogTool[1447:147962] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
    2019-10-11 07:02:36.903 IBCocoaTouchImageCatalogTool[1447:147962] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
    2019-10-11 07:02:36.903 IBCocoaTouchImageCatalogTool[1447:147962] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
    2019-10-11 07:02:36.904 IBCocoaTouchImageCatalogTool[1447:147962] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
    2019-10-11 07:02:36.961 IBCocoaTouchImageCatalogTool[1447:148151] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
    2019-10-11 07:02:36.961 IBCocoaTouchImageCatalogTool[1447:148189] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
    2019-10-11 07:02:36.961 IBCocoaTouchImageCatalogTool[1447:148200] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
    2019-10-11 07:02:36.961 IBCocoaTouchImageCatalogTool[1447:148199] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
    2019-10-11 07:02:36.962 IBCocoaTouchImageCatalogTool[1447:148201] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
    2019-10-11 07:02:36.962 IBCocoaTouchImageCatalogTool[1447:148151] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
    2019-10-11 07:02:36.962 IBCocoaTouchImageCatalogTool[1447:148189] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
    2019-10-11 07:02:36.962 IBCocoaTouchImageCatalogTool[1447:148199] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
    2019-10-11 07:02:36.963 IBCocoaTouchImageCatalogTool[1447:148201] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
    2019-10-11 07:02:36.963 IBCocoaTouchImageCatalogTool[1447:148200] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
    2019-10-11 07:02:36.963 IBCocoaTouchImageCatalogTool[1447:148151] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
    2019-10-11 07:02:36.963 IBCocoaTouchImageCatalogTool[1447:148189] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
    2019-10-11 07:02:36.964 IBCocoaTouchImageCatalogTool[1447:148199] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
    2019-10-11 07:02:36.964 IBCocoaTouchImageCatalogTool[1447:148200] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
    2019-10-11 07:02:36.965 IBCocoaTouchImageCatalogTool[1447:148200] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
    2019-10-11 07:02:36.965 IBCocoaTouchImageCatalogTool[1447:148199] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
    2019-10-11 07:02:36.965 IBCocoaTouchImageCatalogTool[1447Could not build the application for the simulator.:148200] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
    2019-10-11 07:02:36.965 IBCocoaTouchImageCatalogTool[1447:148199] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png

    2019-10-11 07:02:36.966 IBCocoaTouchImageCatalogTool[1447:148200] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
    2019-10-11 07:02:36.966 IBCocoaTouchImageCatalogTool[1447:148201] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
    2019-10-11 07:02:36.967 IBCocoaTouchImageCatalogTool[1447:148189] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
    2019-10-11 07:02:36.967 IBCocoaTouchImageCatalogTool[1447:148201] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
    2019-10-11 07:02:36.967 IBCocoaTouchImageCatalogTool[1447:148189] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
Error launching application on iPhone 11 Pro Max.
    2019-10-11 07:02:36.968 IBCocoaTouchImageCatalogTool[1447:148201] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
    2019-10-11 07:02:36.968 IBCocoaTouchImageCatalogTool[1447:148189] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
    2019-10-11 07:02:36.968 IBCocoaTouchImageCatalogTool[1447:148151] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
    2019-10-11 07:02:36.969 IBCocoaTouchImageCatalogTool[1447:148151] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
    2019-10-11 07:02:36.969 IBCocoaTouchImageCatalogTool[1447:148199] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
    2019-10-11 07:02:36.969 IBCocoaTouchImageCatalogTool[1447:148151] CoreThemeDefinition: Unable to create image for file:///Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
    /* com.apple.actool.errors */
    /Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets: error: Distill failed for unknown reasons.
    /* com.apple.actool.compilation-results */
    /Users/bappstack/AndroidStudioProjects/payzeeros/build/ios/Debug-iphonesimulator/Runner.app/AppIcon20x20@2x.png
    /Users/bappstack/AndroidStudioProjects/payzeeros/build/ios/Debug-iphonesimulator/Runner.app/AppIcon20x20@3x.png
    /Users/bappstack/AndroidStudioProjects/payzeeros/build/ios/Debug-iphonesimulator/Runner.app/AppIcon29x29.png
    /Users/bappstack/AndroidStudioProjects/payzeeros/build/ios/Debug-iphonesimulator/Runner.app/AppIcon29x29@2x.png
    /Users/bappstack/AndroidStudioProjects/payzeeros/build/ios/Debug-iphonesimulator/Runner.app/AppIcon29x29@3x.png
    /Users/bappstack/AndroidStudioProjects/payzeeros/build/ios/Debug-iphonesimulator/Runner.app/AppIcon40x40@2x.png
    /Users/bappstack/AndroidStudioProjects/payzeeros/build/ios/Debug-iphonesimulator/Runner.app/AppIcon40x40@3x.png
    /Users/bappstack/AndroidStudioProjects/payzeeros/build/ios/Debug-iphonesimulator/Runner.app/AppIcon60x60@2x.png
    /Users/bappstack/AndroidStudioProjects/payzeeros/build/ios/Debug-iphonesimulator/Runner.app/AppIcon60x60@3x.png
    /Users/bappstack/AndroidStudioProjects/payzeeros/build/ios/Debug-iphonesimulator/Runner.app/AppIcon20x20~ipad.png
    /Users/bappstack/AndroidStudioProjects/payzeeros/build/ios/Debug-iphonesimulator/Runner.app/AppIcon20x20@2x~ipad.png
    /Users/bappstack/AndroidStudioProjects/payzeeros/build/ios/Debug-iphonesimulator/Runner.app/AppIcon29x29~ipad.png
    /Users/bappstack/AndroidStudioProjects/payzeeros/build/ios/Debug-iphonesimulator/Runner.app/AppIcon29x29@2x~ipad.png
    /Users/bappstack/AndroidStudioProjects/payzeeros/build/ios/Debug-iphonesimulator/Runner.app/AppIcon40x40~ipad.png
    /Users/bappstack/AndroidStudioProjects/payzeeros/build/ios/Debug-iphonesimulator/Runner.app/AppIcon40x40@2x~ipad.png
    /Users/bappstack/AndroidStudioProjects/payzeeros/build/ios/Debug-iphonesimulator/Runner.app/AppIcon76x76~ipad.png
    /Users/bappstack/AndroidStudioProjects/payzeeros/build/ios/Debug-iphonesimulator/Runner.app/AppIcon76x76@2x~ipad.png
    /Users/bappstack/AndroidStudioProjects/payzeeros/build/ios/Debug-iphonesimulator/Runner.app/AppIcon83.5x83.5@2x~ipad.png
    /Users/bappstack/AndroidStudioProjects/payzeeros/build/ios/Debug-iphonesimulator/Runner.app/Assets.car
    /Users/bappstack/Library/Developer/Xcode/DerivedData/Runner-gznzxlqdjfkayldskzkgguyizpwb/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/assetcatalog_generated_info.plist

    note: Using new build systemnote: Planning buildnote: Constructing build description

/Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets: error: Distill failed for unknown reasons.

Did you alter your Assets.xcassets in the Xcode project (images, etc)?
https://stackoverflow.com/questions/20580968/xcode-error-distill-failed-for-unknown-reasons

I've got the same issue with macOS Catalina. I was able to work around the issue by using macOS 10.14.6, still with Xcode 11. Took me a lot of time to find out though.

I also have this issue, Xcode 11.

/Users/bappstack/AndroidStudioProjects/payzeeros/ios/Runner/Assets.xcassets: error: Distill failed for unknown reasons.

Did you alter your Assets.xcassets in the Xcode project (images, etc)?
https://stackoverflow.com/questions/20580968/xcode-error-distill-failed-for-unknown-reasons

@tbrabec @lwerner-lshigh I'll reopen if I can get an answer to this question from anyone reproducing this, or an example project demonstrating the issue.

Got the same problem here but even with an ios only xcode project, same issue. Appeared the first time when using Flutter with xcode.

XCode and Console build still fail on ios. Wanted to test out the application in ios setting and this breaks the build (only 2 assets: AppIcon and LaunchImage, there since the start).

Temporary Solution: use XCode 10.3 and related build tools / simulators, XCode 11.3 is not yet supported by Flutter apparently.

@AtomicNicos Xcode 11.0 is the minimum version supported by Flutter.  Are you seeing an issue with Xcode 11.3?

Yes, which is why I downgraded to 10.3, as that seemed to work. I wasn't doing flutter run from a terminal, just a standard build and launch in simulator straight from XCode. Tried cleaning project etc. to no avail.

Running on branch master if that's of any help.

We need a reproduction case to investigate.

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.

authors: AtomicNicos jmagman lwerner-lshigh mtellect nfodor tbrabec