text:
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 387 pos 12: '_initialButtons == kPrimaryButton': is not true

@override
  Widget build(BuildContext context) {
    return Container(
      width: 200,
      height: 100,
    );
}

then 2 fingers simultaneously click the Container

Logs

I/HiTouch_PressGestureDetector(30551): ACTION_POINTER_DOWN.
I/flutter (30551): ══╡ EXCEPTION CAUGHT BY GESTURE LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter (30551): The following assertion was thrown while dispatching a pointer event:
I/flutter (30551): 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 357 pos 12: '_initialButtons ==
I/flutter (30551): kPrimaryButton': is not true.
I/flutter (30551):
I/flutter (30551): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter (30551): more information in this error message to help you determine and fix the underlying cause.
I/flutter (30551): In either case, please report this assertion by filing a bug on GitHub:
I/flutter (30551):   https://github.com/flutter/flutter/issues/new?template=BUG.md
I/flutter (30551):
I/flutter (30551): When the exception was thrown, this was the stack:
I/flutter (30551): #2      DragGestureRecognizer._checkStart (package:flutter/src/gestures/monodrag.dart:357:12)
I/flutter (30551): #3      DragGestureRecognizer.acceptGesture (package:flutter/src/gestures/monodrag.dart:298:7)
I/flutter (30551): #4      GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27)
I/flutter (30551): #5      _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:222:20)
I/flutter (30551): #6      _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:198:22)
I/flutter (30551): #7      _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:156:7)
I/flutter (30551): #8      _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102:7)
I/flutter (30551): #9      _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86:7)
I/flutter (30551): #13     _invoke1 (dart:ui/hooks.dart:250:10)
I/flutter (30551): #14     _dispatchPointerDataPacket (dart:ui/hooks.dart:159:5)
I/flutter (30551): (elided 5 frames from class _AssertionError and package dart:async)
I/flutter (30551):
I/flutter (30551): Event:
I/flutter (30551):   PointerUpEvent#e1106(position: Offset(106.9, 368.5), timeStamp: 283:24:16.081000, pointer: 4,
I/flutter (30551):   kind: touch, device: 1, down: false, pressure: 0.2, pressureMin: 0.0)
I/flutter (30551): Target:
I/flutter (30551):   <WidgetsFlutterBinding>
I/flutter (30551): ════════════════════════════════════════════════════════════════════════════════════════════════════
V/AudioManager(30551): playSoundEffect   effectType: 0
V/AudioManager(30551): querySoundEffectsEnabled...
I/ViewRootImpl(30551): jank_removeInvalidNode all the node in jank list is out of time
I/flutter (30551): Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 387 pos 12: '_initialButtons == kPrimaryButton': is not true.

Same here:

E/flutter (22777): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 357 pos 12: '_initialButtons == kPrimaryButton': is not true.
E/flutter (22777): #0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:40:39)
E/flutter (22777): #1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
E/flutter (22777): #2      DragGestureRecognizer._checkStart (package:flutter/src/gestures/monodrag.dart:357:12)
E/flutter (22777): #3      DragGestureRecognizer.acceptGesture (package:flutter/src/gestures/monodrag.dart:298:7)
E/flutter (22777): #4      GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27)
E/flutter (22777): #5      GestureArenaManager.release (package:flutter/src/gestures/arena.dart:199:7)
E/flutter (22777): #6      DoubleTapGestureRecognizer._reset (package:flutter/src/gestures/multitap.dart:260:44)
E/flutter (22777): #7      _rootRun (dart:async/zone.dart:1120:38)
E/flutter (22777): #8      _CustomZone.run (dart:async/zone.dart:1021:19)
E/flutter (22777): #9      _CustomZone.runGuarded (dart:async/zone.dart:923:7)
E/flutter (22777): #10     _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:963:23)
E/flutter (22777): #11     _rootRun (dart:async/zone.dart:1124:13)
E/flutter (22777): #12     _CustomZone.run (dart:async/zone.dart:1021:19)
E/flutter (22777): #13     _CustomZone.bindCallback. (dart:async/zone.dart:947:23)
E/flutter (22777): #14     Timer._createTimer. (dart:async-patch/timer_patch.dart:21:15)
E/flutter (22777): #15     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:382:19)
E/flutter (22777): #16     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:416:5)
E/flutter (22777): #17     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)
E/flutter (22777):
I/flutter (22777): Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 387 pos 12: '_initialButtons == kPrimaryButton': is not true.

Here is the code:
`import 'package:flutter/material.dart';
import 'package:multi_image_picker/multi_image_picker.dart';
class DetailPhotoScreen extends StatefulWidget {
final _image;
DetailPhotoScreen(this._image);
@override
_DetailPhotoScreenState createState() => _DetailPhotoScreenState(_image);
}
class _DetailPhotoScreenState extends State
with TickerProviderStateMixin{
final _image;
double _scale = 1.0;
Offset _translate = Offset(0.0, 0.0);
Animation _scaling;
AnimationController _controller;
@override
void initState() {
super.initState();
_controller = AnimationController(duration: Duration(milliseconds: 250), vsync: this);
_scaling = Tween<double>(begin: 0.0, end: 1.0).animate(_controller);

_scaling.addListener((){
  setState((){
    _scale = _scaling.value;
  });
});

}
_DetailPhotoScreenState(this._image);
@override
Widget build(BuildContext context) {
return Stack(
children: [
GestureDetector(
onDoubleTap: () {
setState(() {
_translate = Offset(0.0, 0.0);
_scale = 1.0;
});
},
child: Center(
child: Container(
color: Colors.black,
child: GestureDetector(
onPanUpdate: (x) {
setState(() {
_translate = _translate + x.delta;
});
},
child: Transform.translate(
offset: _translate,
child: Transform.scale(
scale: _scale,
child: AssetThumb(
asset: _image,
width: _image.originalWidth,
height: _image.originalHeight,
),
),
),
),
),
),
),
Align(
alignment: AlignmentDirectional.bottomEnd,
child: Container(
width: 50.0,
height: 50.0,
margin: EdgeInsets.only(right: 80.0, bottom: 15.0),
child: RaisedButton.icon(
onPressed: () {
setState((){
if (_scale < 10){
_scaling = Tween(begin: _scale, end: _scale2.0).animate(_controller);
_controller.reset();
_controller.forward();
}
});
},
icon: Icon(Icons.zoom_in, color: Colors.white70),
label: Text(""),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(25.0))),
color: Theme.of(context).primaryColor,
),
),
),
Align(
alignment: AlignmentDirectional.bottomEnd,
child: Container(
width: 50.0,
height: 50.0,
margin: EdgeInsets.only(right: 15.0, bottom: 15.0),
child: RaisedButton.icon(
onPressed: () {
setState((){
if (_scale > 0.1){
_scaling = Tween(begin: _scale, end: _scale0.5).animate(_controller);
_controller.reset();
_controller.forward();
}
});
},
icon: Icon(Icons.zoom_out, color: Colors.white70),
label: Text(""),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(25.0))),
color: Theme.of(context).primaryColor,
),
),
),
],
);
}
}
`

but I don't want to listener onDoubleTap.

Same here:

E/flutter (22777): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 357 pos 12: '_initialButtons == kPrimaryButton': is not true.
E/flutter (22777): #0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:40:39)
E/flutter (22777): #1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
E/flutter (22777): #2      DragGestureRecognizer._checkStart (package:flutter/src/gestures/monodrag.dart:357:12)
E/flutter (22777): #3      DragGestureRecognizer.acceptGesture (package:flutter/src/gestures/monodrag.dart:298:7)
E/flutter (22777): #4      GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27)
E/flutter (22777): #5      GestureArenaManager.release (package:flutter/src/gestures/arena.dart:199:7)
E/flutter (22777): #6      DoubleTapGestureRecognizer._reset (package:flutter/src/gestures/multitap.dart:260:44)
E/flutter (22777): #7      _rootRun (dart:async/zone.dart:1120:38)
E/flutter (22777): #8      _CustomZone.run (dart:async/zone.dart:1021:19)
E/flutter (22777): #9      _CustomZone.runGuarded (dart:async/zone.dart:923:7)
E/flutter (22777): #10     _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:963:23)
E/flutter (22777): #11     _rootRun (dart:async/zone.dart:1124:13)
E/flutter (22777): #12     _CustomZone.run (dart:async/zone.dart:1021:19)
E/flutter (22777): #13     _CustomZone.bindCallback. (dart:async/zone.dart:947:23)
E/flutter (22777): #14     Timer._createTimer. (dart:async-patch/timer_patch.dart:21:15)
E/flutter (22777): #15     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:382:19)
E/flutter (22777): #16     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:416:5)
E/flutter (22777): #17     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)
E/flutter (22777):
I/flutter (22777): Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 387 pos 12: '_initialButtons == kPrimaryButton': is not true.

Here is the code:
import 'package:flutter/material.dart';
import 'package:multi_image_picker/multi_image_picker.dart';

class DetailPhotoScreen extends StatefulWidget {
  final _image;

  DetailPhotoScreen(this._image);

  @override
  _DetailPhotoScreenState createState() => _DetailPhotoScreenState(_image);
}

