text:
PageView inside Scrollable widgets

in my application i have one pageview with some pages into that
what i want to have?

ScrollableWidget [ container, pageview [ page1(), page1(), page3() ] ]

return Scaffold(
        backgroundColor: Colors.transparent,
        body: Container(
          child: PageView(
            controller: _pageController,
            reverse: true,
            onPageChanged: (i) {},
            children: <Widget>[
              ConstrainedBox(
                constraints: const BoxConstraints.expand(),
                child: Container(
                  margin: EdgeInsets.fromLTRB(8.0, 8.0, 8.0, 12.0),
                  child: BmiCalculator(),
                ),
              ),
              ConstrainedBox(
                constraints: const BoxConstraints.expand(),
                child: Directionality(
                  textDirection: TextDirection.rtl,
                  child: Container(
                    margin: EdgeInsets.fromLTRB(8.0, 8.0, 8.0, 12.0),
                    child: RiskCalculator(),
                  ),
                ),
              ),
              ConstrainedBox(
                constraints: const BoxConstraints.expand(),
                child: Directionality(
                  textDirection: TextDirection.rtl,
                  child: Container(
                    margin: EdgeInsets.fromLTRB(8.0, 8.0, 8.0, 12.0),
                    child: UserProfileForm(),
                  ),
                ),
              ),
            ],
          ),
        ));

how can i put this pageview into scrollable widgets such as listview without any problem?
when i put it inside listview or expandable i get error

same issue here but with WebView
SingleChildScrollView( child: Column( children: <Widget>[ Container( height: 300, color: Colors.greenAccent, child: Text('box1')), Container( height: 200, color: Colors.red, child: Text('box2')), Container( child: WebView( initialUrl: "http://www.wikipedia.com", onPageFinished: (url){ }, )), ], ) ),

Hi @MahdiPishguy
This platform is not meant for assistance on personal code. 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: MahdiPishguy TahaTesser hamidrezabstn


text:
FlatButton remains highlighted when swiping out.

Observed Behavior: Tap and hold on a FlatButton, then slide off it. The Button's InkWell(?) remains highlighted, even if you let go of the tap after that.
Expected Behavior: In addition to unhighlighting onTapUp, the highlight should disappear if the pointer move takes it out of the FlatButton's borders.

Fixed.

source: gharchive/issue

authors: Hixie afandria

repo: flutter/flutter

license_type: permissive

license_source: github-api


text:
flutter_tools ignores response from VM service when registering services

VMService registers a few services in its constructor for hot reload and expression compilation, but it does this by sending a notification instead of a request. We recently had an issue where an RPC name was changed in such a way that these services weren't being registered, but no error was raised when registration failed.
registerService should instead be invoked using a standard request so that a response can be checked for errors.
cc/ @jonahwilliams @zanderso

@bkonyi are you talking about these:
https://github.com/flutter/flutter/blob/master/packages/flutter_tools/lib/src/vmservice.dart#L143
What would be the correct way to use these, sendRequest?

Yep, that's them. See sendRequest.

Does this have different semantics/required artifacts? https://github.com/flutter/flutter/pull/36276/files caused a bunch of tests to break.

Following up on this - everything is working better now that we're using package:vm_service. Is there anything we need to do here besides handle errors thrown via registration? I see the return type is Success so I assume it either returns or throws.
https://github.com/flutter/flutter/blob/master/packages/flutter_tools/lib/src/vmservice.dart#L160

Nope, that looks correct to me.

Awesome, fixed via migration to package:vm_service : https://github.com/flutter/flutter/issues/52179

authors: bkonyi jonahwilliams


text:
Why my new Flutter project runs on kotlin and swift?

My new project runs on kotlin and swift, but i want to run project on java and objective-c, i want to switch this setting. My version of Android Studio is 3.4.1. And I didn't chose kotlin and swift variation. How can i reach this goal.

