text:
Horizontal scroll not locked when scrolling vertically using two finger gesture on touchpad

Steps to reproduce

Enable two-fingers scroll gesture
Run the code sample
Scroll slowly by this gesture, vertically, with the fingers a little bit crossy to the right

Expected results
Horizontal scroll shall not trigger when a two-finger scroll gesture is mainly in vertical direction.
Actual results
Our app in released as Flutter Web and it is in beta testing stage. Users cannot scroll properly on their PC. Tested on Thinkpad (Linux and Windows) and Mac. The gesture is catched both from vertical and horizontal scroll, even if the gesture is mainly (some natural-human-degrees on touchpad) vertical.
On MacBook this behavior is too disabling for UX.
Code sample
Code sample
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: ListView.builder(
          itemBuilder: (context, index) => Container(
            height: 210,
            child: ListView.builder(
              scrollDirection: Axis.horizontal,
              itemBuilder: (context, index) => Box(),
            ),
          ),
        ),
      ),
    );
  }
}

class Box extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
        height: 200,
        width: 200,
        padding: EdgeInsets.all(10),
        child: Container(
          color: Colors.grey,
        ));
  }
}

Screenshots or Video

Screenshots / Video demonstration
https://github.com/user-attachments/assets/ab5d2828-5f6f-412f-8ba8-8573fbaffdde
I'm just scroll vertically by the gesture, but that's the behavior

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
> flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.3, on Linux Mint 20.3 5.4.0-189-generic, locale it_IT.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2023.3)
[✓] VS Code (version 1.91.1)
[✓] Connected device (2 available)
[✓] Network resources

This issue https://github.com/flutter/flutter/issues/70046 seems the same, but it is still present.

Thanks for the report. I was able to replicate the reported behavior running on mac machine. It seems the horizontal scroll not getting locked is more visible / noticeable on web than on desktop.

 stable, master flutter doctor -v
[!] Flutter (Channel stable, 3.22.2, on macOS 12.2.1 21D62 darwin-x64, locale
    en-GB)
    • Flutter version 3.22.2 on channel stable at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 761747bfc5 (33 hours ago), 2024-06-05 22:15:13 +0200
    • Engine revision edd8546116
    • Dart version 3.4.3
    • DevTools version 2.34.3
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

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

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

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

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

! Doctor found issues in 1 category.

[!] Flutter (Channel master, 3.24.0-1.0.pre.197, on macOS 12.2.1 21D62
    darwin-x64, locale en-GB)
    • Flutter version 3.24.0-1.0.pre.197 on channel master at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 0bac2be379 (76 minutes ago), 2024-07-19 00:15:26 -0400
    • Engine revision ea1e53a4e8
    • Dart version 3.6.0 (build 3.6.0-55.0.dev)
    • DevTools version 2.37.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.

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/dhs/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for
      more details.

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

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

[✓] IntelliJ IDEA Ultimate Edition (version 2021.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 65.1.4
    • Dart plugin version 213.7228

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

[✓] Connected device (3 available)
    • Darshan's iphone (mobile) • 21150b119064aecc249dfcfe05e259197461ce23 • ios
      • iOS 15.3.1 19D52
    • macOS (desktop)           • macos                                    •
      darwin-x64     • macOS 12.2.1 21D62 darwin-x64
    • Chrome (web)              • chrome                                   •
      web-javascript • Google Chrome 109.0.5414.119

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

! Doctor found issues in 1 category.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

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

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

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

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

! Doctor found issues in 1 category.

duplicate of https://github.com/flutter/flutter/issues/143276
I put an idea to fix it here, but dont plan to do it
https://github.com/flutter/flutter/pull/143658#issuecomment-1950592885

Closing as duplicate.


text:
mac-29 lost external connection phone device.

Type of Request
bug
Infrastructure Environment
LUCI, Github, Cocoon scheduler, Autosubmit, etc...
What is happening?
mac-29 lost external connection phone device.

Steps to reproduce
Step 1:
Step 2:
..
Step n:
Expected results
I expect to see X when Y is finished.

Rebooting machine to restore connection.

source: gharchive/issue

repo: flutter/flutter

license_type: permissive

license_source: github-api


text:
[tool_crash] FileSystemException: Creation of temporary directory failed, OS Error: Access is denied., errno = 5

Command
flutter run

Steps to Reproduce

...
...
...

Logs
FileSystemException: Creation of temporary directory failed, OS Error: Access is denied.
, errno = 5
#0      _Directory.createTempSync (dart:io/directory_impl.dart:170:7)
#1      ForwardingDirectory.createTempSync (package:file/src/forwarding/forwarding_directory.dart:28:21)
#2      LocalFileSystem.systemTempDirectory (package:flutter_tools/src/base/file_system.dart:236:46)
#3      ForwardingFileSystem.systemTempDirectory (package:file/src/forwarding/forwarding_file_system.dart:33:49)
#4      new ResidentRunner (package:flutter_tools/src/resident_runner.dart:1110:24)
#5      new HotRunner (package:flutter_tools/src/run_hot.dart:104:9)
#6      RunCommand.createRunner (package:flutter_tools/src/commands/run.dart:659:14)
<asynchronous suspension>
#7      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:798:35)
<asynchronous suspension>
#8      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1394:27)
<asynchronous suspension>
#9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#10     CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#11     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:372:9)
<asynchronous suspension>
#12     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#13     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:308:5)
<asynchronous suspension>
#14     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:130:9)
<asynchronous suspension>
#15     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)

[✓] Flutter (Channel stable, 3.22.2, on Microsoft Windows [Version 10.0.19045.4842], locale en-US)
    • Flutter version 3.22.2 on channel stable at D:\Users\ogola\FlutterApps\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 761747bfc5 (3 months ago), 2024-06-05 22:15:13 +0200
    • Engine revision edd8546116
    • Dart version 3.4.3
    • DevTools version 2.34.3

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

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Users\capta\AppData\Local\Android\sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

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

[✓] Visual Studio - develop Windows apps (Visual Studio Build Tools 2022 17.8.0)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools
    • Visual Studio Build Tools 2022 version 17.8.34309.116
    • Windows 10 SDK version 10.0.22621.0

[✓] Android Studio (version 2022.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • 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 17.0.6+0-b2043.56-10027231)

[✓] Android Studio (version 2023.3)
    • Android Studio at C:\Program Files\Android\Android Studio1
    • 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 17.0.10+0--11572160)

[✓] VS Code, 64-bit edition (version 1.85.1)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.94.0

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

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

! Doctor found issues in 1 category.

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: 761747bfc538b5af34aa0d3fac380f1bc331ec49
Plugins
path_provider-2.1.4
path_provider_android-2.2.10
path_provider_foundation-2.4.0
path_provider_linux-2.2.1
path_provider_windows-2.3.0
url_launcher-6.3.0
url_launcher_android-6.3.9
url_launcher_ios-6.3.1
url_launcher_linux-3.2.0
url_launcher_macos-3.2.0
url_launcher_web-2.3.3
url_launcher_windows-3.1.2

Hi @ogolaSospeter,
Do you get this error every time consistently upon running flutter run ?
Can you check if temporary directory is read only instead of writeable ? If so, try making it writeable and re-run to check if it resolves the crash or not.

authors: danagbemava-nc ogolaSospeter


text:
Need a way to specify an appBar "detail view" whose size is based on the screen's width

The figure on the right side of the "Detail View" section of
https://www.google.com/design/spec/layout/metrics-keylines.html#metrics-keylines-keylines-spacing says that the size of the area below the toolbar/statusbar should have an aspect ratio of 3:2.  The current API really needs a fixed appBar height.
See https://github.com/flutter/flutter/pull/1540

We should update the gallery to do this right. It should be relatively easy to do with a MediaQuery.of call.

Hello you awesome people!
I just created a Let's Flutter Berlin group on Facebook to bring flutter developers in Berlin together to discuss problems, share ideas and create beautiful things together. If you live in Berlin, it would be awesome if you could join the group 😊! If you don't live in Berlin, feel free to join too! Im grateful for each and every supporter.
Let's Flutter Berlin: https://www.facebook.com/groups/276520973054067/about/
Sorry for spamming.