class _DetailPhotoScreenState extends State<DetailPhotoScreen>
    with TickerProviderStateMixin{
  final _image;
  double _scale = 1.0;
  Offset _translate = Offset(0.0, 0.0);
  Animation<double> _scaling;
  AnimationController _controller;

  @override
  void initState() {
    super.initState();
    _controller = AnimationController(duration: Duration(milliseconds: 250), vsync: this);

    _scaling = Tween<double>(begin: 0.0, end: 1.0).animate(_controller);

    _scaling.addListener((){
      setState((){
        _scale = _scaling.value;
      });
    });
  }

  _DetailPhotoScreenState(this._image);

  @override
  Widget build(BuildContext context) {
    return Stack(
      children: <Widget>[
        GestureDetector(
          onDoubleTap: () {
            setState(() {
              _translate = Offset(0.0, 0.0);
              _scale = 1.0;
            });
          },
          child: Center(
            child: Container(
              color: Colors.black,
              child: GestureDetector(
                onPanUpdate: (x) {
                  setState(() {
                    _translate = _translate + x.delta;
                  });
                },
                child: Transform.translate(
                  offset: _translate,
                  child: Transform.scale(
                    scale: _scale,
                    child: AssetThumb(
                      asset: _image,
                      width: _image.originalWidth,
                      height: _image.originalHeight,
                    ),
                  ),
                ),
              ),
            ),
          ),
        ),
        Align(
          alignment: AlignmentDirectional.bottomEnd,
          child: Container(
            width: 50.0,
            height: 50.0,
            margin: EdgeInsets.only(right: 80.0, bottom: 15.0),
            child: RaisedButton.icon(
              onPressed: () {
                setState((){
                  if (_scale < 10){
                    _scaling = Tween<double>(begin: _scale, end: _scale*2.0).animate(_controller);
                    _controller.reset();
                    _controller.forward();
                  }
                });
              },
              icon: Icon(Icons.zoom_in, color: Colors.white70),
              label: Text(""),
              shape: RoundedRectangleBorder(
                  borderRadius: BorderRadius.all(Radius.circular(25.0))),
              color: Theme.of(context).primaryColor,
            ),
          ),
        ),
        Align(
          alignment: AlignmentDirectional.bottomEnd,
          child: Container(
            width: 50.0,
            height: 50.0,
            margin: EdgeInsets.only(right: 15.0, bottom: 15.0),
            child: RaisedButton.icon(
              onPressed: () {
                setState((){
                  if (_scale > 0.1){
                    _scaling = Tween<double>(begin: _scale, end: _scale*0.5).animate(_controller);
                    _controller.reset();
                    _controller.forward();
                  }
                });
              },
              icon: Icon(Icons.zoom_out, color: Colors.white70),
              label: Text(""),
              shape: RoundedRectangleBorder(
                  borderRadius: BorderRadius.all(Radius.circular(25.0))),
              color: Theme.of(context).primaryColor,
            ),
          ),
        ),
      ],
    );
  }
}

but I don't want to listener onDoubleTap.

Same here:

E/flutter (22777): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 357 pos 12: '_initialButtons == kPrimaryButton': is not true.
E/flutter (22777): #0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:40:39)
E/flutter (22777): #1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
E/flutter (22777): #2      DragGestureRecognizer._checkStart (package:flutter/src/gestures/monodrag.dart:357:12)
E/flutter (22777): #3      DragGestureRecognizer.acceptGesture (package:flutter/src/gestures/monodrag.dart:298:7)
E/flutter (22777): #4      GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27)
E/flutter (22777): #5      GestureArenaManager.release (package:flutter/src/gestures/arena.dart:199:7)
E/flutter (22777): #6      DoubleTapGestureRecognizer._reset (package:flutter/src/gestures/multitap.dart:260:44)
E/flutter (22777): #7      _rootRun (dart:async/zone.dart:1120:38)
E/flutter (22777): #8      _CustomZone.run (dart:async/zone.dart:1021:19)
E/flutter (22777): #9      _CustomZone.runGuarded (dart:async/zone.dart:923:7)
E/flutter (22777): #10     _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:963:23)
E/flutter (22777): #11     _rootRun (dart:async/zone.dart:1124:13)
E/flutter (22777): #12     _CustomZone.run (dart:async/zone.dart:1021:19)
E/flutter (22777): #13     _CustomZone.bindCallback. (dart:async/zone.dart:947:23)
E/flutter (22777): #14     Timer._createTimer. (dart:async-patch/timer_patch.dart:21:15)
E/flutter (22777): #15     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:382:19)
E/flutter (22777): #16     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:416:5)
E/flutter (22777): #17     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)
E/flutter (22777):
I/flutter (22777): Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 387 pos 12: '_initialButtons == kPrimaryButton': is not true.

Here is the code:
import 'package:flutter/material.dart';
import 'package:multi_image_picker/multi_image_picker.dart';

class DetailPhotoScreen extends StatefulWidget {
  final _image;

  DetailPhotoScreen(this._image);

  @override
  _DetailPhotoScreenState createState() => _DetailPhotoScreenState(_image);
}

class _DetailPhotoScreenState extends State<DetailPhotoScreen>
    with TickerProviderStateMixin{
  final _image;
  double _scale = 1.0;
  Offset _translate = Offset(0.0, 0.0);
  Animation<double> _scaling;
  AnimationController _controller;

  @override
  void initState() {
    super.initState();
    _controller = AnimationController(duration: Duration(milliseconds: 250), vsync: this);

    _scaling = Tween<double>(begin: 0.0, end: 1.0).animate(_controller);

    _scaling.addListener((){
      setState((){
        _scale = _scaling.value;
      });
    });
  }

  _DetailPhotoScreenState(this._image);

  @override
  Widget build(BuildContext context) {
    return Stack(
      children: <Widget>[
        GestureDetector(
          onDoubleTap: () {
            setState(() {
              _translate = Offset(0.0, 0.0);
              _scale = 1.0;
            });
          },
          child: Center(
            child: Container(
              color: Colors.black,
              child: GestureDetector(
                onPanUpdate: (x) {
                  setState(() {
                    _translate = _translate + x.delta;
                  });
                },
                child: Transform.translate(
                  offset: _translate,
                  child: Transform.scale(
                    scale: _scale,
                    child: AssetThumb(
                      asset: _image,
                      width: _image.originalWidth,
                      height: _image.originalHeight,
                    ),
                  ),
                ),
              ),
            ),
          ),
        ),
        Align(
          alignment: AlignmentDirectional.bottomEnd,
          child: Container(
            width: 50.0,
            height: 50.0,
            margin: EdgeInsets.only(right: 80.0, bottom: 15.0),
            child: RaisedButton.icon(
              onPressed: () {
                setState((){
                  if (_scale < 10){
                    _scaling = Tween<double>(begin: _scale, end: _scale*2.0).animate(_controller);
                    _controller.reset();
                    _controller.forward();
                  }
                });
              },
              icon: Icon(Icons.zoom_in, color: Colors.white70),
              label: Text(""),
              shape: RoundedRectangleBorder(
                  borderRadius: BorderRadius.all(Radius.circular(25.0))),
              color: Theme.of(context).primaryColor,
            ),
          ),
        ),
        Align(
          alignment: AlignmentDirectional.bottomEnd,
          child: Container(
            width: 50.0,
            height: 50.0,
            margin: EdgeInsets.only(right: 15.0, bottom: 15.0),
            child: RaisedButton.icon(
              onPressed: () {
                setState((){
                  if (_scale > 0.1){
                    _scaling = Tween<double>(begin: _scale, end: _scale*0.5).animate(_controller);
                    _controller.reset();
                    _controller.forward();
                  }
                });
              },
              icon: Icon(Icons.zoom_out, color: Colors.white70),
              label: Text(""),
              shape: RoundedRectangleBorder(
                  borderRadius: BorderRadius.all(Radius.circular(25.0))),
              color: Theme.of(context).primaryColor,
            ),
          ),
        ),
      ],
    );
  }
}

but I don't want to listener onDoubleTap.

when I click the empty area, it will throw this error.

