I/flutter : ══╡ EXCEPTION CAUGHT BY GESTURE LIBRARY ╞═══════════════════════════════════════════════════════════I/flutter : The following NoSuchMethodError was thrown while routing a pointer event:I/flutter : The null object does not have a method 'showSnackBar'.I/flutter : NoSuchMethodError: method not found: 'showSnackBar'I/flutter : Receiver: nullI/flutter : Arguments: [Instance of 'SnackBar']I/flutter : When the exception was thrown, this was the stack:I/flutter : #0 Object._noSuchMethod (dart:core-patch/object_patch.dart:42)I/flutter : #1 Object.noSuchMethod (dart:core-patch/object_patch.dart:45)I/flutter : #2 AddQuoteScreenState._onPressSend (/home/kleak/Work/GeoQuote/lib/src/screen/addquote_screen.dart:57)I/flutter : #3 AddQuoteScreenState._buildBody.<anonymous closure> (/home/kleak/Work/GeoQuote/lib/src/screen/addquote_screen.dart:40)I/flutter : #4 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:161)I/flutter : #5 TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:116)I/flutter : #6 TapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:62)I/flutter : #7 PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:198)I/flutter : #8 PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:53)I/flutter : #9 BindingBase&SchedulerBinding&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:115)I/flutter : #10 BindingBase&SchedulerBinding&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:93)I/flutter : #11 BindingBase&SchedulerBinding&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:70)I/flutter : #12 BindingBase&SchedulerBinding&GestureBinding._handlePointerPacket (package:flutter/src/gestures/binding.dart:42)I/flutter : #13 _dispatchPointerPacket (file:///b/build/slave/Linux_Engine/build/src/out/android_debug/gen/sky/bindings/hooks.dart:43)I/flutter : Event:I/flutter : PointerUpEvent(Point(336.7, 223.7))I/flutter : ════════════════════════════════════════════════════════════════════════════════════════════════════--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To post to this group, send email to flutt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/62e8546b-96e6-4246-9b64-d784a7f607cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Thanks for the explaination
And yes it's when i press a button :)
Is there a way to show a snackbar when i click on a button or after more precisely i press on the button it make a request on a server and after the reponse show the snackbar ?
Yes it's in the same widget.
Will try what you propose.
Maybe explain a bit more how to use .of methods should be suffisant, like :
Only find object that is not in the same widget :)
Thanks a lot