Is this issue still relevant? I see that the code has changed greatly since this issue was created.

I'm closing this per https://github.com/flutter/flutter/issues/1552#issuecomment-678245947.  Thanks @fourman-alex!

authors: HansMuller Hixie esarbanis khalithartmann


text:
Issue from website page Write Your First Flutter App

From URL: https://flutter.io/get-started/codelab/
I was following the tutorial from this url, and the code from this specific page is outdated. When reaching Step 6: Navigate to a new screen, both Android and iOS apps error'd out with a 'package:flutter/src/widgets/navigator.dart': Failed assertion: line xxxx: '!_debugLocked': is not true. I found the Google Codelabs version of this tutorial, and it works. (A major difference was the final constants' types are specified in the Google Codelabs version, when they are not specified in the flutter.io version.) I'm assuming this has to do with changes in Flutter.
Suggested solution: Link this doc directly to Google Codelabs: Write Your First App, Part 1 and Google Codelabs: Write Your First App, Part 2.

Yes, this was outdated. Fixed in PR https://github.com/flutter/website/pull/1124.

authors: Sfshaza vphong


text:
TabBarView nested problem

https://github.com/flutter/flutter/issues/17718
I find another problem,I have three tab in outer TabBarView, my inner TabBarView is in the second tab, If I selected third tab ,then select the first tab, the second tab was recreate! It doesn't keep alive, I have choose inner TabBarView's third tab, but it now shows first tab!

You can try to use AutomaticKeepAliveClientMixin or browse the flutter of the sample

It would help if you could provide a small (smallish) self contained app that demonstrated the problem you've run into.

import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State with SingleTickerProviderStateMixin {
var tabController;
@override
void initState() {
super.initState();
tabController = TabController(length: 3,vsync: this);

}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: CustomAppBar(),
body: TabBarView(children: [
First(),
Second(),
Third(),
],
controller: tabController,physics: NeverScrollableScrollPhysics()),
bottomNavigationBar: TabBar(tabs: [
Text('first',style: TextStyle(fontSize: 25,color: Colors.black),),
Text('second',style: TextStyle(fontSize: 25,color: Colors.black),),
Text('third',style: TextStyle(fontSize: 25,color: Colors.black),),
],
controller: tabController,),
),
);
}
}
class First extends StatefulWidget {
@override
FirstState createState() => FirstState();
}
class FirstState extends State {
@override
void initState() {
super.initState();
print('first init');
}
@override
void dispose() {
print('first dispose');
super.dispose();
}
@override
Widget build(BuildContext context) {
return Container();
}
}
class Third extends StatefulWidget {
@override
_ThirdState createState() => _ThirdState();
}
class _ThirdState extends State {
@override
void initState() {
super.initState();
print('third init');
}
@override
void dispose() {
print('third dispose');
super.dispose();
}
@override
Widget build(BuildContext context) {
return Container();
}
}
class Second extends StatefulWidget {
@override
_SecondState createState() => _SecondState();
}
class _SecondState extends State with SingleTickerProviderStateMixin, AutomaticKeepAliveClientMixin {
@override
bool get wantKeepAlive => true;
var innerTabController;
GlobalKey<_SecondState> key = GlobalKey<_SecondState>();
@override
void initState() {
super.initState();
print('second initState');
innerTabController = TabController(length: 3,vsync: this,);
}
@override
void dispose() {
print('second dispose');
super.dispose();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: CustomAppBar(),
body: TabBarView(children: [
Container(color: Colors.red,),
Container(color: Colors.yellow,),
Container(color: Colors.blue,),
],
controller: innerTabController,physics: NeverScrollableScrollPhysics(),key: key,),
  bottomNavigationBar: TabBar(tabs: [
    Text('A',style: TextStyle(fontSize: 25,color: Colors.black),),
    Text('B',style: TextStyle(fontSize: 25,color: Colors.black),),
    Text('C',style: TextStyle(fontSize: 25,color: Colors.black),),
  ],
    controller: innerTabController,),
);

}
}
class CustomAppBar extends StatefulWidget implements PreferredSizeWidget {
@override
_CustomAppBarState createState() => _CustomAppBarState();
@override
Size get preferredSize => Size.fromHeight(kToolbarHeight);
}
class _CustomAppBarState extends State {
@override
Widget build(BuildContext context) {
return Container(
color: Colors.yellow,
child: SizedBox(
height: 0,
),
);
}
}

the simple app code is above there. I switch in 'first'/'second' tab or 'second'/'third' tab, second tab keeps alive, but if I switch 'first'/'third' tab, the second page always 'init'(I choose in tab c, it shows tab a), the initState method invoked.

It would help if you could provide a small (smallish) self contained app that demonstrated the problem you've run into.

I don't know how to deal with "waiting for customer response", but comment below the replay.

authors: HansMuller MrReN YWD


text:
connectivity plugin - android build deprecation warning

After adding the connectivity plugin to a new flutter application (Stable Channel, migrated to androidX) a deprecation warning is present when running a build (Android only).
The warning presented:

Note: /Users/dwulff/.pub-cache/hosted/pub.dartlang.org/connectivity-0.4.2/android/src/main/java/io/flutter/plugins/connectivity/ConnectivityPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

May be related to #27443
Steps to Reproduce
option 1)

clone https://github.com/danwulff/flutter_connectivity_deprecation.git
run flutter run

option 2)
(using stable channel, v1.2.1)

run flutter create ___
migrate to AndroidX using Android Studio
add connectivity: 0.4.2 to pubspec.yaml
run flutter run in a terminal

Logs
flutter run
$ flutter run
Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with
"--enable-software-rendering".
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...                                              0.7s
Resolving dependencies...                                           1.2s
Note: /Users/dwulff/.pub-cache/hosted/pub.dartlang.org/connectivity-0.4.2/android/src/main/java/io/flutter/plugins/connectivity/ConnectivityPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done                        11.7s
Built build/app/outputs/apk/debug/app-debug.apk.
Installing build/app/outputs/apk/app.apk...                         1.2s
D/EGL_emulation(12915): eglMakeCurrent: 0xec4853c0: ver 3 0 (tinfo 0xec4833c0)
D/        (12915): HostConnection::get() New Host Connection established 0xec4a0540, tid 12937
D/EGL_emulation(12915): eglMakeCurrent: 0xec0f5740: ver 3 0 (tinfo 0xec4832a0)
Syncing files to device Android SDK built for x86...             1,644ms

🔥  To hot reload changes while running, press "r". To hot restart (and rebuild state), press "R".
An Observatory debugger and profiler on Android SDK built for x86 is available at: http://127.0.0.1:56375/
For a more detailed help message, press "h". To detach, press "d"; to quit, press "q".

flutter doctor -v
[✓] Flutter (Channel stable, v1.2.1, on Mac OS X 10.14.3 18D109, locale en-US)
    • Flutter version 1.2.1 at /Users/dwulff/development/flutter
    • Framework revision 8661d8aecd (5 weeks ago), 2019-02-14 19:19:53 -0800
    • Engine revision 3757390fa4
    • Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/dwulff/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = /Users/dwulff/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 1.9.4
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 33.3.1
    • Dart plugin version 182.5215
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

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

[✓] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)

• No issues found!

After adding the connectivity plugin to a new flutter application (Stable Channel, migrated to androidX) a deprecation warning is present when running a build (Android only).
The warning presented:

Note: /Users/dwulff/.pub-cache/hosted/pub.dartlang.org/connectivity-0.4.2/android/src/main/java/io/flutter/plugins/connectivity/ConnectivityPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

May be related to #27443
Steps to Reproduce
option 1)

clone https://github.com/danwulff/flutter_connectivity_deprecation.git
run flutter run

option 2)
(using stable channel, v1.2.1)

run flutter create ___
migrate to AndroidX using Android Studio
add connectivity: 0.4.2 to pubspec.yaml
run flutter run in a terminal