但我只是想要显示一个文本而已，不需要加GestureDetector手势处理呢。 ，然后2个手指同时点击点击报错了， 难道在APP内每个文本显示的Text都加上GestureDetector去处理这个问题吗
------------------ 原始邮件 ------------------
发件人: "LeandroMoura3"notifications@github.com;
发送时间: 2019年7月18日(星期四) 凌晨5:05
收件人: "flutter/flutter"flutter@noreply.github.com;
抄送: "kecson"kecson@qq.com;"Manual"manual@noreply.github.com;
主题: Re: [flutter/flutter] 'package:flutter/src/gestures/monodrag.dart':Failed assertion: line 387 pos 12: '_initialButtons == kPrimaryButton': is nottrue (#36350)
Same here:
E/flutter (22777): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 357 pos 12: '_initialButtons == kPrimaryButton': is not true.
E/flutter (22777): #0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:40:39)
E/flutter (22777): #1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
E/flutter (22777): #2      DragGestureRecognizer._checkStart (package:flutter/src/gestures/monodrag.dart:357:12)
E/flutter (22777): #3      DragGestureRecognizer.acceptGesture (package:flutter/src/gestures/monodrag.dart:298:7)
E/flutter (22777): #4      GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27)
E/flutter (22777): #5      GestureArenaManager.release (package:flutter/src/gestures/arena.dart:199:7)
E/flutter (22777): #6      DoubleTapGestureRecognizer._reset (package:flutter/src/gestures/multitap.dart:260:44)
E/flutter (22777): #7      _rootRun (dart:async/zone.dart:1120:38)
E/flutter (22777): #8      _CustomZone.run (dart:async/zone.dart:1021:19)
E/flutter (22777): #9      _CustomZone.runGuarded (dart:async/zone.dart:923:7)
E/flutter (22777): #10     _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:963:23)
E/flutter (22777): #11     _rootRun (dart:async/zone.dart:1124:13)
E/flutter (22777): #12     _CustomZone.run (dart:async/zone.dart:1021:19)
E/flutter (22777): #13     _CustomZone.bindCallback. (dart:async/zone.dart:947:23)
E/flutter (22777): #14     Timer._createTimer. (dart:async-patch/timer_patch.dart:21:15)
E/flutter (22777): #15     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:382:19)
E/flutter (22777): #16     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:416:5)
E/flutter (22777): #17     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)
E/flutter (22777):
I/flutter (22777): Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 387 pos 12: '_initialButtons == kPrimaryButton': is not true.
Here is the code:
`import 'package:flutter/material.dart';
import 'package:multi_image_picker/multi_image_picker.dart';
class DetailPhotoScreen extends StatefulWidget {
final _image;
DetailPhotoScreen(this._image);
@override
_DetailPhotoScreenState createState() => _DetailPhotoScreenState(_image);
}
class _DetailPhotoScreenState extends State
with TickerProviderStateMixin{
final _image;
double _scale = 1.0;
Offset _translate = Offset(0.0, 0.0);
Animation _scaling;
AnimationController _controller;
@override
void initState() {
super.initState();
_controller = AnimationController(duration: Duration(milliseconds: 250), vsync: this);
_scaling = Tween(begin: 0.0, end: 1.0).animate(_controller); _scaling.addListener((){   setState((){     _scale = _scaling.value;   }); });
}
_DetailPhotoScreenState(this._image);
@override
Widget build(BuildContext context) {
return Stack(
children: [
GestureDetector(
onDoubleTap: () {
setState(() {
_translate = Offset(0.0, 0.0);
_scale = 1.0;
});
},
child: Center(
child: Container(
color: Colors.black,
child: GestureDetector(
onPanUpdate: (x) {
setState(() {
_translate = _translate + x.delta;
});
},
child: Transform.translate(
offset: _translate,
child: Transform.scale(
scale: _scale,
child: AssetThumb(
asset: _image,
width: _image.originalWidth,
height: _image.originalHeight,
),
),
),
),
),
),
),
Align(
alignment: AlignmentDirectional.bottomEnd,
child: Container(
width: 50.0,
height: 50.0,
margin: EdgeInsets.only(right: 80.0, bottom: 15.0),
child: RaisedButton.icon(
onPressed: () {
setState((){
if (_scale < 10){
_scaling = Tween(begin: _scale, end: _scale2.0).animate(_controller);
_controller.reset();
_controller.forward();
}
});
},
icon: Icon(Icons.zoom_in, color: Colors.white70),
label: Text(""),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(25.0))),
color: Theme.of(context).primaryColor,
),
),
),
Align(
alignment: AlignmentDirectional.bottomEnd,
child: Container(
width: 50.0,
height: 50.0,
margin: EdgeInsets.only(right: 15.0, bottom: 15.0),
child: RaisedButton.icon(
onPressed: () {
setState((){
if (_scale > 0.1){
_scaling = Tween(begin: _scale, end: _scale0.5).animate(_controller);
_controller.reset();
_controller.forward();
}
});
},
icon: Icon(Icons.zoom_out, color: Colors.white70),
label: Text(""),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(25.0))),
color: Theme.of(context).primaryColor,
),
),
),
],
);
}
}
`
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Met the same issue. happened on an iOS device, not sure about Android.
I rapidly tap a GestureDetector with two fingers. This assert will block all later touches. The user cannot continue to use the app after that.

I'm guessing it's the same issue as #37466, which I have a fix that has just been merged. Please check if the current master (or wait until the next release of your channel) fixes this problem.

Thanks, when is it released to a stable channel?

Is there any workaround before the fix released to a stable channel？

@danieldai My suggestion is to switch to dev channel for now, and beta channel once a new beta is out.  My apology for the inconvenience.

Status: Waiting for this to land on stable.

I add a long press event to solve

Status: Waiting for this to land on stable.

Hii, is this fix been landed on stable version?

@phj7777777 Yes, this will be landed in the upcoming stable that has just been frozen.

I think this issue fixed in stable 1.12.13+hotfix.5.
Did you forget to colse issue or is there still a problem?

this issue fixed in stable 1.12.13+hotfix.5.

The problem still exists - there is no scenario, but screen is getting frozen randomly. When tapping on screen we get the following log:
ViewRootImpl@131b3b9[FlutterActivity]: ViewPostIme pointer 0
ViewRootImpl@131b3b9[FlutterActivity]: ViewPostIme pointer 1
Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 407 pos 12: '_initialButtons == kPrimaryButton': is not true.
flutter doctor:
[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Linux, locale en_US.UTF-8)
• Flutter version 1.12.13+hotfix.5 at /home/artem/Development/flutter
• Framework revision 27321ebbad (8 days 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 /home/artem/Development/android-sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: /home/artem/Development/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Android Studio (version 3.5)
• Android Studio at /home/artem/Development/android-studio
• 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)
[✓] Connected device (2 available)
• Nexus 5   • 07e3ff7c0de4bdf7 • android-arm   • Android 6.0.1 (API 23)
• SM N970U1 • R58MA5ZACRT      • android-arm64 • Android 9 (API 28)
• No issues found!

@33-Elephants Can you come up with a minimal example and/or reproducible steps?

It also happened to me just now, in development, using a iPad testing device, on v1.12.13+hotfix.5.

The issue still persists and it screen freezes.
`
Flutter 1.17.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision f7a6a7906b (3 weeks ago) • 2020-05-12 18:39:00 -0700
Engine • revision 6bc433c6b6
Tools • Dart 2.8.2
(base) SW-LP10342:tribes malav.desai$ flutter doctor -v
[✓] Flutter (Channel stable, v1.17.1, on Mac OS X 10.15.4 19E287, locale en-IN)
• Flutter version 1.17.1 at /Users/malav.desai/Project/flutter
• Framework revision f7a6a7906b (3 weeks ago), 2020-05-12 18:39:00 -0700
• Engine revision 6bc433c6b6
• Dart version 2.8.2
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /Users/malav.desai/Library/Android/sdk
• Platform android-29, build-tools 29.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_212-release-1586-b4-5784211)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.5, Build version 11E608c
• CocoaPods version 1.9.1
[✓] Android Studio (version 3.6)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 44.0.2
• Dart plugin version 192.7761
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
[✓] Connected device (1 available)
• HD1901 • 917fed4e • android-arm64 • Android 10 (API 29)
• No issues found!
`

Container(
height: MediaQuery.of(context).size.height * 0.5,
child: CarouselSlider(
options: CarouselOptions(
viewportFraction: 0.75,
aspectRatio: 4 / 5,
height: MediaQuery.of(context).size.height,
enlargeCenterPage: true,
autoPlay: false,
enableInfiniteScroll: false,
),
items: state.user.userTribes
.map(
(UserTribe userTribe) => Card(
shape: RoundedRectangleBorder(
borderRadius: CustomTheme.circular()),
child: GestureDetector(
                              dragStartBehavior: DragStartBehavior.start,
                              onTap: () async {
                                await userRepository.updateUserTribeId(
                                  userTribe.user.id,
                                  userTribe.tribe.id,
                                );
                                Navigator.of(context).push(
                                  MaterialPageRoute(
                                    builder: (context) =>
                                        BlocProvider<ConversationBloc>(
                                      create: (context) =>
                                          ConversationBloc()
                                            ..add(
                                              GetConversation(
                                                userId: userTribe.user.id,
                                                tribeId:
                                                    userTribe.tribe.id,
                                              ),
                                            ),
                                      child: ConversationScreen(),
                                    ),
                                  ),
                                );
                              },
                              child: Stack(
                                children: <Widget>[
                                  Container(
                                    decoration: BoxDecoration(
                                      borderRadius:
                                          CustomTheme.circular(),
                                      image: DecorationImage(
                                        fit: BoxFit.cover,
                                        image: userTribe.tribe.imageUrl ==
                                                null
                                            ? AssetImage(
                                                "assets/images/wallpaper.png")
                                            : NetworkImage(
                                                userTribe.tribe.imageUrl),
                                      ),
                                    ),
                                  ),
                                  Container(
                                    width: double.infinity,
                                    decoration: BoxDecoration(
                                      borderRadius:
                                          CustomTheme.circular(),
                                      gradient: LinearGradient(
                                          begin: Alignment.topLeft,
                                          end: Alignment.bottomRight,
                                          colors: [
                                            Colors.grey.shade900,
                                            Colors.transparent
                                          ],
                                          stops: [
                                            0.0,
                                            1.0
                                          ]),
                                    ),
                                    child: Padding(
                                      padding: EdgeInsets.all(20),
                                      child: Column(
                                        crossAxisAlignment:
                                            CrossAxisAlignment.start,
                                        children: <Widget>[
                                          Text(
                                            userTribe.tribe.name,
                                            style: Theme.of(context)
                                                .textTheme
                                                .headline1,
                                          ),
                                          SizedBox(height: 10),
                                          Text(
                                            userTribe.tribe.hintText,
                                            style: Theme.of(context)
                                                .textTheme
                                                .bodyText1,
                                          ),

                                        ],
                                      ),
                                    ),
                                  ),

                                ],
                              ),
                            ),
                          ),
                        )
                        .toList(),
                  ),
                ),

`
Container(
height: MediaQuery.of(context).size.height * 0.5,
child: CarouselSlider(
options: CarouselOptions(
viewportFraction: 0.75,
aspectRatio: 4 / 5,
height: MediaQuery.of(context).size.height,
enlargeCenterPage: true,
autoPlay: false,
enableInfiniteScroll: false,
),
items: state.user.userTribes
.map(
(UserTribe userTribe) => Card(
shape: RoundedRectangleBorder(
borderRadius: CustomTheme.circular()),
child: GestureDetector(
                              dragStartBehavior: DragStartBehavior.start,
                              onTap: () async {
                                await userRepository.updateUserTribeId(
                                  userTribe.user.id,
                                  userTribe.tribe.id,
                                );
                                Navigator.of(context).push(
                                  MaterialPageRoute(
                                    builder: (context) =>
                                        BlocProvider<ConversationBloc>(
                                      create: (context) =>
                                          ConversationBloc()
                                            ..add(
                                              GetConversation(
                                                userId: userTribe.user.id,
                                                tribeId:
                                                    userTribe.tribe.id,
                                              ),
                                            ),
                                      child: ConversationScreen(),
                                    ),
                                  ),
                                );
                              },
                              child: Stack(
                                children: <Widget>[
                                  Container(
                                    decoration: BoxDecoration(
                                      borderRadius:
                                          CustomTheme.circular(),
                                      image: DecorationImage(
                                        fit: BoxFit.cover,
                                        image: userTribe.tribe.imageUrl ==
                                                null
                                            ? AssetImage(
                                                "assets/images/wallpaper.png")
                                            : NetworkImage(
                                                userTribe.tribe.imageUrl),
                                      ),
                                    ),
                                  ),
                                  Container(
                                    width: double.infinity,
                                    decoration: BoxDecoration(
                                      borderRadius:
                                          CustomTheme.circular(),
                                      gradient: LinearGradient(
                                          begin: Alignment.topLeft,
                                          end: Alignment.bottomRight,
                                          colors: [
                                            Colors.grey.shade900,
                                            Colors.transparent
                                          ],
                                          stops: [
                                            0.0,
                                            1.0
                                          ]),
                                    ),
                                    child: Padding(
                                      padding: EdgeInsets.all(20),
                                      child: Column(
                                        crossAxisAlignment:
                                            CrossAxisAlignment.start,
                                        children: <Widget>[
                                          Text(
                                            userTribe.tribe.name,
                                            style: Theme.of(context)
                                                .textTheme
                                                .headline1,
                                          ),
                                          SizedBox(height: 10),
                                          Text(
                                            userTribe.tribe.hintText,
                                            style: Theme.of(context)
                                                .textTheme
                                                .bodyText1,
                                          ),

                                        ],
                                      ),
                                    ),
                                  ),

                                ],
                              ),
                            ),
                          ),
                        )
                        .toList(),
                  ),
                ),

`

not yet 1.17

i have same issue. Are there any bug fix or workaround solution ?
flutter: ══╡ EXCEPTION CAUGHT BY GESTURE LIBRARY ╞═══════════════════════════════════════════════════════════
flutter: The following assertion was thrown while routing a pointer event:
flutter: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 416 pos 12: '_initialButtons ==
flutter: kPrimaryButton': is not true.
flutter:
flutter: Either the assertion indicates an error in the framework itself, or we should provide substantially
flutter: more information in this error message to help you determine and fix the underlying cause.
flutter: In either case, please report this assertion by filing a bug on GitHub:
flutter:   https://github.com/flutter/flutter/issues/new?template=BUG.md
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #2      DragGestureRecognizer._checkEnd
package:flutter/…/gestures/monodrag.dart:416
flutter: #3      DragGestureRecognizer.didStopTrackingLastPointer
package:flutter/…/gestures/monodrag.dart:358
flutter: #4      OneSequenceGestureRecognizer.stopTrackingPointer
package:flutter/…/gestures/recognizer.dart:343
flutter: #5      DragGestureRecognizer._giveUpPointer
package:flutter/…/gestures/monodrag.dart:367
flutter: #6      DragGestureRecognizer.handleEvent
package:flutter/…/gestures/monodrag.dart:256
flutter: #7      PointerRouter._dispatch
package:flutter/…/gestures/pointer_router.dart:78
igunes@igunes ios % flutter doctor -v
[✓] Flutter (Channel stable, 1.20.3, on Mac OS X 10.15.6 19G2021, locale en-TR)
• Flutter version 1.20.3 at /users/igunes/flutter
• Framework revision 216dee60c0 (13 days ago), 2020-09-01 12:24:47 -0700
• Engine revision d1bc06f032
• Dart version 2.9.2
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
• Android SDK at /Users/igunes/Library/Android/sdk
• Platform android-30, build-tools 30.0.0
• Java binary at: /Applications/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.7)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.7, Build version 11E801a
• CocoaPods version 1.9.3
[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 48.1.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6222593)
[✓] VS Code (version 1.49.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.14.1
[✓] Connected device (1 available)
• Mustafa’s iPad (mobile) • ec9cc0171e4772f3dbca05f0c732828429310826 • ios •
iOS 13.5.1

I have the same issue too.
════════ Exception caught by gesture library ═══════════════════════════════════
The following assertion was thrown while dispatching a pointer event:
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 379 pos 12: '_initialButtons == kPrimaryButton': is not true.
Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=BUG.md

When the exception was thrown, this was the stack
#2      DragGestureRecognizer._checkStart
package:flutter/…/gestures/monodrag.dart
#3      DragGestureRecognizer.acceptGesture
package:flutter/…/gestures/monodrag.dart
#4      GestureArenaManager.sweep
package:flutter/…/gestures/arena.dart
#5      GestureBinding.handleEvent
package:flutter/…/gestures/binding.dart
#6      GestureBinding.dispatchEvent
package:flutter/…/gestures/binding.dart
...
Event: PointerUpEvent#d0714(position: Offset(26.0, 242.3))
position: Offset(26.0, 242.3)
Target:
════════════════════════════════════════════════════════════════════════════════
══╡ EXCEPTION CAUGHT BY GESTURE LIBRARY ╞═══════════════════════════════════════════════════════════
The following assertion was thrown while dispatching a pointer event:
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 379 pos 12: '_initialButtons ==
kPrimaryButton': is not true.
Either the assertion indicates an error in the framework itself, or we should provide substantially
more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=BUG.md
When the exception was thrown, this was the stack:
#2      DragGestureRecognizer._checkStart
package:flutter/…/gestures/monodrag.dart
#3      DragGestureRecognizer.acceptGesture
package:flutter/…/gestures/monodrag.dart
#4      GestureArenaManager.sweep
package:flutter/…/gestures/arena.dart
#5      GestureBinding.handleEvent
package:flutter/…/gestures/binding.dart
#6      GestureBinding.dispatchEvent
package:flutter/…/gestures/binding.dart
#7      GestureBinding._handlePointerEvent
package:flutter/…/gestures/binding.dart
#8      GestureBinding._flushPointerEventQueue
package:flutter/…/gestures/binding.dart
#9      GestureBinding._handlePointerDataPacket
package:flutter/…/gestures/binding.dart
#13     _invoke1  (dart:ui/hooks.dart:267:10)
#14     _dispatchPointerDataPacket  (dart:ui/hooks.dart:176:5)
(elided 5 frames from class _AssertionError and dart:async)
Event:
PointerUpEvent#d0714(position: Offset(26.0, 242.3))
Target:

════════════════════════════════════════════════════════════════════════════════════════════════════
Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════ Exception caught by gesture library ═══════════════════════════════════
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════════════════════════════════════════════════════════════════════════════
Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════ Exception caught by gesture library ═══════════════════════════════════
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════════════════════════════════════════════════════════════════════════════
Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════ Exception caught by gesture library ═══════════════════════════════════
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════════════════════════════════════════════════════════════════════════════
Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════ Exception caught by gesture library ═══════════════════════════════════
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════════════════════════════════════════════════════════════════════════════
Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════ Exception caught by gesture library ═══════════════════════════════════
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════════════════════════════════════════════════════════════════════════════
Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════ Exception caught by gesture library ═══════════════════════════════════
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════════════════════════════════════════════════════════════════════════════
Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════ Exception caught by gesture library ═══════════════════════════════════
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════════════════════════════════════════════════════════════════════════════
Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════ Exception caught by gesture library ═══════════════════════════════════
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════════════════════════════════════════════════════════════════════════════
Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════ Exception caught by gesture library ═══════════════════════════════════
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════════════════════════════════════════════════════════════════════════════
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 1.20.3, on Microsoft Windows [Version 10.0.18363.1082], locale de-DE)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
[√] Android Studio (version 3.5)
[√] VS Code, 64-bit edition (version 1.49.0)
[√] Connected device (1 available)
• No issues found!