Flutter switched the default languages to kotlin and swift but there is a command line switch -i or --ios-language and -a or --android-language
To update an existing project you should be able to delete the ios and android directories and run
flutter create -i objc -a java

@coolidm

authors: Medrov coolidm


text:
Tapping on TextField throws exception

Tapping on any TextField throws an exception
This behavior occurs only on Android and iOS devices.
Steps to reproduce:

Create a Flutter app.
Add TextField to it.
Build in debug mode.
Run an Android or iOS simulator.
Tap on the TextField.

Logs
MethodChannel.invokeMethod (/Users/userX/Documents/development/flutter/packages/flutter/lib/src/services/platform_channel.dart:319)
<asynchronous gap> (Unknown Source:0)
OptionalMethodChannel.invokeMethod (/Users/userX/Documents/development/flutter/packages/flutter/lib/src/services/platform_channel.dart:429)
<asynchronous gap> (Unknown Source:0)
TextInputConnection.setEditableSizeAndTransform (/Users/userX/Documents/development/flutter/packages/flutter/lib/src/services/text_input.dart:687)
EditableTextState._updateSizeAndTransform (/Users/userX/Documents/development/flutter/packages/flutter/lib/src/widgets/editable_text.dart:1710)
EditableTextState._openInputConnection (/Users/userX/Documents/development/flutter/packages/flutter/lib/src/widgets/editable_text.dart:1405)
EditableTextState._openOrCloseInputConnectionIfNeeded (/Users/userX/Documents/development/flutter/packages/flutter/lib/src/widgets/editable_text.dart:1430)
EditableTextState._handleFocusChanged (/Users/userX/Documents/development/flutter/packages/flutter/lib/src/widgets/editable_text.dart:1686)
EditableTextState._handleFocusChanged (/Users/userX/Documents/development/flutter/packages/flutter/lib/src/widgets/editable_text.dart:0)
_Closure.call (dart:core-patch/function.dart:0)
ChangeNotifier.notifyListeners (/Users/userX/Documents/development/flutter/packages/flutter/lib/src/foundation/change_notifier.dart:206)
FocusNode._notify (/Users/userX/Documents/development/flutter/packages/flutter/lib/src/widgets/focus_manager.dart:782)
FocusManager._applyFocusChange (/Users/userX/Documents/development/flutter/packages/flutter/lib/src/widgets/focus_manager.dart:1353)
FocusManager._applyFocusChange (/Users/userX/Documents/development/flutter/packages/flutter/lib/src/widgets/focus_manager.dart:0)
_rootRun (dart:async/zone.dart:1120)
_rootRun (dart:async/zone.dart:0)
_CustomZone.run (dart:async/zone.dart:1021)
_CustomZone.runGuarded (dart:async/zone.dart:923)
_CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963)

flutter analyze output:
Analyzing pick...
No issues found! (ran in 3.7s)

flutter doctor -v output:
[✓] Flutter (Channel master, v1.10.15-pre.93, on Mac OS X 10.15 19A583, locale en-LT)
    • Flutter version 1.10.15-pre.93 at /Users/userX/Documents/development/flutter
    • Framework revision 3fea2838df (22 hours ago), 2019-10-11 16:18:00 -0700
    • Engine revision eed171ff35
    • Dart version 2.6.0 (build 2.6.0-dev.0.0 965b8cb1d8)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/userX/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)

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

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

• No issues found!

Unable to reproduce it on the stable version thus closing this issue.


text:
[web]  non-square icon are clipped

like a #28131
but only on web-platform
for example:
Column(
        children: <Widget>[
             Text("clipped"),
             Icon(LightIcons.horse)
      ],)