Logs
flutter run
$ flutter run
Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with
"--enable-software-rendering".
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...                                              0.7s
Resolving dependencies...                                           1.2s
Note: /Users/dwulff/.pub-cache/hosted/pub.dartlang.org/connectivity-0.4.2/android/src/main/java/io/flutter/plugins/connectivity/ConnectivityPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done                        11.7s
Built build/app/outputs/apk/debug/app-debug.apk.
Installing build/app/outputs/apk/app.apk...                         1.2s
D/EGL_emulation(12915): eglMakeCurrent: 0xec4853c0: ver 3 0 (tinfo 0xec4833c0)
D/        (12915): HostConnection::get() New Host Connection established 0xec4a0540, tid 12937
D/EGL_emulation(12915): eglMakeCurrent: 0xec0f5740: ver 3 0 (tinfo 0xec4832a0)
Syncing files to device Android SDK built for x86...             1,644ms

🔥  To hot reload changes while running, press "r". To hot restart (and rebuild state), press "R".
An Observatory debugger and profiler on Android SDK built for x86 is available at: http://127.0.0.1:56375/
For a more detailed help message, press "h". To detach, press "d"; to quit, press "q".

flutter doctor -v
[✓] Flutter (Channel stable, v1.2.1, on Mac OS X 10.14.3 18D109, locale en-US)
    • Flutter version 1.2.1 at /Users/dwulff/development/flutter
    • Framework revision 8661d8aecd (5 weeks ago), 2019-02-14 19:19:53 -0800
    • Engine revision 3757390fa4
    • Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/dwulff/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = /Users/dwulff/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 1.9.4
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 33.3.1
    • Dart plugin version 182.5215
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

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

[✓] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)

• No issues found!

It looks like this is likely due to the deprecated functionality of the Android ConnectivityManager:
https://developer.android.com/reference/android/net/ConnectivityManager#TYPE_WIFI

As seen within the getNetworkType private method: https://github.com/flutter/plugins/blob/a822896c69cd0135aa7267aba6d825e9f4507fd3/packages/connectivity/android/src/main/java/io/flutter/plugins/connectivity/ConnectivityPlugin.java#L61

When will this get fixed. I finished my app but getting same error when I run Flutter build apk.

.....
flutter/.pub-cache/hosted/pub.dartlang.org/connectivity-0.4.2+1/android/src/main/java/io/flutter/plugins/conBUİLD FAILED in 3m 43s                                                                                Running Gradle task 'assembleRelease'...                                                                                Running Gradle task 'assembleRelease'... Done                     224,5s (!)                                                                                Gradle task assembleRelease failed with exit code 1

I have created a pr to fix this issue in flutter/plugins PR

But it is still getting such warning and doesn't install on android 9.0+
warning: [options] source value 7 is obsolete and will be removed in a future release
warning: [options] target value 7 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
Note: flutter/.pub-cache/hosted/pub.dartlang.org/connectivity-0.4.3+6/android/src/main/java/io/flutter/plugins/connectivity/ConnectivityPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 warnings
warning: [options] source value 7 is obsolete and will be removed in a future release
warning: [options] target value 7 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
3 warnings
warning: [options] source value 7 is obsolete and will be removed in a future release
warning: [options] target value 7 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 warnings
warning: [options] source value 7 is obsolete and will be removed in a future release
warning: [options] target value 7 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 warnings
warning: [options] source value 7 is obsolete and will be removed in a future release
warning: [options] target value 7 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
3 warnings
warning: [options] source value 7 is obsolete and will be removed in a future release
warning: [options] target value 7 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
3 warnings
warning: [options] source value 7 is obsolete and will be removed in a future release
warning: [options] target value 7 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
3 warnings
warning: [options] source value 7 is obsolete and will be removed in a future release
warning: [options] target value 7 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
3 warnings
warning: [options] source value 7 is obsolete and will be removed in a future release
warning: [options] target value 7 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
3 warnings
warning: [options] source value 7 is obsolete and will be removed in a future release
warning: [options] target value 7 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 warnings

and when i install on android 9.0+ , It freeze up on Installing build/app/outputs/apk/app.apk...

Okay, so it worked for me because I didn't do flutter clean and then build.
First issue is: after flutter clean, flutter build will fail showing deprecation error
Second issue that you are getting with installation, I can't repro on my system and with physical device

Can anyone help me on this, Why even after supresswarnings and new api code, we are getting this issue?

Okay, I found the deprecated code.
Line 58 of ConnectivityPlugin.java is creating this issue.
 registrar
        .context()
        .registerReceiver(receiver, new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION));

We will need to create two event receivers for both platforms

When will it be fixed?

@edex96  I have no idea, I want to help but I don't have the time to research and fix it. A little help from community will be appreciated. Thank You.

Can somebody look into this? I bet a whole lot of flutter apps are relying on this package since it's the only one I can find

@cyanglaz  It isn't fixed yet. My pr only fixed a part of it. We need to re write the event handlers as well, then only it will be fully fixed

i still having this issue on the latest version:
connectivity-0.4.4/android/src/main/java/io/flutter/plugins/connectivity/ConnectivityPlugin.java uses or overrides a deprecated API.

It seems most people have figured out another way to implement connectivity checking.
So they won't come across this thread because nobody searches about a problem which they don't use.

It seems most people have figured out another way to implement connectivity checking.
So they won't come across this thread because nobody searches about a problem which they don't use.

Well it isn't my case, I still use this very handy plugin, it work very well for now, apart from the deprecation warning.

It seems most people have figured out another way to implement connectivity checking.
So they won't come across this thread because nobody searches about a problem which they don't use.

It isn't my case either. We are using this in our app and we have parked the feature related to this. Many people need it.

I use the plugin too, and I'm facing the same problem.

same problems here
Note: ...connectivity-0.4.4\android\src\main\java\io\flutter\plugins\connectivity\ConnectivityPlugin.java uses or overrides a deprecated API.

As a first party plugin ... yes we need it.

Same here:
Note: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\connectivity-0.4.4\android\src\main\java\io\flutter\plugins\connectivity\ConnectivityPlugin.java uses or overrides a deprecated API.

same here.

Did anyone find a way or another package to do the same functionality? I can't believe that there will be any dynamic app now that don't need such a package!

same here

same here

Hi all
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:
Flutter run on iOS simulator takes ages to start app