i have same issue. Are there any bug fix or workaround solution ? When i use tabbar like dummy user with two or three finger (gesture) it freeze all tab bar views.
flutter: ══╡ EXCEPTION CAUGHT BY GESTURE LIBRARY ╞═══════════════════════════════════════════════════════════
flutter: The following assertion was thrown while routing a pointer event:
flutter: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 416 pos 12: '_initialButtons ==
flutter: kPrimaryButton': is not true.
flutter:
flutter: Either the assertion indicates an error in the framework itself, or we should provide substantially
flutter: more information in this error message to help you determine and fix the underlying cause.
flutter: In either case, please report this assertion by filing a bug on GitHub:
flutter: https://github.com/flutter/flutter/issues/new?template=BUG.md
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #2 DragGestureRecognizer._checkEnd
package:flutter/…/gestures/monodrag.dart:416
flutter: #3 DragGestureRecognizer.didStopTrackingLastPointer
package:flutter/…/gestures/monodrag.dart:358
flutter: #4 OneSequenceGestureRecognizer.stopTrackingPointer
package:flutter/…/gestures/recognizer.dart:343
flutter: #5 DragGestureRecognizer._giveUpPointer
package:flutter/…/gestures/monodrag.dart:367
flutter: #6 DragGestureRecognizer.handleEvent
package:flutter/…/gestures/monodrag.dart:256
flutter: #7 PointerRouter._dispatch
package:flutter/…/gestures/pointer_router.dart:78
igunes@igunes ios % flutter doctor -v
[✓] Flutter (Channel stable, 1.20.3, on Mac OS X 10.15.6 19G2021, locale en-TR)
• Flutter version 1.20.3 at /users/igunes/flutter
• Framework revision 216dee6 (13 days ago), 2020-09-01 12:24:47 -0700
• Engine revision d1bc06f032
• Dart version 2.9.2
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
• Android SDK at /Users/igunes/Library/Android/sdk
• Platform android-30, build-tools 30.0.0
• Java binary at: /Applications/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.7)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.7, Build version 11E801a
• CocoaPods version 1.9.3
[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 48.1.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6222593)
[✓] VS Code (version 1.49.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.14.1
[✓] Connected device (1 available)
• Mustafa’s iPad (mobile) • ec9cc0171e4772f3dbca05f0c732828429310826 • ios •
iOS 13.5.1

I am starting to get this error too. Happens when I scroll the page quickly with the mouse pointer (seeing this on iOS14 Simulator). Error is:
══╡ EXCEPTION CAUGHT BY GESTURE LIBRARY ╞═══════════════════════════════════════════════════════════
The following assertion was thrown while dispatching a pointer event:
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 379 pos 12: '_initialButtons ==
kPrimaryButton': is not true.
Either the assertion indicates an error in the framework itself, or we should provide substantially
more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=BUG.md
When the exception was thrown, this was the stack:
#2      DragGestureRecognizer._checkStart
package:flutter/…/gestures/monodrag.dart:379
#3      DragGestureRecognizer.acceptGesture
package:flutter/…/gestures/monodrag.dart:310
#4      GestureArenaManager.sweep
package:flutter/…/gestures/arena.dart:158
#5      GestureBinding.handleEvent
package:flutter/…/gestures/binding.dart:224
#6      GestureBinding.dispatchEvent
package:flutter/…/gestures/binding.dart:200
#7      GestureBinding._handlePointerEvent
package:flutter/…/gestures/binding.dart:158
#8      GestureBinding._flushPointerEventQueue
package:flutter/…/gestures/binding.dart:104
#9      GestureBinding._handlePointerDataPacket
package:flutter/…/gestures/binding.dart:88
#13     _invoke1  (dart:ui/hooks.dart:267:10))
#14     _dispatchPointerDataPacket  (dart:ui/hooks.dart:176:5))
(elided 5 frames from class _AssertionError and dart:async)
Event:
  PointerUpEvent#73670(position: Offset(0.0, 812.0))
Target:
  <WidgetsFlutterBinding>
════════════════════════════════════════════════════════════════════════════════════════════════════

════════ Exception caught by gesture library ═══════════════════════════════════
The following assertion was thrown while dispatching a pointer event:

and flutter doctor:
[✓] Flutter (Channel stable, 1.20.4, on Mac OS X 10.15.7 19H2, locale en-GB)
• Flutter version 1.20.4 at /Applications/flutter
• Framework revision fba99f6cf9 (4 weeks ago), 2020-09-14 15:32:52 -0700
• Engine revision d1bc06f032
• Dart version 2.9.2
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/alexblack/Library/Android/sdk
• 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 12.0.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.0.1, Build version 12A7300
• CocoaPods version 1.9.3
[✓] 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.50.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.9.1
[✓] Connected device (1 available)
• iPhone 11 Pro (mobile) • 5CFD3069-FA5A-4B04-9E94-E80AFB173593 • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-0 (simulator)

Same issue here. How to solve it? Help!!

Started having the same issue on iOS 14 simulator. For me it happens consistently when using a CustomScrollView with a SliverAppBar, either by just scrolling or when tapping the back button after having scrolled.
══╡ EXCEPTION CAUGHT BY GESTURE LIBRARY ╞═══════════════════════════════════════════════════════════
The following assertion was thrown while routing a pointer event:
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 435 pos 12: '_initialButtons ==
kPrimaryButton': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially
more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=BUG.md

When the exception was thrown, this was the stack:
#2      DragGestureRecognizer._checkEnd
package:flutter/…/gestures/monodrag.dart
#3      DragGestureRecognizer.didStopTrackingLastPointer
package:flutter/…/gestures/monodrag.dart
#4      OneSequenceGestureRecognizer.stopTrackingPointer
package:flutter/…/gestures/recognizer.dart
#5      DragGestureRecognizer._giveUpPointer
package:flutter/…/gestures/monodrag.dart
#6      DragGestureRecognizer.handleEvent
package:flutter/…/gestures/monodrag.dart
#7      PointerRouter._dispatch
package:flutter/…/gestures/pointer_router.dart
#8      PointerRouter._dispatchEventToRoutes.<anonymous closure>
package:flutter/…/gestures/pointer_router.dart
#9      _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:377:8)
#10     PointerRouter._dispatchEventToRoutes
package:flutter/…/gestures/pointer_router.dart
#11     PointerRouter.route
package:flutter/…/gestures/pointer_router.dart
#12     GestureBinding.handleEvent
package:flutter/…/gestures/binding.dart
#13     GestureBinding.dispatchEvent
package:flutter/…/gestures/binding.dart
#14     RendererBinding.dispatchEvent
package:flutter/…/rendering/binding.dart
#15     GestureBinding._handlePointerEvent
package:flutter/…/gestures/binding.dart
#16     GestureBinding._flushPointerEventQueue
package:flutter/…/gestures/binding.dart
#17     GestureBinding._handlePointerDataPacket
package:flutter/…/gestures/binding.dart
#21     _invoke1 (dart:ui/hooks.dart:265:10)
#22     _dispatchPointerDataPacket (dart:ui/hooks.dart:174:5)
(elided 5 frames from class _AssertionError and dart:async)

router: Instance of 'PointerRouter'
route: Closure: (PointerEvent) => void from Function 'handleEvent':.
event: PointerMoveEvent#c9147(position: Offset(0.0, 812.0))
════════════════════════════════════════════════════════════════════════════════════════════════════

@LorTos This issue is happening to me too!

This is happening to me in the simulator as well.

This issue is happening to me too!

Same here, ios 14 Emulator and I'm getting this error on a SliverAppBar inside a NestedScrollView. I didn' still try on a real device

Why this issue is closed if it's not fixed? I face this problem at Flutter (Channel stable, 1.22.4, on Microsoft Windows [versão 10.0.18363.1198], locale pt-BR)
════════ Exception caught by gesture library ═══════════════════════════════════════════════════════
The following _CastError was thrown while dispatching a pointer event:
Null check operator used on a null value

When the exception was thrown, this was the stack:
#0      DragGestureRecognizer.acceptGesture (package:flutter/src/gestures/monodrag.dart:321:60)
#1      GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:157:27)
#2      GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:362:20)
#3      GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:338:22)
#4      RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:267:11)
...
Event: PointerUpEvent#8ccd7(position: Offset(190.5, 166.8))
  position: Offset(190.5, 166.8)
Target: <WidgetsFlutterBinding>
════════════════════════════════════════════════════════════════════════════════════════════════════
D/ViewRootImpl@6393b6f[MainActivity]( 2551): ViewPostIme pointer 0

════════ Exception caught by gesture library ═══════════════════════════════════════════════════════
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 435 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════════════════════════════════════════════════════════════════════════════════════════════════
D/ViewRootImpl@6393b6f[MainActivity]( 2551): ViewPostIme pointer 1
D/ViewRootImpl@6393b6f[MainActivity]( 2551): ViewPostIme pointer 0

════════ Exception caught by gesture library ═══════════════════════════════════════════════════════
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 435 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════════════════════════════════════════════════════════════════════════════════════════════════
D/ViewRootImpl@6393b6f[MainActivity]( 2551): ViewPostIme pointer 1

Why is this closed? Just got into this problem.
1.22.5 • channel stable

Why is this closed? Just got into this problem.
1.22.5 • channel stable

problem still exist even after last upgrade to version 1.22.6

problem still exist even after last upgrade to version 1.22.6

I'm facing the same problem on flutter 1.22.4. iOS simulator 14.4 iPhone 12 Pro Max.

I'm aware that many people are still encountering related crashes and this definitely needs fixing. Another ticket has been opened in https://github.com/flutter/flutter/issues/75061 where some people has posted some investigations. For now I myself am too occupied on another project to investigate this issue, but I still encourage everyone to post reproduction and/or investigation into the new issue, if any, and I'll come back as soon as possible. My apology for not being able to drive it right now.

same issue with me

@niypoo Can you check which version you're on with flutter --version? This should have landed to 2.0.2 (https://github.com/flutter/flutter/commit/8962f6dc68ec8e2206ac2fa874da4a453856c7d3)

Yep, same here with the most recent Flutter version..

Same here with Android emulator

authors: 33-Elephants AndrsDev DIVINER-onlys FickleLife LeandroMoura3 LorTos S1nPur1ty TheFedex87 VictorCamargo akshaybengani caiphaav danieldai diego-lipinski-de-castro dkwingsmt flutterfrank furkankurt kecson lbjlsy marcellocamara masashi-sutou matehat mohamadalmoayad niypoo phj7777777 razvangeangu rockingdice yourshinsuke ztigunes


text:
flutter_gallery_ios32__transition_perf 90th_percentile_frame_build_time_millis regressed

It increased from 7ms to 9ms from https://github.com/flutter/flutter/commit/a11d73148c90dd2980f0ab5a2d88159269937e3a
Similar benchmarks also regressed:

flutter_gallery__transition_perf 90th_percentile_frame_build_time_millis
flutter_gallery_ios__transition_perf 99th_percentile_frame_build_time_millis

CC @gspencergoog

I am suspicious of this benchmark change: Golem seems to think that this change also reduced the hello world application size by a lot (and I just can't see that being true), and improved some other things. See here.
I'm happy to revert this and see if it truly is problematic, however.

Note that if Golem is right, this is likely to cause a 3-5% increase in hello_world size, and a 15% reduction in velocity_tracker_bench_aot_frontend (Moto G4).

Thank you Greg for the quick reaction! Can you reproduce any performance regressions (90th build time, hello_world size, etc.) locally using either Moto G4 or iPhone 6S?

I've been trying to reproduce this on a Moto G4 and have been able to reproduce a smaller change (at least for flutter_gallery__transition_perf, both for the average and the 90th percentile), of about 7%.
I'm stepping through my changes to see what is causing the regression.

It's nice to hear that it can be reproduced. LGTM on the revert.

I recommend removing the TODAY status of this issue.  Reverting the change would cause more of a regression.

Hmm, actually I was reading the Golem results wrong (compile time will regress by 15%, not run time).  Proceeding with the revert.

source: gharchive/issue

authors: gspencergoog liyuqian

repo: flutter/flutter

license_type: permissive

license_source: github-api


text:
run flutter iOS simulator failed

I am using latest Flutter sable version, I am trying to run flutter on my iOS Simulator, I tried iPhone 11 pro max, and iPhone 8 plus , can't be running and always error
fluter run --verbose

what I got is :
[  +56 ms] Could not build the application for the simulator.
[   +2 ms] Error launching application on iPhone 8 Plus.

throwToolExit (package:flutter_tools/src/base/common.dart:28:3)
#1      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:509:7)
<asynchronous suspension>
#2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:615:18)
#3      _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:73:64)
#4      _rootRunUnary (dart:async/zone.dart:1134:38)
#5      _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#6      _FutureListener.handleValue (dart:async/future_impl.dart:139:18)
#7      Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:680:45)
#8      Future._propagateToListeners (dart:async/future_impl.dart:709:32)
#9      Future._completeWithValue (dart:async/future_impl.dart:524:5)
#10     _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:32:15)
#11     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:290:13)
#12     RunCommand.usageValues (package:flutter_tools/src/commands/run.dart)
#13     _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:73:64)
#14     _rootRunUnary (dart:async/zone.dart:1134:38)
#15     _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#16     _FutureListener.handleValue (dart:async/future_impl.dart:139:18)
#17     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:680:45)
#18     Future._propagateToListeners (dart:async/future_impl.dart:709:32)
#19     Future._completeWithValue (dart:async/future_impl.dart:524:5)
#20     _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:32:15)
#21     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:290:13)
#22     IosProject.isSwift (package:flutter_tools/src/project.dart)
#23     _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:73:64)
#24     _rootRunUnary (dart:async/zone.dart:1134:38)
#25     _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#26     _FutureListener.handleValue (dart:async/future_impl.dart:139:18)
#27     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:680:45)
#28     Future._propagateToListeners (dart:async/future_impl.dart:709:32)
#29     Future._completeWithValue (dart:async/future_impl.dart:524:5)
#30     _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:32:15)
#31     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:290:13)
#32     IosProject.buildSettings (package:flutter_tools/src/project.dart)
#33     _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:73:64)
#34     _rootRunUnary (dart:async/zone.dart:1134:38)
#35     _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#36     _FutureListener.handleValue (dart:async/future_impl.dart:139:18)
#37     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:680:45)
#38     Future._propagateToListeners (dart:async/future_impl.dart:709:32)
#39     Future._completeWithValue (dart:async/future_impl.dart:524:5)
#40     _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:32:15)
#41     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:290:13)
#42     XcodeProjectInterpreter.getBuildSettings (package:flutter_tools/src/ios/xcodeproj.dart)
#43     _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:73:64)
#44     _rootRunUnary (dart:async/zone.dart:1134:38)
#45     _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#46     _FutureListener.handleValue (dart:async/future_impl.dart:139:18)
#47     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:680:45)
#48     Future._propagateToListeners (dart:async/future_impl.dart:709:32)
#49     Future._completeWithValue (dart:async/future_impl.dart:524:5)
#50     _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:32:15)
#51     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:290:13)
#52     _DefaultProcessUtils.run (package:flutter_tools/src/base/process.dart)
#53     _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:73:64)
#54     _rootRunUnary (dart:async/zone.dart:1134:38)
#55     _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#56     _FutureListener.handleValue (dart:async/future_impl.dart:139:18)
#57     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:680:45)
#58     Future._propagateToListeners (dart:async/future_impl.dart:709:32)
#59     Future._completeWithValue (dart:async/future_impl.dart:524:5)
#60     Future.wait.<anonymous closure> (dart:async/future.dart:400:22)
#61     _rootRunUnary (dart:async/zone.dart:1134:38)
#62     _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#63     _FutureListener.handleValue (dart:async/future_impl.dart:139:18)
#64     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:680:45)
#65     Future._propagateToListeners (dart:async/future_impl.dart:709:32)
#66     Future._complete (dart:async/future_impl.dart:514:7)
#67     _BufferingStreamSubscription.asFuture.<anonymous closure> (dart:async/stream_impl.dart:206:14)
#68     _rootRun (dart:async/zone.dart:1122:38)
#69     _CustomZone.run (dart:async/zone.dart:1023:19)
#70     _CustomZone.runGuarded (dart:async/zone.dart:925:7)
#71     _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.dart:391:13)
#72     _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:401:15)
#73     _BufferingStreamSubscription._close (dart:async/stream_impl.dart:285:7)
#74     _SinkTransformerStreamSubscription._close (dart:async/stream_transformers.dart:98:11)
#75     _EventSinkWrapper.close (dart:async/stream_transformers.dart:25:11)
#76     _StringAdapterSink.close (dart:convert/string_conversion.dart:251:11)
#77     _Utf8ConversionSink.close (dart:convert/string_conversion.dart:302:20)
#78     _ConverterStreamEventSink.close (dart:convert/chunked_conversion.dart:82:18)
#79     _SinkTransformerStreamSubscription._handleDone (dart:async/stream_transformers.dart:143:24)
#80     _rootRun (dart:async/zone.dart:1122:38)
#81     _CustomZone.run (dart:async/zone.dart:1023:19)
#82     _CustomZone.runGuarded (dart:async/zone.dart:925:7)
#83     _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.dart:391:13)
#84     _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:401:15)
#85     _BufferingStreamSubscription._close (dart:async/stream_impl.dart:285:7)
#86     _SyncStreamControllerDispatch._sendDone (dart:async/stream_controller.dart:774:19)
#87     _StreamController._closeUnchecked (dart:async/stream_controller.dart:631:7)
#88     _StreamController.close (dart:async/stream_controller.dart:624:5)
#89     _Socket._onData (dart:io-patch/socket_patch.dart:1858:21)
#90     _rootRunUnary (dart:async/zone.dart:1138:13)
#91     _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#92     _CustomZone.runUnaryGuarded (dart:async/zone.dart:933:7)
#93     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:338:11)
#94     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:265:7)
#95     _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:766:19)
#96     _StreamController._add (dart:async/stream_controller.dart:642:7)
#97     _StreamController.add (dart:async/stream_controller.dart:588:5)
#98     new _RawSocket.<anonymous closure> (dart:io-patch/socket_patch.dart:1406:35)
#99     _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:912:18)
#100    _microtaskLoop (dart:async/schedule_microtask.dart:43:21)
#101    _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5)
#102    _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#103    _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:175:5)

can provide the output of flutter doctor

here is the
flutter doctor --verbose

[✓] Flutter (Channel stable, v1.12.13+hotfix.8-pre.5, on Mac OS X 10.14.6 18G4032, locale en-ID)
    • Flutter version 1.12.13+hotfix.8-pre.5 at /Users/hoomacbuk/flutter
    • Framework revision f139b11009 (13 days ago), 2020-03-30 13:57:30 -0700
    • Engine revision af51afceb8
    • Dart version 2.7.2

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/hoomacbuk/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_212-release-1586-b4-5784211)
    • All Android licenses accepted.

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

[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[!] IntelliJ IDEA Community Edition (version 2019.2.4)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.dev/intellij-setup/#installing-the-plugins

[✓] Connected device (1 available)
    • iPhone 11 Pro Max • 01FA94F6-1F98-40D7-8DCB-90C310FD8737 • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-3 (simulator)

Hi @harmnot
This isn't the latest stable and latest XCode
[✓] Flutter (Channel stable, v1.12.13+hotfix.8-pre.5, on Mac OS X 10.14.6 18G4032, locale en-ID)
    • Flutter version 1.12.13+hotfix.8-pre.5 at /Users/hoomacbuk/flutter
    • Framework revision f139b11009 (13 days ago), 2020-03-30 13:57:30 -0700
    • Engine revision af51afceb8
    • Dart version 2.7.2

Can you please upgrade to latest stable and  please provide your flutter doctor -v and flutter run --verbose?
Thank you

I want into the folder flutter which I clone and then git pull origin stable,
how to upgrade then from that directory ??? and what is the latest stable version ?
and I can't upgrade the latest Xcode because I am still in Mojave and to upgrade the latest Xcode I must upgrade to Catalina

Hi @harmnot
Please upgrade to latest stable
Execute the following commands
flutter channel stable
flutter upgrade flutter
then  can you please provide your flutter doctor -v and try running the app flutter run --verbose?
Thank you

@TahaTesser  I did ,
[✓] Flutter (Channel stable, v1.12.13+hotfix.9, on Mac OS X 10.15.4 19E287, locale en-ID)
    • Flutter version 1.12.13+hotfix.9 at /Users/hoomacbuk/flutter
    • Framework revision f139b11009 (3 weeks ago), 2020-03-30 13:57:30 -0700
    • Engine revision af51afceb8
    • Dart version 2.7.2

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/hoomacbuk/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_212-release-1586-b4-5784211)
    • All Android licenses accepted.

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

[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[✓] Connected device (1 available)
    • iPhone SE (2nd generation) • 04DAB2D7-C4A3-4A80-B354-FA7B79A33376 • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-4 (simulator)

I think this is issue of flutter,
for more log check here
https://slexy.org/raw/s21WHL8d9L?token=219f2a48abb74cff7d8032259fdf6e181ea20afb6bf21f49bda96e940fbfa25e&ts=1587173789

another error when I create another project
Xcode's output:
↳
    /Users/hoomacbuk/Documents/do-flutter/u/transaction/build/ios/Debug-iphonesimulator/Runner.app: resource fork, Finder information, or similar detritus not allowed
    Command CodeSign failed with a nonzero exit code
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description
    warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the Runner editor. (in target 'Runner' from project 'Runner')

Could not build the application for the simulator.
Error launching application on iPhone SE (2nd generation).

Hi @harmnot
This indicates, you don't have team selected in Signing & Capabilities in XCode
    warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the Runner editor. (in target 'Runner' from project 'Runner')

Please follow Build and release an iOS app
Thank you

authors: TahaTesser bhaveshdaswani93 harmnot


text:
[tool_crash] Invalid argument(s): Cannot find executable for C:\Users\gtatt\s11salon\android\gradlew.bat.

Command
flutter --no-color run --machine --track-widget-creation --device-id=192.168.146.102:5555 lib\main.dart

Steps to Reproduce

...
...
...

Logs
ArgumentError: Invalid argument(s): Cannot find executable for C:\Users\gtatt\s11salon\android\gradlew.bat.
#0      _getExecutable (package:process/src/interface/local_process_manager.dart:127:5)
#1      LocalProcessManager.start (package:process/src/interface/local_process_manager.dart:43:30)
#2      _DefaultProcessUtils.start (package:flutter_tools/src/base/process.dart:462:28)
#3      _DefaultProcessUtils.stream (package:flutter_tools/src/base/process.dart:480:35)
#4      buildGradleApp (package:flutter_tools/src/android/gradle.dart:384:35)
#5      _AndroidBuilderImpl.buildApk (package:flutter_tools/src/android/android_builder.dart:102:13)
#6      AndroidDevice.startApp (package:flutter_tools/src/android/android_device.dart:513:28)
#7      _rootRunUnary (dart:async/zone.dart:1192:38)
#8      _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#9      _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
#10     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
#11     Future._propagateToListeners (dart:async/future_impl.dart:711:32)
#12     Future._completeWithValue (dart:async/future_impl.dart:526:5)
#13     Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:556:7)
#14     _rootRun (dart:async/zone.dart:1184:13)
#15     _CustomZone.run (dart:async/zone.dart:1077:19)
#16     _CustomZone.runGuarded (dart:async/zone.dart:979:7)
#17     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1019:23)
#18     _microtaskLoop (dart:async/schedule_microtask.dart:43:21)
#19     _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5)

[✓] Flutter (Channel stable, v1.17.3, on Microsoft Windows [Version 10.0.18363.836], locale en-US)
    • Flutter version 1.17.3 at C:\src\flutter
    • Framework revision b041144f83 (4 days ago), 2020-06-04 09:26:11 -0700
    • Engine revision ee76268252
    • Dart version 2.8.4

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at C:\Users\gtatt\AppData\Local\Android\sdk
    • Platform android-29, build-tools 29.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    ✗ Android license status unknown.
      Try re-installing or updating your Android SDK Manager.
      See https://developer.android.com/studio/#downloads or visit visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions.

[✓] Android Studio (version 4.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 46.0.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

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

[✓] Connected device (1 available)
    • Samsung Galaxy S3 • 192.168.146.102:5555 • android-x86 • Android 4.4.4 (API 19)

! 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: b041144f833e05cf463b8887fa12efdec9493488

Hi @kannanchua
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

authors: iapicca kannanchua


text:
Failure to install some CIPD packages in Mac Android Debug Engine

In this PR I got the following failure which seems like a failure to install some CIPD packages:
https://ci.chromium.org/p/flutter/builders/try/Mac Android Debug Engine/6488

Triage: also assign to current oncall.

I haven't seen this failure for some time. Please reopen if it fails again.

authors: digiter godofredoc mdebbar


text:
Memory leak on iOS when show animate webp image  on flutter channel beta

on Flutter Channel stable is ok
[✓] Flutter (Channel beta, 1.21.0-9.2.pre, on Mac OS X 10.15.6 19G73, locale zh-Hans-CN)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
[✓] Chrome - develop for the web
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.48.2)
[✓] Connected device (2 available)

##example code

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

class DemoTest2Page extends StatefulWidget {
  DemoTest2Page({Key key}) : super(key: key);
  @override
  createState() => DemoTest2PageState();
}

class DemoTest2PageState extends State<DemoTest2Page> {

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text("demo"),),
      body: _build(context)
    );
  }

  _build(BuildContext context) {
    return ListView.builder(
      itemBuilder: (BuildContext context, int index) {
        return Container(
          child: Image.asset("assets/1.webp", width: 200, height: 200, fit: BoxFit.contain,)
        );
      },
      itemCount: 20
    );
  }

}