if wrap to fixed size container, it`s ok
Column(
        children: <Widget>[
              Text("ok",),
              Container(width: 40, child: Icon(LightIcons.horse))
      ],)

flutter doctor -v
[√] Flutter (Channel master, v1.10.15-pre.115, on Microsoft Windows [Version 10.0.18362.418], locale ru-RU)
    • Flutter version 1.10.15-pre.115 at C:\libs\flutter
    • Framework revision 134ac429cf (2 hours ago), 2019-10-14 18:50:38 -0700
    • Engine revision 66bf00bca3
    • Dart version 2.6.0 (build 2.6.0-dev.7.0 892fcf2c45)

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at C:\Users\maxnemoy\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

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

[√] Visual Studio - develop for Windows (Visual Studio CommunityВ 2019 16.2.4)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio CommunityВ 2019 version 16.2.29230.47

[√] Android Studio (version 3.4)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 38.2.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[√] VS Code (version 1.39.0)
    • VS Code at C:\Users\maxnemoy\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.5.1

[√] Connected device (4 available)
    • SM A505FN       • R58M56CMENJ     • android-arm64  • Android 9 (API 28)
    • Windows         • Windows         • windows-x64    • Microsoft Windows [Version 10.0.18362.418]
    • Chrome          • chrome          • web-javascript • Google Chrome 77.0.3865.90
    • Headless Server • headless-server • web-javascript • Flutter Tools

Fixed by #28182

authors: ferhatb maxnemoy


text:
The following assertion was thrown while dispatching notifications for FocusNode: I/flutter (27495): RenderBox was not laid out: RenderEditable#6bcc3 NEEDS-LAYOUT NEEDS-PAINT

The following assertion was thrown while dispatching notifications for FocusNode: I/flutter (27495): RenderBox was not laid out: RenderEditable#6bcc3 NEEDS-LAYOUT NEEDS-PAINT

@Troublebreaker please provide your flutter doctor -v output. Please provide  a small self-contained app that demonstrates the problem. You can include small examples inline if they're enclosed by backticks, or just provide a public link to a github "gist" - https://gist.github.com/.
Probably it's an implementation error.

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.

I have the same problem.
Exception tree:
2020-02-11 12:04:37.442899+0800 Runner[627:821570] flutter: ══╡ EXCEPTION CAUGHT BY FOUNDATION LIBRARY ╞════════════════════════════════════════════════════════
2020-02-11 12:04:37.443027+0800 Runner[627:821570] flutter: The following assertion was thrown while dispatching notifications for FocusNode:
2020-02-11 12:04:37.443077+0800 Runner[627:821570] flutter: RenderBox was not laid out: RenderEditable#63c00 NEEDS-LAYOUT NEEDS-PAINT
2020-02-11 12:04:37.443121+0800 Runner[627:821570] flutter: 'package:flutter/src/rendering/box.dart':
2020-02-11 12:04:37.443163+0800 Runner[627:821570] flutter: Failed assertion: line 1687 pos 12: 'hasSize'
2020-02-11 12:04:37.443201+0800 Runner[627:821570] flutter:
2020-02-11 12:04:37.447333+0800 Runner[627:821570] flutter: Either the assertion indicates an error in the framework itself, or we should provide substantially
2020-02-11 12:04:37.447409+0800 Runner[627:821570] flutter: more information in this error message to help you determine and fix the underlying cause.
2020-02-11 12:04:37.447451+0800 Runner[627:821570] flutter: In either case, please report this assertion by filing a bug on GitHub:
2020-02-11 12:04:37.447501+0800 Runner[627:821570] flutter:   https://github.com/flutter/flutter/issues/new?template=BUG.md
2020-02-11 12:04:37.447539+0800 Runner[627:821570] flutter:
2020-02-11 12:04:37.447576+0800 Runner[627:821570] flutter: When the exception was thrown, this was the stack:
2020-02-11 12:04:37.448877+0800 Runner[627:821570] flutter: #2      RenderBox.size (package:flutter/src/rendering/box.dart:1687:12)
2020-02-11 12:04:37.448924+0800 Runner[627:821570] flutter: #3      EditableTextState._updateSizeAndTransform (package:flutter/src/widgets/editable_text.dart:1729:40)
2020-02-11 12:04:37.448963+0800 Runner[627:821570] flutter: #4      EditableTextState._openInputConnection (package:flutter/src/widgets/editable_text.dart:1415:7)
2020-02-11 12:04:37.449002+0800 Runner[627:821570] flutter: #5      EditableTextState._openOrCloseInputConnectionIfNeeded (package:flutter/src/widgets/editable_text.dart:1441:7)
2020-02-11 12:04:37.449040+0800 Runner[627:821570] flutter: #6      EditableTextState._handleFocusChanged (package:flutter/src/widgets/editable_text.dart:1707:5)
2020-02-11 12:04:37.449078+0800 Runner[627:821570] flutter: #7      ChangeNotifier.notifyListeners (package:flutter/src/foundation/change_notifier.dart:206:21)
2020-02-11 12:04:37.450750+0800 Runner[627:821570] flutter: #8      FocusNode._notify (package:flutter/src/widgets/focus_manager.dart:808:5)
2020-02-11 12:04:37.450810+0800 Runner[627:821570] flutter: #9      FocusManager._applyFocusChange (package:flutter/src/widgets/focus_manager.dart:1401:12)
2020-02-11 12:04:37.450856+0800 Runner[627:821570] flutter: (elided 12 frames from class _AssertionError and package dart:async)
2020-02-11 12:04:37.450898+0800 Runner[627:821570] flutter:
2020-02-11 12:04:37.450938+0800 Runner[627:821570] flutter: The FocusNode sending notification was:
2020-02-11 12:04:37.450978+0800 Runner[627:821570] flutter:   FocusNode#d9873
2020-02-11 12:04:37.452350+0800 Runner[627:821570] flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════
Flutter doctor information:
[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.15.4 19E224g, locale zh-Hans-CN)
• Flutter version 1.12.13+hotfix.5 at /Users/wangyuanou/Documents/flutter
• Framework revision 27321ebbad (9 weeks ago), 2019-12-10 18:15:01 -0800
• Engine revision 2994f7e1e6
• Dart version 2.7.0
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/wangyuanou/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, 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_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.3.1, Build version 11C504
• CocoaPods version 1.9.0.beta.2
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 42.1.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] VS Code (version 1.42.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.8.1
[✓] Connected device (1 available)
• 王渊鸥的iPhone • 35e57e864e553ce162a008165d86060c8d0dab91 • ios • iOS 13.3.1
• No issues found!

@0xfeb try this one, just tried and worked for me.
https://stackoverflow.com/questions/59382235/flutter-throws-an-error-when-i-use-text-field-with-auto-focus

@MeshkaniMohammad 's link to StackOverflow answer https://stackoverflow.com/questions/59382235/flutter-throws-an-error-when-i-use-text-field-with-auto-focus works for me too.

@MeshkaniMohammad 's link to the StackOverflow question has an answer that perfectly works for me too.
https://stackoverflow.com/questions/59382235/flutter-throws-an-error-when-i-use-text-field-with-auto-focus

authors: 0xfeb BondarenkoStas Hixie KrishnaPravin MeshkaniMohammad Troublebreaker


text:
'Adding a Flutter screen to an Android app'  How to specify initialRoute with cache engine

Page URL: https://flutter.dev/docs/development/add-to-app/android/add-flutter-screen.html
Page source: https://github.com/flutter/website/tree/master/src/docs/development/add-to-app/android/add-flutter-screen.md
I read this article and found that when I use newEngine I can specify Flutter's initialRoute like this.
myButton.addOnClickListener(new OnClickListener() {
  @Override
  public void onClick(View v) {
    startActivity(
      FlutterActivity
        .withNewEngine()
        .initialRoute("/my_route")
        .build(currentActivity)
      );
  }
});

But when using cacheEngine, I didn’t find such methods. So can we use both cacheEngine and initialRoute？

@matthew-carroll can we add some clarifications to the website?
I know the API isn't ideal right now. Maybe we can just put a workaround in a tip box for now since whether we document it or not, this will be a recurring question.

To answer the questions in this thread...

So can we use both cacheEngine and initialRoute？

When configuring a FlutterActivity or FlutterFragment to use a cached FlutterEngine, no, you cannot specify an initial route. An initial route only makes sense if it's configured before starting a FlutterEngine. A cached engine, by definition, is a FlutterEngine that is already started. Therefore, the concept of an initial route does not make sense.
If you have a requirement that is not covered by a new engine or a cached engine, please let us know what use-cases you're dealing with and we can see if it makes sense to extend the API.

so we should open a new flutter page with new engine everytime?

Not necessarily. If you want to configure an initial route using the API for FlutterActivity or FlutterFragment, then yes, you need to use a new FlutterEngine. However, you don't need to use those APIs to set an initial route. If you look at the instructions for creating a cached FlutterEngine here (https://flutter.dev/docs/development/add-to-app/android/add-flutter-screen#step-3-optional-use-a-cached-flutterengine) then just before you invoke executeDartEntrypoint() you can invoke:
flutterEngine.getNavigationChannel().setInitialRoute('my/route');

@xster I'll add instructions to the website guide for setting an initial route when creating a cached engine. I'm not sure where it would be appropriate to add comments in code - we can't really comment on a method that doesn't exist. Also, you mentioned the API isn't ideal. I think this part of the API makes sense. What kind of API do you think would be preferable?

authors: Vadaski matthew-carroll xster


text:
GlowingOverscrollIndicator showLeading / showTrailing false does not work

Trying to use GlowingOverscrollIndicator widget to disable overscrolls on child widgets that scroll. Minimal example code, attempts to DISABLE both top and bottom overscrolls, but they persist. Expected behaviour is that neither top or bottom of list overscroll 'color flushes' appear when the user overscrolls ... but they still do, despite showLeading / showTrailing properties set to false.
Tests Incomplete

Also noticed the tests for this widget do NOT test these properties of showLeading / showTrailing at all. See test here:

https://github.com/flutter/flutter/blob/master/packages/flutter/test/widgets/overscroll_indicator_test.dart
Documentation Errors
Documentation says the following, but notificationPredicate is NOT required:
The showLeading, showTrailing, axisDirection, color, and notificationPredicate arguments must not be null.
http://man.hubwiz.com/docset/flutter.docset/Contents/Resources/Documents/doc/flutter/widgets/GlowingOverscrollIndicator/GlowingOverscrollIndicator.html
Documentation here also refers to an axis property that seems not to exist, as its web page goes nowhere:
http://man.hubwiz.com/docset/flutter.docset/Contents/Resources/Documents/doc/flutter/widgets/GlowingOverscrollIndicator-class.html
Minimal code example:
import 'package:flutter/material.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, this.title}) : super(key: key);

  final String title;

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

class _MyHomePageState extends State<MyHomePage> {

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        // Here we take the va, and use it to set our appbar title.
        title: Text(widget.title),
      ),
      body: Center(
        child: GlowingOverscrollIndicator(
          axisDirection: AxisDirection.up,
          // In a MaterialApp, the edge glow color is the ThemeData.accentColor but color property required
          color: Colors.red,
          notificationPredicate: (ScrollNotification notification) => notification.depth == 1,
          showLeading: false,
          showTrailing: false,
          child: ListView.builder(
          itemCount: 20,
            itemBuilder: (context, index) {
              return ListTile(
                title: Text('List Item $index'),
              );
            },
          ),
        ),
      ),
    );
  }
}

Flutter Doctor output:
[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.14.6 18G2022, locale en-AU)
    • Flutter version 1.12.13+hotfix.5 at /Users/gamma/Documents/flutter
    • Framework revision 27321ebbad (5 weeks ago), 2019-12-10 18:15:01 -0800
    • Engine revision 2994f7e1e6
    • Dart version 2.7.0

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/gamma/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • ANDROID_HOME = /Users/gamma/Library/Android/sdk
    • Java binary at: /Applications/Android Studio 3.5 Preview.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.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.3.1, Build version 11C504
    • CocoaPods version 1.8.4

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

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

[✓] Connected device (1 available)
    • Pixel 3 XL • 8A4Y0F6ED • android-arm64 • Android 10 (API 29)

• No issues found!

multiple flutter doctor -v
tahatesser@Tahas-MacBook-Pro ~ % fsd
[✓] Flutter (Channel stable, 1.22.5, on macOS 11.1 20C69 darwin-x64, locale
    en-GB)
    • Flutter version 1.22.5 at /Users/tahatesser/Code/flutter_stable
    • Framework revision 7891006299 (6 days 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/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-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Volumes/Extreme/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.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.17.0

[✓] Connected device (3 available)
    • RMX2001 (mobile)     • EUYTFEUSQSRGDA6D                     •
      android-arm64 • Android 10 (API 29)
    • Taha’s iPad (mobile) • 00008020-000255113EE8402E            • ios
      • iOS 14.3
    • iPhone 12 (mobile)   • 01685E98-F396-4EB9-9C58-8B92677E24D5 • ios
      • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)

! Doctor found issues in 1 category.

[✓] Flutter (Channel master, 1.25.0-9.0.pre.88, on macOS 11.1 20C69 darwin-x64,
    locale en-GB)
    • Flutter version 1.25.0-9.0.pre.88 at /Users/tahatesser/Code/flutter_master
    • Framework revision e24e763872 (31 minutes ago), 2020-12-16 07:33:03 -0500
    • Engine revision e9f2f0eaea
    • Dart version 2.12.0 (build 2.12.0-157.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-6915495)
    • All Android licenses accepted.

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

[✓] 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)

[!] Android Studio
    • Android Studio at /Applications/Android/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
    ✗ Android Studio not found at /Applications/Android/Contents
    • Try updating or re-installing Android Studio.

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

[✓] Connected device (5 available)
    • RMX2001 (mobile)     • EUYTFEUSQSRGDA6D                     •
      android-arm64  • Android 10 (API 29)
    • Taha’s iPad (mobile) • 00008020-000255113EE8402E            • ios
      • iOS 14.3
    • iPhone 12 (mobile)   • 01685E98-F396-4EB9-9C58-8B92677E24D5 • ios
      • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)      • macos                                • darwin-x64
      • macOS 11.1 20C69 darwin-x64
    • Chrome (web)         • chrome                               •
      web-javascript • Google Chrome 87.0.4280.88

! Doctor found issues in 1 category.
tahatesser@Tahas-MacBook-Pro ~ % flutterm doctor -v
[✓] Flutter (Channel master, 1.25.0-9.0.pre.88, on macOS 11.1 20C69 darwin-x64,
    locale en-GB)
    • Flutter version 1.25.0-9.0.pre.88 at /Users/tahatesser/Code/flutter_master
    • Framework revision e24e763872 (61 minutes ago), 2020-12-16 07:33:03 -0500
    • Engine revision e9f2f0eaea
    • Dart version 2.12.0 (build 2.12.0-157.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-6915495)
    • All Android licenses accepted.

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

[✓] 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)

[!] Android Studio
    • Android Studio at /Applications/Android/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
    ✗ Android Studio not found at /Applications/Android/Contents
    • Try updating or re-installing Android Studio.

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

[✓] Connected device (5 available)
    • RMX2001 (mobile)     • EUYTFEUSQSRGDA6D                     •
      android-arm64  • Android 10 (API 29)
    • Taha’s iPad (mobile) • 00008020-000255113EE8402E            • ios
      • iOS 14.3
    • iPhone 12 (mobile)   • 01685E98-F396-4EB9-9C58-8B92677E24D5 • ios
      • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)      • macos                                • darwin-x64
      • macOS 11.1 20C69 darwin-x64
    • Chrome (web)         • chrome                               •
      web-javascript • Google Chrome 87.0.4280.88

! Doctor found issues in 1 category.

This issue is reproducible on the latest stable and master channels, verifying on Realme 6, Android 11.

Demo
https://user-images.githubusercontent.com/104349824/216316490-b81cbb2c-b864-4c02-ab22-59d5bcbb5d7a.mp4

Sample code (be compatible with the new flutter version)
import 'package:flutter/material.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> {

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        // Here we take the va, and use it to set our appbar title.
        title: Text(widget.title),
      ),
      body: Center(
        child: GlowingOverscrollIndicator(
          axisDirection: AxisDirection.up,
          // In a MaterialApp, the edge glow color is the ThemeData.accentColor but color property required
          color: Colors.red,
          notificationPredicate: (ScrollNotification notification) => notification.depth == 1,
          showLeading: false,
          showTrailing: false,
          child: ListView.builder(
            itemCount: 20,
            itemBuilder: (context, index) {
              return ListTile(
                title: Text('List Item $index'),
              );
            },
          ),
        ),
      ),
    );
  }
}

flutter doctor -v (stable and master)
[✓] Flutter (Channel stable, 3.7.1, on macOS 13.0.1 22A400 darwin-x64, locale en-VN)
    • Flutter version 3.7.1 on channel stable at /Users/huynq/Documents/GitHub/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 7048ed95a5 (11 hours ago), 2023-02-01 09:07:31 -0800
    • Engine revision 800594f1f4
    • Dart version 2.19.1
    • DevTools version 2.20.1

[✓] 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 Dolphin 2021.3.1.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.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14B47b
    • 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 Dolphin 2021.3.1.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)

[!] Android Studio (version 2022.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
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] 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.74.3)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.58.0

[✓] Connected device (4 available)
    • RMX2001 (mobile) • EUYTFEUSQSRGDA6D                         • android-arm64  • Android 11 (API 30)
    • iPhone (mobile)  • d9a94afe2b649fef56ba0bfeb052f0f2a7dae95e • ios            • iOS 15.7.2 19H218
    • macOS (desktop)  • macos                                    • darwin-x64     • macOS 13.0.1 22A400 darwin-x64
    • Chrome (web)     • chrome                                   • web-javascript • Google Chrome 109.0.5414.119

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

! Doctor found issues in 1 category.

[!] Flutter (Channel master, 3.8.0-1.0.pre.32, on macOS 13.0.1 22A400 darwin-x64, locale en-VN)
    • Flutter version 3.8.0-1.0.pre.32 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 f9daa9aac4 (11 minutes ago), 2023-02-01 22:59:24 -0500
    • Engine revision 679c4b42e2
    • Dart version 3.0.0 (build 3.0.0-192.0.dev)
    • DevTools version 2.21.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 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 Dolphin 2021.3.1.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.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14B47b
    • 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 Dolphin 2021.3.1.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)

[!] Android Studio (version 2022.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
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] 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.74.3)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.58.0

[✓] Connected device (4 available)
    • RMX2001 (mobile) • EUYTFEUSQSRGDA6D                         • android-arm64  • Android 11 (API 30)
    • iPhone (mobile)  • d9a94afe2b649fef56ba0bfeb052f0f2a7dae95e • ios            • iOS 15.7.2 19H218
    • macOS (desktop)  • macos                                    • darwin-x64     • macOS 13.0.1 22A400 darwin-x64
    • Chrome (web)     • chrome                                   • web-javascript • Google Chrome 109.0.5414.119

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

! Doctor found issues in 2 categories.

authors: TahaTesser huycozy workerbee22