After flutter run app is starting on simulator after 20 min sometimes more then 1 hours. this is only on iOS simulator when i just android it works. Also fresh new app is affected with this super slow and stuck start;(
Updating to 1.7.8 nothing changed still flutter run for iOS simulator is stuck and very slow to start
Steps to Reproduce

Run iOS simulator
flutter run

Logs
+file:///Users/db/Desktop/Mobile/flutter/packages/flutter/lib/widgets.d
art
[        ] -> +file:///Users/db/Desktop/Flutter/iamsmart/lib/main.dart
[        ] -> 35191e22-84d6-4fab-abef-178ae9e4c665 build/app.dill 0
[ +319 ms] Building bundle
[        ] Writing asset files to build/flutter_assets
[  +55 ms] Wrote build/flutter_assets
[  +12 ms] Using legacy Xcode build system.
[  +27 ms] executing: [/Users/db/Desktop/Flutter/iamsmart/ios/]
/usr/bin/xcodebuild -list

[✓] Flutter (Channel master, v1.6.4-pre.14, on Mac OS X 10.14.5 18F132, locale
    pl-PL)
    • Flutter version 1.6.4-pre.14 at /Users/db/Desktop/Mobile/flutter
    • Framework revision 81c38b22cb (32 hours ago), 2019-05-24 22:51:02 -0400
    • Engine revision 8dc3a4cde2
    • Dart version 2.3.2 (build 2.3.2-dev.0.0 e3edfd36b2)

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

[✓] Xcode - develop for iOS and macOS (Xcode 10.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.2.1, Build version 10E1001
    • CocoaPods version 1.7.0

[✓] iOS tools - develop for iOS devices
    • ios-deploy 1.9.4

[✓] Android Studio (version 3.4)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 35.3.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build
      1.8.0_152-release-1343-b01)

[✓] Connected device (1 available)
    • iPhone 8 • F35EFD3E-C637-427A-8405-30EDF202939A • ios •
      com.apple.CoreSimulator.SimRuntime.iOS-12-2 (simulator)

• No issues found!

Same problem. /usr/bin/xcodebuild -list takes forever…

@codenamics is it the same with v1.9.1+hotfix.2?

I've done the following things now:

Removed Xcode 10 completely, installed Xcode 11
Switched from master to stable, so using Flutter v1.9.1+hotfix.2
Recreated ./ios folder by running flutter create .

Opening the project with Xcode now is much faster (although not perfectly fast).
/usr/bin/xcodebuild -list inside ./ios now takes around 30 to 34 seconds.
Running Xcode build now succeeds (takes around 70s).
So, for me, it's fixed (although not perfectly, still takes quite a while for Xcode to finish "Loading Runner"...).

@BondarenkoStas yes

@BondarenkoStas yes

i think i could be something about recou

sorry for mistake closing, windows flutter run is ok IOS takes ages

today's flutter run on iphone 8 took 42 min

looks like update to 1.9.1+hotfix.4 did the job

Another thing I recognised concerning this: I always had my source code in an iCloud folder. Moving the code out of the iCloud folder speeded up to xCode startup impressively.

authors: BondarenkoStas codenamics yorickreum


text:
[Tool]Analytics reporting state is not updated on user branch

jonahwilliams-macbookpro2:flutter_tools jonahwilliams$ flutter config --no-analytics
Analytics reporting disabled.

You may need to restart any open editors for them to read new settings.
jonahwilliams-macbookpro2:flutter_tools jonahwilliams$ flutter config
Configure Flutter settings.

To remove a setting, configure it to an empty string.

The Flutter tool anonymously reports feature usage statistics and basic crash reports to help improve Flutter tools over time. See Google's privacy policy: https://www.google.com/intl/en/policies/privacy/

Usage: flutter config [arguments]
-h, --help                                    Print this usage information.
    --[no-]analytics                          Enable or disable reporting anonymously tool usage statistics and crash reports.
    --clear-ios-signing-cert                  Clear the saved development certificate choice used to sign apps for iOS device deployment.
    --android-sdk                             The Android SDK directory.
    --android-studio-dir                      The Android Studio install directory.
    --build-dir=<out/>                        The relative path to override a projects build directory
    --[no-]enable-web                         Enable or disable Flutter for web. This setting will take effect on the master and dev channels.
    --[no-]enable-linux-desktop               Enable or disable Flutter for desktop on Linux. This setting will take effect on the master channel.
    --[no-]enable-macos-desktop               Enable or disable Flutter for desktop on macOS. This setting will take effect on the master channel.
    --[no-]enable-windows-desktop             Enable or disable Flutter for desktop on Windows. This setting will take effect on the master channel.
    --[no-]enable-build-plugin-as-aar         Enable or disable Build plugins independently as AARs in app projects. This setting will take effect on the master channel.
    --[no-]enable-android-embedding-v2        Enable or disable flutter create generates projects using the Android embedding V2. This setting will take effect on the master channel.
    --[no-]enable-web-incremental-compiler    Enable or disable Enable the incremental compiler for web builds. This setting will take effect on the master and dev channels.
    --clear-features                          Remove all configured features and restore them to the default values.

Run "flutter help" to see global options.

Settings:
  flutter-web: true
  flutter-linux-desktop: true
  enable-web: true
  enable-macos-desktop: true
  ios-signing-cert: iPhone Developer: Jonah Williams (87UWLUA5U2)
  enable-web-incremental-compiler: false

Analytics reporting is currently enabled.

Afterwards:
{
  "flutter-web": true,
  "flutter-linux-desktop": true,
  "enable-web": true,
  "enable-macos-desktop": true,
  "ios-signing-cert": "iPhone Developer: Jonah Williams (....)",
  "enable-web-incremental-compiler": false
}

False alarm! We have disabled analytics reporting for user branches, but as a result of this the flag does not get updated until you switch to a real branch. We should probably update this to still perist the setting, but it isn't as severe.

Updating the analytics flag on a user branch is a bit tricky to support without punching holes in package:usage. We should instead consider an error message like "Not updating analytics settings because you are on a local branch. Switch to master/dev/beta/stable and try again".

how do i change  enable-windows-desktop: true
enable-web: true to false

Fixed via https://github.com/flutter/flutter/pull/71728

authors: braderyq jonahwilliams zanderso


text:
[device_info] Android serial number

Is there a plan to support android serial number?
https://developer.android.com/reference/android/os/Build.html#getSerial()
https://developer.android.com/reference/android/os/Build.html#SERIAL
https://gist.github.com/flawyte/efd23dd520fc2320f94ba003b9aabfce

Closing as device_info is deprecated in favor of device_info_plus.

authors: iformas stuartmorgan


text:
Samsung keyboard composing region duplication on subset of devices

Extracted/continued from https://github.com/flutter/flutter/issues/31512
When typing, hiding and reshowing the keyboard and typing punctuation like . can cause the composing region to duplicate.
The original issue linked above impacted most Samsung devices. Since then, changes have landed that workaround the issue for most devices (https://github.com/flutter/engine/pull/16547 and https://github.com/flutter/engine/pull/15701). These workarounds have been confirmed to work on most devices.
However, it seems that a much smaller subset of devices are still seeing this bug even with the workaround, some with additional minor regressions in the form of the first letter sometimes repeating.
Devices confirmed to still exhibit the bug:

Galaxy Tab A 10.1" SM-T510

Devices that may have the bug in some form:

Galaxy S8 (based off report by @exptk3)
J6+

We have been in contact with Samsung to work on resolving this. See b/150639528
Please continue to report any specific models that are still experiencing the bug!

Hello,
I'm running a Samsung Tab S6 (SM T865) and i'm still running into text duplication issues. This issue occur to me when i'm trying to write down an email. Bellow you will be able to see a gif of the actual behavior :

This issue is really problematic as it is impossible to production deploy any app as samsung devices are very popular.
Flutter doctor Output :
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.15.19-pre.9, on Mac OS X 10.15.3 19D76, locale en-FR)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
[!] Android Studio (version 3.5)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[!] IntelliJ IDEA Ultimate Edition (version 2019.3.3)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.42.1)
[✓] Connected device (1 available)

! Doctor found issues in 2 categories.

Thank you and i hope we will find a fix soon

@GaryQian

The Samsung Fold has the Problem too.

As a partial workaround just install Gboard on yoiry device and the problem will be fixed as the issue is just coming from the keyboard and not the os itself

@MichelMelhem Unfortunately, "installing a different keyboard" is not a solution to this. The problem in itself is that Samsung keyboards specifically are not working, and switching keyboards doesn't solve the problem for anyone other than one single end user. Thanks for the additional reports! Will be useful in continued work tackling this problem!

I can confirm still happening on Galaxy Tab A (SM-T380) with Flutter version 1.12.13+hotfix.8

I can confirm still happening on J6 with Flutter version 1.12.13+hotfix.8

Samsung S9, S9+ has same problem. I tested it on device.
Flutter version is 1.15.19-pre33

I reproduced this with Samsung Galaxy S8 on Flutter Stable: 1.12.13+hotfix.8

Is there any update on the way to fix this issue ???

Facing similar issue on GalaxyS10e android 10.

It seems that it happens more often while typing email.

I have landed https://github.com/flutter/engine/pull/17426 which seems to fix many of the bugs on my test devices. It would be great if others could confirm that this also fixes bugs for them.
Please try the change on master channel after it has rolled into the engine (it has not yet, I will update this comment when the change does roll in and is ready for testing).

I just tried and it is fixed for me. Thank you!
Is it safe to switch to master channel for an app in production?

We don't recommend it as there may be major bugs that we still have not caught, but every few days we roll to dev channel, which is still not recommended, but quite a bit safer than master. However, the final decision is still up to you to determine how important certain bugfixes are to include and which channel to use. As a rule of thumb, we try our best to keep master channel usable, and that succeeds a lot of the time, but there is no guarantee.