1.webp.zip

Hi @wasabia,
Can you provide flutter run --verbose and any screenshots / logs that shows the memory leak ?
Thanks.

Hi @darshankawar

flutter_run_verbose.log

I verified this on latest beta  and stable on iPhone 6s and saw leak entries while scrolling the app, but not sure if that's expected or a bug.

flutter doctor -v
[✓] Flutter (Channel beta, 1.21.0-9.2.pre, on Mac OS X 10.15.2 19C57, locale
    en-US)
    • Flutter version 1.21.0-9.2.pre at
      /Users/deeptibelsare/Documents/Fluttersdk/flutter
    • Framework revision 81a45ec2e5 (11 days ago), 2020-08-27 14:14:33 -0700
    • Engine revision 20a9531835
    • Dart version 2.10.0 (build 2.10.0-7.3.beta)

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/deeptibelsare/Library/Android/sdk
    • Platform android-30, build-tools 29.0.3
    • ANDROID_HOME = /Users/deeptibelsare/Library/Android/sdk
    • ANDROID_SDK_ROOT = /Users/deeptibelsare/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_212-release-1586-b4-5784211)
    ✗ 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 11.6)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.6, Build version 11E708
    • CocoaPods version 1.9.3

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

[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build
      1.8.0_212-release-1586-b4-5784211)

[✓] Connected device (3 available)
    • SM A260G (mobile) • 5200763ebcfa861f • android-arm    • Android 8.1.0 (API
      27)
    • Web Server (web)  • web-server       • web-javascript • Flutter Tools
    • Chrome (web)      • chrome           • web-javascript • Google Chrome
      85.0.4183.83

! Doctor found issues in 1 category.

Keeping this issue open for further analysis.

i do not scrolling the app just open the page, the memory keep grow,
maybe it is webp image problem

/cc @dnfield Is this related to the other image memory leak issue we were discussing?

@darshankawar - those leaks are a problem but very unlikely the cause of this issue. There are a few small random leaks from the Dart VM last I was checking that on iOS, but it wasn't clear where they were coming from and they're very small. We should file a separate bug for that if there isn't one already.
It would be instructive to see if this problem goes away if a GC is triggered, although I'd expect this app to be GCing before the growth gets as high as it is.
I'll try to take a look at this today.

I'm not able to reproduce this issue on master. Can you try again?

this bug has gone on master channel
✓] Flutter (Channel master, 1.22.0-10.0.pre.221, on Mac OS X 10.15.6 19G73 x86_64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
[✓] Chrome - develop for the web
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.49.0)
[✓] Connected device (4 available)

@wasabia thanks for confirming.
Given you last message, I am going ahead and closing this. If you disagree, write in comments and I'll reopen.
Thanks.