@GaryQian Thank you!

[ Test divice : Galaxy s8 ]
[ Test sdk : Flutter Master Channel ]
*** Problems found in the last test

Time delay of the keyboard up and down
abnormal display of the keyboard even after the app is closed (on device home screen)
word duplication input
input line can not be changed during keyboard input

*** I tested it on the same device (Galaxy s8) as in the last bug report.
—> This time, during the test, the above problems were confirmed.
—> Results of test
3, 4 : resolved.
1,2 : not resolved.
The duplicate input problem, which was a major problem, did not appear, but the time delay occurred when the keyboard was hidden or visible.
It seems that there is no delay time at the beginning of input, but if it is more than 3 ~ 4 lines of text input, the longer the sentence, the longer the delay time.
--> The delay time increases by more than 10 seconds, the performance is difficult to use in a real app.
I hope you reproduce the above bugs on your Galaxy s8 device.
================================================
*** Log when Keyboard up
…
W/IInputConnectionWrapper(27651): getExtractedText on inactive InputConnection
W/IInputConnectionWrapper(27651): getExtractedText on inactive InputConnection
W/IInputConnectionWrapper(27651): getExtractedText on inactive InputConnection
So many times
…
*** Log when Keyboard down
D/ViewRootImpl@b02d8a6MainActivity: ViewPostIme pointer 0
D/ViewRootImpl@b02d8a6MainActivity: ViewPostIme pointer 1
D/InputMethodManager(27651): HSIFW - flag : 0 Pid : 27651
==================================================
Thank you.

I will close this for now, if anyone still sees this bug, please let me know and we can reopen this!
Thanks everyone for the patience given for this quite longstanding issue and the assistance provided in resolving it!

@GaryQian Thanks for all the hard work on this. Do you plan on looking into the 2 remaining issues @exptk3 mentioned in their post above? Is there a separate bug logged for that?
Thanks

@GaryQian Great work! As mentioned by @dannyvalentesonos, there are two remaining issues.
Especially, I also confirmed "Time delay of the keyboard up and down" issue.
I tested more than 5 devices, It happened on only Galaxy Note 10, not Galaxy 9&9plus, iPhone X etc.
so I don't know whether it is flutter issue or device issue.

I'll go ahead and open a separate issue if one doesn't already exist. Those symptoms seem separate from the primary problems tracked in this bug.

@TykanN "Time delay of the keyboard up and down" issue happens on Galaxy 9 Plus as well.
@GaryQian I am using 1.15.17 and the keyboard is almost not usuable in production due to delay. This issue never happened on 1.12.8.

https://github.com/flutter/flutter/issues/54310 Is the new bug I filed for the remaining issues mentioned

authors: GaryQian MichelMelhem TykanN dannyvalentesonos escamoteur exptk3 leecommamichael njovy sohe1l wkhaksar zwells


text:
How to build a simple alarm clock?

The Github issue tracker is for bugs and features requests for the Flutter SDK. Help and support questions like these are better suited for Q&A sites like StackOverflow or on one of the flutter community sites at https://flutter.dev/community .

authors: jonahwilliams muhammadkamel


text:
[web] take screenshots on web integration tests

We added functionality to integration_test package for taking screenshots on PR.
We need to use this functionality inside the engine repo and use it from the integration test under the directory: https://github.com/flutter/engine/tree/master/e2etests/web/regular_integration_tests

I'm reopening the issue, i'm also adding support for firefox


text:
Unable to run default flutter app

Steps to Reproduce
Using Pixel phone
flutter create myapp
cd myapp
flutter run
Logs
Run your application with flutter run and attach all the log output.
Installing build/app.apk...                          3860ms
Timed out while waiting for a debug connection.
Error launching DevFS loader on Pixel.
wall time: flutter run completed in 28 seconds
logcat:
11-03 12:43:52.280  1192 11167 I ActivityManager: START u0 {act=android.intent.action.RUN dat=/data/local/tmp/dev.flx flg=0x30000000 cmp=com.yourcompany.myapp/org.
domokit.sky.shell.SkyActivity (has extras)} from uid 2000 on display 0
11-03 12:43:52.289  1192 11167 D QCOM PowerHAL: LAUNCH HINT: ON
11-03 12:43:52.297  1192 11167 I QCOM PowerHAL: Activity launch hint handled
11-03 12:43:52.309  1192 11167 I ActivityManager: Start proc 7980:com.yourcompany.myapp/u0a216 for activity com.yourcompany.myapp/org.domokit.sky.shell.SkyActivity
11-03 12:43:52.311  7969  7969 D AndroidRuntime: Shutting down VM
11-03 12:43:52.327  7980  7980 I art     : Late-enabling -Xcheck:jni
11-03 12:43:52.345  7980  7987 E art     : Failed writing handshake bytes (-1 of 14): Broken pipe
11-03 12:43:52.345  7980  7987 I art     : Debugger is no longer active
11-03 12:43:52.345  7980  7987 I art     : Starting a blocking GC Instrumentation
11-03 12:43:52.346  1192  4864 I WindowManager: Failed to capture screenshot of Token{57adb49 ActivityRecord{2fd2d50 u0 com.google.android.apps.inbox/com.google.an
droid.apps.bigtop.activities.MainActivity t2860}} appWin=Window{552145f u0 com.google.android.apps.inbox/com.google.android.apps.bigtop.activities.MainActivity} dr
awState=4
11-03 12:43:52.386  7980  7980 I cr.library_loader: Time to load native libraries: 7 ms (timestamps 9718-9725)
11-03 12:43:52.386  7980  7980 I cr.library_loader: Expected native library version number "", actual native library version number ""
11-03 12:43:52.466  7980  7980 E ApkAssets: Error while loading asset assets/icudtl.dat: java.io.FileNotFoundException: This file can not be opened as a file descr
iptor; it is probably compressed
11-03 12:43:52.470  7980  7980 I Adreno  : QUALCOMM build                   : a5b4970, If5818605d9
11-03 12:43:52.470  7980  7980 I Adreno  : Build Date                       : 10/12/16
11-03 12:43:52.470  7980  7980 I Adreno  : OpenGL ES Shader Compiler Version: XE031.09.00.04
11-03 12:43:52.470  7980  7980 I Adreno  : Local Branch                     : N24D
11-03 12:43:52.470  7980  7980 I Adreno  : Remote Branch                    :
11-03 12:43:52.470  7980  7980 I Adreno  : Remote Branch                    :
11-03 12:43:52.470  7980  7980 I Adreno  : Reconstruct Branch               :
11-03 12:43:52.533  7980  8004 I OpenGLRenderer: Initialized EGL, version 1.4
11-03 12:43:52.533  7980  8004 D OpenGLRenderer: Swap behavior 1
11-03 12:43:52.582  2695  5899 I Icing   : Indexing 6BE5355CF8E17C178F29EC639D363295AAC56949 from com.google.android.googlequicksearchbox
11-03 12:43:52.630  7980  8002 F libc    : Fatal signal 4 (SIGILL), code 1, fault addr 0xca1586e4 in tid 8002 (ui_thread)
11-03 12:43:52.631   557   557 W         : debuggerd: handling request: pid=7980 uid=10216 gid=10216 tid=8002
11-03 12:43:52.706  8008  8008 E         : debuggerd: process stopped due to unexpected signal 27
11-03 12:43:52.708  1192  8009 W ActivityManager:   Force finishing activity com.yourcompany.myapp/org.domokit.sky.shell.SkyActivity
Run flutter analyze and attach any output of that command also.
Analyzing lib/main.dart...
No analyzer warnings! (ran in 10.8s)
Flutter Doctor
Paste the output of running flutter doctor here.
[✓] Flutter (on Linux, channel master)
• Flutter at /mnt/ext/adlr/flutter/flutter
• Framework revision 594c4f998a (6 hours ago), 2016-11-03 15:19:57
• Engine revision 16077d474b
• Tools Dart version 1.21.0-dev.3.0
[✓] Android toolchain - develop for Android devices (Android SDK 23.0.1)
• Android SDK at /usr/local/google/home/adlr/Android/Sdk
• Platform android-23, build-tools 23.0.1
• OpenJDK Runtime Environment (build 1.8.0-google-v7-132676107-132666263)
[x] Flutter IDE Support (No supported IDEs installed)
• IntelliJ - https://www.jetbrains.com/idea/
[✓] Connected devices
• Pixel • FA6890301609 • android-arm • Android 7.1.1 (API 25)