authors: darshankawar dnfield goderbauer wasabia


text:
Base app won't start on latest iOS/XCode version

Steps to Reproduce

Run flutter create bug.
Update the files as follows: N/A
Go through the iOS Setup steps, and try running the app on my MacBook Air (XCode 12.0, iOS 14.0).

Expected results: The example app starting on my device.
Actual results: The app failed to start, with a bunch of seemingly unrelated build errors, both on my connected iPhone and on the Simulator. The app runs successfully in Android Studio on my PC.

Logs
(I can't attach the --verbose run, because if I try, I get this error: "There was an error creating your Issue: body is too long (maximum is 65536 characters)." So this is the regular 'flutter run' log.)

mayhews-air:bug01 mayhew3$ flutter run
Launching lib/main.dart on iPhone 11 Pro Max in debug mode...

Running Xcode build...

Xcode build done.                                           26.7s
Failed to build iOS app
Error output from Xcode build:
â†³
    ** BUILD FAILED **

Xcode's output:
â†³
    Invalid depfile:
    /Users/mayhew3/Documents/Projects/flutter/bug01/.dart_tool/flutter_build/ffb
    8fe3791e612bf566f997345bf0cd5/kernel_snapshot.d
    Invalid depfile:
    /Users/mayhew3/Documents/Projects/flutter/bug01/.dart_tool/flutter_build/ffb
    8fe3791e612bf566f997345bf0cd5/kernel_snapshot.d
    Invalid depfile:
    /Users/mayhew3/Documents/Projects/flutter/bug01/.dart_tool/flutter_build/ffb
    8fe3791e612bf566f997345bf0cd5/kernel_snapshot.d
    Invalid depfile:
    /Users/mayhew3/Documents/Projects/flutter/bug01/.dart_tool/flutter_build/ffb
    8fe3791e612bf566f997345bf0cd5/kernel_snapshot.d
    Error: Could not resolve the package 'characters' in
    'package:characters/characters.dart'.
    ../../../../dev/flutter/packages/flutter/lib/src/material/text_field.dart:9:
    8: Error: Not found: 'package:characters/characters.dart'
    import 'package:characters/characters.dart';
           ^
    ../../../../dev/flutter/packages/flutter/lib/widgets.dart:18:1: Error: Not
    found: 'package:characters/characters.dart'
    export 'package:characters/characters.dart';
    ^
    ../../../../dev/flutter/packages/flutter/lib/src/rendering/editable.dart:10:
    8: Error: Not found: 'package:characters/characters.dart'
    import 'package:characters/characters.dart';
           ^
    ../../../../dev/flutter/packages/flutter/lib/src/services/text_formatter.dar
    t:9:8: Error: Not found: 'package:characters/characters.dart'
    import 'package:characters/characters.dart';
           ^
    ../../../../dev/flutter/packages/flutter/lib/src/material/text_field.dart:82
    2:61: Error: The getter 'characters' isn't defined for the class 'String'.
    Try correcting the name to the name of an existing getter, or defining a
    getter or field named 'characters'.
      int get _currentLength =>
      _effectiveController.value.text.characters.length;
                                                                ^^^^^^^^^^
    ../../../../dev/flutter/packages/flutter/lib/src/material/text_field.dart:82
    4:118: Error: The getter 'characters' isn't defined for the class 'String'.
    Try correcting the name to the name of an existing getter, or defining a
    getter or field named 'characters'.
      bool get _hasIntrinsicError => widget.maxLength != null &&
      widget.maxLength > 0 && _effectiveController.value.text.characters.length
      > widget.maxLength;
                                                                                ^^^^^^^^^^
    ../../../../dev/flutter/packages/flutter/lib/src/rendering/editable.dart:244
    :64: Error: The getter 'characters' isn't defined for the class 'String'.
    Try correcting the name to the name of an existing getter, or defining a
    getter or field named 'characters'.
           assert(obscuringCharacter != null &&
           obscuringCharacter.characters.length == 1),
                                                                   ^^^^^^^^^^
    ../../../../dev/flutter/packages/flutter/lib/src/rendering/editable.dart:361
    :35: Error: The getter 'characters' isn't defined for the class 'String'.
    Try correcting the name to the name of an existing getter, or defining a
    getter or field named 'characters'.
        assert(value != null && value.characters.length == 1);
                                      ^^^^^^^^^^
    ../../../../dev/flutter/packages/flutter/lib/src/rendering/editable.dart:567
    :11: Error: 'Characters' isn't a type.
        final Characters remaining = string.characters.skipWhile((String
        currentString) {
              ^^^^^^^^^^
    ../../../../dev/flutter/packages/flutter/lib/src/rendering/editable.dart:567
    :41: Error: The getter 'characters' isn't defined for the class 'String'.
    Try correcting the name to the name of an existing getter, or defining a
    getter or field named 'characters'.
        final Characters remaining = string.characters.skipWhile((String
        currentString) {
                                            ^^^^^^^^^^
    ../../../../dev/flutter/packages/flutter/lib/src/rendering/editable.dart:600
    :47: Error: The getter 'characters' isn't defined for the class 'String'.
    Try correcting the name to the name of an existing getter, or defining a
    getter or field named 'characters'.
        for (final String currentString in string.characters) {
                                                  ^^^^^^^^^^
    ../../../../dev/flutter/packages/flutter/lib/src/rendering/editable.dart:602
    :40: Error: The getter 'characters' isn't defined for the class 'String'.
    Try correcting the name to the name of an existing getter, or defining a
    getter or field named 'characters'.
              !_isWhitespace(currentString.characters.first.toString().codeUnitA
              t(0))) {
                                           ^^^^^^^^^^
    ../../../../dev/flutter/packages/flutter/lib/src/services/text_formatter.dar
    t:355:11: Error: 'CharacterRange' isn't a type.
        final CharacterRange iterator = CharacterRange(value.text);
              ^^^^^^^^^^^^^^
    ../../../../dev/flutter/packages/flutter/lib/src/services/text_formatter.dar
    t:355:37: Error: Method not found: 'CharacterRange'.
        final CharacterRange iterator = CharacterRange(value.text);
                                        ^^^^^^^^^^^^^^
    ../../../../dev/flutter/packages/flutter/lib/src/services/text_formatter.dar
    t:356:20: Error: The getter 'characters' isn't defined for the class
    'String'.
    Try correcting the name to the name of an existing getter, or defining a
    getter or field named 'characters'.
        if (value.text.characters.length > maxLength) {
                       ^^^^^^^^^^
    ../../../../dev/flutter/packages/flutter/lib/src/services/text_formatter.dar
    t:375:61: Error: The getter 'characters' isn't defined for the class
    'String'.
    Try correcting the name to the name of an existing getter, or defining a
    getter or field named 'characters'.
        if (maxLength != null && maxLength > 0 &&
        newValue.text.characters.length > maxLength) {
                                                                ^^^^^^^^^^
    ../../../../dev/flutter/packages/flutter/lib/src/services/text_formatter.dar
    t:378:25: Error: The getter 'characters' isn't defined for the class
    'String'.
    Try correcting the name to the name of an existing getter, or defining a
    getter or field named 'characters'.
          if (oldValue.text.characters.length == maxLength) {
                            ^^^^^^^^^^
    Unhandled exception:
    FileSystemException(uri=org-dartlang-untranslatable-uri:package%3Acharacters
    %2Fcharacters.dart; message=StandardFileSystem only supports file:* and
    data:* URIs)
    #0      StandardFileSystem.entityForUri
    (package:front_end/src/api_prototype/standard_file_system.dart:33:7)
    #1      asFileUri (package:vm/kernel_front_end.dart:659:37)
    #2      writeDepfile (package:vm/kernel_front_end.dart:853:21)
    <asynchronous suspension>
    #3      FrontendCompiler.compile
    (package:frontend_server/frontend_server.dart:574:15)
    <asynchronous suspension>
    #4      _FlutterFrontendCompiler.compile
    (package:flutter_frontend_server/server.dart:43:22)
    #5      starter (package:flutter_frontend_server/server.dart:182:27)
    #6      main
    (file:///b/s/w/ir/cache/builder/src/flutter/flutter_frontend_server/bin/star
    ter.dart:9:30)
    #7      _startIsolate.<anonymous closure>
    (dart:isolate-patch/isolate_patch.dart:299:32)
    #8      _RawReceivePortImpl._handleMessage
    (dart:isolate-patch/isolate_patch.dart:168:12)

    Command PhaseScriptExecution failed with a nonzero exit code
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is
    set to 8.0, but the range of supported deployment target versions is 9.0 to
    14.0.99. (in target 'Runner' from project 'Runner')

Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.
mayhews-air:bug01 mayhew3$

No issues found! (ran in 18.5s)

mayhews-air:bug01 mayhew3$ flutter doctor -v
[✓] Flutter (Channel stable, 1.20.4, on Mac OS X 10.15.6 19G2021, locale en-US)
    • Flutter version 1.20.4 at /Users/mayhew3/dev/flutter
    • Framework revision fba99f6cf9 (9 days ago), 2020-09-14 15:32:52 -0700
    • Engine revision d1bc06f032
    • Dart version 2.9.2
[✗] 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/macos#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.

[✓] Xcode - develop for iOS and macOS (Xcode 12.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.0, Build version 12A7209
    • CocoaPods version 1.9.3
[!] 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/macos#android-setup
      for detailed instructions).
[✓] Connected device (1 available)
    • iXavier (mobile) • 00008030-0006499A0188802E • ios • iOS 14.0
! Doctor found issues in 2 categories.

Here is the log for flutter run --verbose:
iOS_fail.log

Hi @mayhew3
I see there's an open issue addressing the case you described. https://github.com/flutter/flutter/issues/65723
Please follow up on that issue, I'm closing the current one as a duplicate.
If you disagree, please write in the comments and I will reopen it.
Thank you


text:
Regression: Top overflow is not working anymore since #71303

Since #71303 is merged, when you scroll up inside a refreshindicator sub widget, there is no overscroll effect anymore.
If you scroll up with momentum you should get an overscroll effect, but it does not happen anymore.
The overscroll effect should only be disabled, if you reached the top and continue to swipe.

cc @xu-baolin , is it ok to assign this issue to you?

Sure, go ahead.

authors: chunhtai lazylazyllama xu-baolin