The ui_thread crashing would suggest it's Dart or c++ engine code crashing, not Skia or GPU bindings I think.  This may or may not be specfic to pixel.
Ideally we'd be able to get a Tombstone file showing the full crash.  They're located at /data/tombstones/tombstone_01, etc. if written, but it doesn't look from the logs like this crash wrote one for whatever reason.

Working on getting our hands on a Pixel to debug.  We have a couple still in the mail.  https://github.com/flutter/flutter/issues/6492 is likely not the same issue, but also seems to be pixel-specific and might end up related.

Cool. Also, doing the release build did work, fwiw.

Oh, odd.  So this is a debug-only, pixel-only crash.  --release uses Dart's AOT (Ahead of Time) compilation mode instead of JIT (which i used for --debug).  I wonder if the Dart JIT crashes on a Pixel.  Will have to see when we have one in our hands.  Thanks again for the report!
This actually probably is the same as  #6492 , but I think I'm going to dupe to this one since it has more info.

FYI @a-siva.

authors: adlr eseidelGoogle


text:
[tool_crash] FileSystemException: Cannot copy file to 'C:\Users\estep\Documents\UFMA\Search\Codes\teste2\android\app\src\main\res\mipmap-mdpi\ic_launcher.png', OS Error: Access is denied., errno = 5

Command
flutter create --org br.com.Nascimento teste2

Steps to Reproduce

...
...
...

Logs
FileSystemException: Cannot copy file to 'C:\Users\estep\Documents\UFMA\Search\Codes\teste2\android\app\src\main\res\mipmap-mdpi\ic_launcher.png', OS Error: Access is denied.
, errno = 5
#0      _File.throwIfError (dart:io/file_impl.dart:635:7)
#1      _File.copySync (dart:io/file_impl.dart:340:5)
#2      ForwardingFile.copySync (package:file/src/forwarding/forwarding_file.dart:30:50)
#3      ForwardingFile.copySync (package:file/src/forwarding/forwarding_file.dart:30:50)
#4      Template.render.<anonymous closure> (package:flutter_tools/src/template.dart:267:18)
#5      _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:377:8)
#6      Template.render (package:flutter_tools/src/template.dart:190:24)
#7      CreateCommand._renderTemplate (package:flutter_tools/src/commands/create.dart:799:21)
#8      _rootRunUnary (dart:async/zone.dart:1198:47)
#9      _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#10     _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#11     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
#12     Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#13     Future._completeWithValue (dart:async/future_impl.dart:529:5)
#14     _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
#15     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
#16     Template.fromName (package:flutter_tools/src/template.dart)
#17     _rootRunUnary (dart:async/zone.dart:1198:47)
#18     _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#19     _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#20     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
#21     Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#22     Future._completeWithValue (dart:async/future_impl.dart:529:5)
#23     _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
#24     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)

[✓] Flutter (Channel stable, 1.22.3, on Microsoft Windows [Version 10.0.18363.1139], locale
    pt-BR)
    • Flutter version 1.22.3 at C:\src\flutter
    • Framework revision 8874f21e79 (8 days ago), 2020-10-29 14:14:35 -0700
    • Engine revision a1440ca392
    • Dart version 2.10.3

[✗] 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, set ANDROID_SDK_ROOT to
      that location.
      You may also want to add it to your PATH environment variable.

[!] 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, 64-bit edition (version 1.50.1)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.16.0

[!] Connected device
    ! No devices available

! Doctor found issues in 3 categories.

Flutter Application Metadata
No pubspec in working directory.

Closing as duplicate of https://github.com/flutter/flutter/issues/69116 https://github.com/flutter/flutter/issues/69825

authors: EstephaneNascimento TahaTesser


text:
Error building flutter web --no-sound-null-safety

Steps to Reproduce
Sorry  to bother. I know realize that it was a faulty HD, with corrupted files.

Run flutter create bug.
Update the files as follows: ...
...
I'm building my web app, with flutter --non-sound-null-safety param, and i'm getting the errors below

Expected results:
The app being build, or an significant error message
Actual results:
The error below:
call flutter build web --no-sound-null-safety
Running "flutter pub get" in theheroesbook...                       7.9s
Target dart2js failed: Exception:
../../../SDKs/flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/bitmap_canvas.dart:615:7:
Warning: Operand of null-aware operation '!' has type 'CanvasRenderingContext2D' which excludes null.

'CanvasRenderingContext2D' is from 'dart:html'.
ctx!.fillText(line.displayText!, x, y);
^
../../../SDKs/flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/bitmap_canvas.dart:630:9:
Warning: Operand of null-aware operation '!' has type 'CanvasRenderingContext2D' which excludes null.
'CanvasRenderingContext2D' is from 'dart:html'.
ctx!.fillText(char, x, y);
^
../../../SDKs/flutter/packages/flutter/lib/src/widgets/basic.dart:5750:14:
Error: The method 'debugGetOpenHandleStackTraces' isn't defined for the class 'Image'.
'Image' is from 'dart:ui'.
image?.debugGetOpenHandleStackTraces()?.isNotEmpty ?? true,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../SDKs/flutter/packages/flutter/lib/src/widgets/basic.dart:5755:21:
Error: The method 'clone' isn't defined for the class 'Image'.
'Image' is from 'dart:ui'.
image: image?.clone(),
^^^^^
../../../SDKs/flutter/packages/flutter/lib/src/widgets/basic.dart:5777:14:
Error: The method 'debugGetOpenHandleStackTraces' isn't defined for the class 'Image'.
'Image' is from 'dart:ui'.
image?.debugGetOpenHandleStackTraces()?.isNotEmpty ?? true,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../SDKs/flutter/packages/flutter/lib/src/widgets/basic.dart:5782:24:
Error: The method 'clone' isn't defined for the class 'Image'.
'Image' is from 'dart:ui'.
..image = image?.clone()
^^^^^
../../../SDKs/flutter/packages/flutter/lib/src/rendering/image.dart:93:50:
Error: The method 'isCloneOf' isn't defined for the class 'Image'.
'Image' is from 'dart:ui'.
if (value != null && _image != null && value.isCloneOf(_image!)) {
^^^^^^^^^
../../../SDKs/flutter/packages/flutter/lib/src/painting/decoration_image.dart:440:11:
Error: The method 'debugGetOpenHandleStackTraces' isn't defined for the class 'Image'.
'Image' is from 'dart:ui'.
image.debugGetOpenHandleStackTraces()?.isNotEmpty ?? true,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../SDKs/flutter/packages/flutter/lib/src/painting/image_stream.dart:51:20:
Error: The method 'clone' isn't defined for the class 'Image'.
'Image' is from 'dart:ui'.
image: image.clone(),
^^^^^
../../../SDKs/flutter/packages/flutter/lib/src/painting/image_stream.dart:89:24:
Error: The method 'isCloneOf' isn't defined for the class 'Image'.
'Image' is from 'dart:ui'.
return other.image.isCloneOf(image)
^^^^^^^^^
../../../SDKs/flutter/packages/flutter/lib/src/painting/image_stream.dart:120:19:
Error: The method 'debugGetOpenHandleStackTraces' isn't defined for the class 'Image'.
'Image' is from 'dart:ui'.
assert((image.debugGetOpenHandleStackTraces()?.length ?? 1) > 0);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../SDKs/flutter/packages/flutter/lib/src/painting/image_stream.dart:877:34:
Error: The method 'clone' isn't defined for the class 'Image'.
'Image' is from 'dart:ui'.
image: _nextFrame!.image.clone(),
^^^^^
../../../SDKs/flutter/packages/flutter/lib/src/painting/image_stream.dart:932:34:
Error: The method 'clone' isn't defined for the class 'Image'.
'Image' is from 'dart:ui'.
image: _nextFrame!.image.clone(),
^^^^^
../../../SDKs/flutter/packages/flutter/lib/src/semantics/semantics.dart:3654:47:
Error: Getter not found: 'isSlider'.
bool get isSlider => _hasFlag(SemanticsFlag.isSlider);
^^^^^^^^
../../../SDKs/flutter/packages/flutter/lib/src/semantics/semantics.dart:3656:28:
Error: Getter not found: 'isSlider'.
_setFlag(SemanticsFlag.isSlider, value);
^^^^^^^^
Error: Compilation failed.

Compiling lib\main.dart for the Web...                             80.5s
Exception: Failed to compile application for the Web.

Logs

[√] Flutter (Channel beta, 1.24.0-10.2.pre, on Microsoft Windows [Version 10.0.19041.630], locale
    en-US)
    • Flutter version 1.24.0-10.2.pre at d:\Users\Diego\Programming\SDKs\flutter
    • Framework revision 022b333a08 (12 days ago), 2020-11-18 11:35:09 -0800
    • Engine revision 07c1eed46b
    • Dart version 2.12.0 (build 2.12.0-29.10.beta)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at D:\Users\Diego\Programming\SDKs\android-sdk
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = D:\Users\Diego\Programming\SDKs\android-sdk
    • ANDROID_SDK_ROOT = D:\Users\Diego\Programming\SDKs\android-sdk
    • Java binary at: C:\Program Files\Java\jdk-11.0.9\bin\java
    • Java version Java(TM) SE Runtime Environment 18.9 (build 11.0.9+7-LTS)
    • All Android licenses accepted.

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

[!] Android Studio (version 4.1.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • 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
    X Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[√] IntelliJ IDEA Community Edition (version 2020.2)
    • IntelliJ at C:\Users\Diego\AppData\Local\JetBrains\Toolbox\apps\IDEA-C\ch-0\202.8194.7
    • 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.51.0)
    • VS Code at C:\Users\Diego\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.16.0

[√] Connected device (4 available)
    • MotoG3 (mobile)  • 0022539160 • android-arm    • Android 9 (API 28)
    • Web Server (web) • web-server • web-javascript • Flutter Tools
    • Chrome (web)     • chrome     • web-javascript • Google Chrome 87.0.4280.66
    • Edge (web)       • edge       • web-javascript • Microsoft Edge 86.0.622.61

! Doctor found issues in 1 category.

You have not included any steps on how to reproduce the problem

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.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.


text:
Dart stack size issues

I tried nested containers to see the Dart behavior on these platforms:
On Android emulator (x86): ~4200 nested containers with stack frame count 17936.
On Android Device (arm64) debug mode: ~4100 nested containers with stack frame count: 16718.
On Android Device (arm64) release mode: ~6100 nested containers with stack frame count: 24724.
On iOS simulator (x64): ~700 nested containers with stack frame count: 3254.
On iOS device (arm64, iOS 14.1) debug mode: ~800 nested containers with stack frame count: 3369.
On iOS device (arm64) release mode: ~1200 nested containers with stack frame count: 5075.
[This is still a draft... will keep collecting data and updating]

Dupe of https://github.com/flutter/flutter/issues/72156


text:
Invalid Signature. Code object is not signed at all.

Steps to Reproduce

flutter clean
flutter build ios
Xcode: using Automatic signing
Xcode: Product -> scheme -> Runner
Xcode: Product -> Destination -> Any iOS device (arm64)
Xcode: Product -> Archive
Validate (with proper certificate and App Store distribution profile)
Validation fails

Expected results:  Validation Success
Actual results:
Invalid Signature. Code object is not signed at all. The file at path [Runner.app/Frameworks/App.framework/flutter_assets/assets/js/lib/snippets/lang.js] is not properly signed. Make sure you have signed your application with a distribution certificate, not an ad hoc certificate or a development certificate. Verify that the code signing settings in Xcode are correct at the target level (which override any values at the project level). Additionally, make sure the bundle you are uploading was built using a Release target in Xcode, not a Simulator target. If you are certain your code signing settings are correct, choose "Clean All" in Xcode, delete the "build" directory in the Finder, and rebuild your release target. For more information, please consult https://developer.apple.com/library/ios/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html
Tried the suggestions from https://github.com/flutter/flutter/issues/71164, but the same result.

Flutter Doctor result
[✓] Flutter (Channel stable, 1.22.2, on Mac OS X 10.15.7 19H15, locale en-AU)
• Flutter version 1.22.2 at /Users/gokulnk/DevTools/flutter
• Framework revision 84f3d28555 (8 weeks ago), 2020-10-15 16:26:19 -0700
• Engine revision b8752bbfff
• Dart version 2.10.2
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/gokulnk/Library/Android/sdk
• Platform android-30, build-tools 30.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_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.2, Build version 12B45b
• CocoaPods version 1.9.3
[✓] 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)
[✓] IntelliJ IDEA Ultimate Edition (version 2020.2.3)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin installed
• Dart plugin version 202.8070
[✓] VS Code (version 1.48.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.13.2
[!] Connected device
! No devices available
! Doctor found issues in 1 category.

I solved the issue. The issue was with the contents in file "lang.js".

I ran into a similar problem. How did you solve it? Can you tell me more specifically? Thanks!

authors: gokulchan jidasheng


text:
"Null check operator used on a null value" in RenderObject.getTransformTo()

We're seeing some non-fatal errors in Crashlytics from our users that seem to be coming from Flutter's recent migration to null-safety. I'm unfortunately not able to reproduce this, but here are my findings:

We're using RenderBox.localToGlobal() to position a widget relative to another one without passing an ancestor.
getTransformTo() seems to throw with "Null check operator used on a null value", which looks like it's coming from the owner! call.

Do we have to check, whether the node is still attached before calling RenderBox.localToGlobal()?
This should be the relevant piece of code (object.dart:2375):
Matrix4 getTransformTo(RenderObject? ancestor) {
  final bool ancestorSpecified = ancestor != null;
  assert(attached);
  if (ancestor == null) {
    final AbstractNode? rootNode = owner!.rootNode;
    if (rootNode is RenderObject)
      ancestor = rootNode;
  }
  final List<RenderObject> renderers = <RenderObject>[];
  for (RenderObject renderer = this; renderer != ancestor; renderer = renderer.parent as RenderObject) {
    assert(renderer != null); // Failed to find ancestor in parent chain.
    renderers.add(renderer);
  }
  if (ancestorSpecified)
    renderers.add(ancestor!);
  final Matrix4 transform = Matrix4.identity();
  for (int index = renderers.length - 1; index > 0; index -= 1) {
    renderers[index].applyPaintTransform(renderers[index - 1], transform);
  }
  return transform;
}

The error is happening on both iOS and Android:

iOS: 100% background
Android: 0% background but 96% proximity on

I'm posting the stack trace here for completion, but unfortunately it only goes up to our own method:
Non-fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: Null check operator used on a null value. Error thrown Instance of 'ErrorDescription'.
       at _SuccessLayerState._nextButtonTopPosition(_SuccessLayerState.java:430)
       at _SuccessLayerState.build(_SuccessLayerState.java:350)
       at StatefulElement.build(StatefulElement.java:4744)
       at ComponentElement.performRebuild(ComponentElement.java:4627)
       at StatefulElement.performRebuild(StatefulElement.java:4800)
       at Element.rebuild(Element.java:4343)
       at StatefulElement.update(StatefulElement.java:4832)
       at Element.updateChild(Element.java:3314)
       at ComponentElement.performRebuild(ComponentElement.java:4652)
       at Element.rebuild(Element.java:4343)
       at ProxyElement.update(ProxyElement.java:4987)
       at Element.updateChild(Element.java:3314)
       at ComponentElement.performRebuild(ComponentElement.java:4652)
       at StatefulElement.performRebuild(StatefulElement.java:4800)
       at Element.rebuild(Element.java:4343)
       at StatefulElement.update(StatefulElement.java:4832)
       at Element.updateChild(Element.java:3314)
       at SingleChildRenderObjectElement.update(SingleChildRenderObjectElement.java:6125)
       at Element.updateChild(Element.java:3314)
       at ComponentElement.performRebuild(ComponentElement.java:4652)
       at Element.rebuild(Element.java:4343)
       at StatelessElement.update(StatelessElement.java:4708)
       at Element.updateChild(Element.java:3314)
       at SingleChildRenderObjectElement.update(SingleChildRenderObjectElement.java:6125)
       at Element.updateChild(Element.java:3314)
       at ComponentElement.performRebuild(ComponentElement.java:4652)
       at Element.rebuild(Element.java:4343)
       at StatelessElement.update(StatelessElement.java:4708)
       at Element.updateChild(Element.java:3314)
       at ComponentElement.performRebuild(ComponentElement.java:4652)
       at StatefulElement.performRebuild(StatefulElement.java:4800)
       at Element.rebuild(Element.java:4343)
       at StatefulElement.update(StatefulElement.java:4832)
       at Element.updateChild(Element.java:3314)
       at ComponentElement.performRebuild(ComponentElement.java:4652)
       at StatefulElement.performRebuild(StatefulElement.java:4800)
       at Element.rebuild(Element.java:4343)
       at StatefulElement.update(StatefulElement.java:4832)
       at Element.updateChild(Element.java:3314)
       at RenderObjectElement.updateChildren(RenderObjectElement.java:5647)
       at MultiChildRenderObjectElement.update(MultiChildRenderObjectElement.java:6246)
       at Element.updateChild(Element.java:3314)
       at ComponentElement.performRebuild(ComponentElement.java:4652)
       at StatefulElement.performRebuild(StatefulElement.java:4800)
       at Element.rebuild(Element.java:4343)
       at BuildOwner.buildScope(BuildOwner.java:2730)
       at WidgetsBinding.drawFrame(WidgetsBinding.java:913)
       at RendererBinding._handlePersistentFrameCallback(RendererBinding.java:302)
       at SchedulerBinding._invokeFrameCallback(SchedulerBinding.java:1117)
       at SchedulerBinding.handleDrawFrame(SchedulerBinding.java:1055)
       at SchedulerBinding._handleDrawFrame(SchedulerBinding.java:971)

Output of flutter doctor -v:
[✓] Flutter (Channel stable, 1.22.5, on macOS 11.1 20C69 darwin-x64, locale de-DE)
    • Flutter version 1.22.5 at /Users/etiennelenhart/Documents/Tools/flutter
    • Framework revision 7891006299 (6 weeks ago), 2020-12-10 11:54:40 -0800
    • Engine revision ae90085a84
    • Dart version 2.10.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/etiennelenhart/Library/Android/sdk
    • Platform android-30, build-tools 30.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_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.3, Build version 12C33
    • CocoaPods version 1.10.0

[!] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

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

[!] Connected device
    ! No devices available

! Doctor found issues in 2 categories.

@etiennelenhart how does your stack trace contains dart log exception that maps to .java files? i'm just curious

@etiennelenhart how does your stack trace contains dart log exception that maps to .java files? i'm just curious

@nt4f04uNd I'm honestly not 100% sure. I always thought this just happens because of Dart getting compiled down to native (in this case Java) code.

@nt4f04uNd I'm honestly not 100% sure. I always thought this just happens because of Dart getting compiled down to native (in this case Java) code.

If anyone stumbles on this later: I'm pretty sure we were able to fix this by checking whether the RenderBox is still attached before calling localToGlobal().

If anyone stumbles on this later: I'm pretty sure we were able to fix this by checking whether the RenderBox is still attached before calling localToGlobal().


text:
Cannot post https request on run release flutter

Steps to Reproduce

Run flutter in debug mode http/https call get/post works fine
Run Flutter in Release mode it will never send any nework request.
only to find-out that I need to add <uses-permission android:name="android.permission.INTERNET"/> in AndroidManifest.xml

my question is if that is mandatory, why that is not made mandatory for debug release as well and it can spit an exception/error that it is required.
I waste my whole 1day to find the issue.
if everything works in debug-mode without any error as a developer/user I will assume that everything is okay to build the same for release mode.

my question is if that is mandatory, why that is not made mandatory for debug release as well and it can spit an exception/error that it is required.

this issue doesn't seem to describe a bug or a feature request

then what it describes, if it is not a bug, if the app runs fine in debug mode, it should work the same in release mode. [...]

@pkjoshisbp
I believe that the situation you are describing is intended and not a bug,
it seems to me that your original post you are asking why this is intended

I waste my whole 1day to find the issue.
if everything works in debug-mode without any error as a developer/user I will assume that everything is okay to build the same for release mode.

I'm sorry you "wasted a day", but this is clearly stated in the documentation

Additionally, in your AndroidManifest.xml file, add the Internet permission.
<!-- Required to fetch data from the internet. -->
<uses-permission android:name="android.permission.INTERNET" />

Hi @pkjoshisbp
This issue doesn't seem to describe a bug or a feature request. Please see https://flutter.dev/community for resources and asking questions like this,
you may also get some help if you post it on Stack Overflow and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you

authors: iapicca pedromassangocode pkjoshisbp


text:
[video_player] when seekTo playerController, video and sound are out of sync. video delay 1 sec ~2 sec from sound.

I am having an issue with Flutter video_player where sometimes the video hangs and the sound is not in sync with the video. There is a delay of ~1 second between the video and sound. This only happens when playing certain videos, most videos are fine. I've checked that one of the affected videos is in the same format (mp4) as other videos and also have downloaded that video from my S3 bucket and have confirmed that it plays correctly in that case, so I believe it must be an issue with the video_player plugin. Here is my code to load the video controller. Is there any reason that videos would behave differently with this plugin where the audio and video are not in sync?

minimal code sample
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:video_player/video_player.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      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> {
  late final VideoPlayerController _controller;
  @override
  void initState() {
    _controller = VideoPlayerController.network(
        "https://bigfile.mail.naver.com/bigfileupload/download?fid=8fnZKqF9pHv/aA2jK3Y/axMmHqUmKoumaAUqKxKdFqgXHqurKqUqKoUXaxvjK6FoMqtXF6KdaxuZMxbZax+vM4E/FoEqpAb9KzErFAU=")
      // asset("assets/X_0008_wnq0jz.mp4")
      ..initialize().then((value) => setState(() => value));
    super.initState();
  }

  @override
  void dispose() {
    _controller.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: VideoPlayer(_controller),
      floatingActionButton: FloatingActionButton(
        heroTag: "FAB",
        onPressed: () {
          if (!_controller.value.isPlaying) {
            _controller.play();
          } else {
            _controller
                .seekTo(_controller.value.duration - Duration(minutes: 1));
          }
        },
      ),
    );
  }
}

here!
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.2.3 20D91 darwin-x64, locale
    ko-KR)
    • Flutter version 2.2.3 at /Users/eden/Documents/flutter
    • Framework revision f4abaa0735 (8 weeks ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/eden/Library/Android/sdk
    • Platform android-30, build-tools 30.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_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5.1, Build version 12E507
    • CocoaPods version 1.10.1

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

[✓] Android Studio (version 4.1)
    • 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
      1.8.0_242-release-1644-b3-6915495)

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

[✓] Connected device (1 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 92.0.4515.159

• No issues found!

video player version: 2.1.14

Hi @YeomDongUk
I can't notice any out-of-sync issue, Is the issue on the simulator or device? both? Which physical device and iOS versions you have tested?
Thank you

Physical devices iPhone 8 (14.3), 10s (14.4), 11 and 12 Pro (14.7.1) and simulator were all found.
did you test it with the video on the link written above?

Hi @YeomDongUk
I just tested physical and simulator, video and audio appear to be synced
First run the sample, tap FAB, video loads, it has proper sync, then tap FAB again, video goes blank but I only hear the audio (is this your issue?).
Can you please explain what's going on here? Is the what you see? What are the exact steps to reproduce the issue? Can you provide a comparison?
Thank you

authors: TahaTesser YeomDongUk