Code Monkey home page Code Monkey logo

Comments (4)

clemens-tolboom avatar clemens-tolboom commented on May 29, 2024

I just checked out this repo then

cd examples
flutter packages get
flutter run

and got the same stacktrace which is caused by location permissions not given yet. I got the Allow location permissions dialog in the app on the simulator. Next I saw lon/lat data.

  • After Hardware restart starting the app it crashed.
  • Checking the permissions for the app these were set OK. Restarting the App I got lon/lat again.

I guess this is a timing problem somehow?

from flutterlocation.

Tom1827 avatar Tom1827 commented on May 29, 2024

Same for me as @garyloud. Followed the install instructions, copy/paste the exact example code, and:

`══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following NoSuchMethodError was thrown building MyApp(dirty, state: _MyAppState#01986):
The method '[]' was called on null.
Receiver: null
Tried calling:

When the exception was thrown, this was the stack:
#0 Object.noSuchMethod (dart:core-patch/dart:core/object_patch.dart:46)
#1 _MyAppState.build (/Users/tom/Google Drive/prog/flutter/gps_test/lib/main.dart:64:107)
#2 StatefulElement.build (package:flutter/src/widgets/framework.dart:3690:27)
#3 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3602:15)
#4 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
#5 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3582:5)
#6 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3718:22)
#7 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3577:5)
#8 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2875:14)
#9 Element.updateChild (package:flutter/src/widgets/framework.dart:2678:12)
#10 RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:852:16)
#11 RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:823:5)
#12 RenderObjectToWidgetAdapter.attachToRenderTree. (package:flutter/src/widgets/binding.dart:769:17)
#13 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2190:19)
#14 RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:768:13)
#15 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding&WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:657:7)
#16 runApp (package:flutter/src/widgets/binding.dart:699:7)
#17 main (/Users/tom/Google Drive/prog/flutter/gps_test/lib/main.dart:7:3)
#18 _startIsolate. (dart:isolate-patch/dart:isolate/isolate_patch.dart:278)
#19 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:164)
════════════════════════════════════════════════════════════════════════════════════════════════════
*** First throw call stack:
(
0 CoreFoundation 0x00000001096ca12b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x0000000108d5ef41 objc_exception_throw + 48
2 CoreFoundation 0x000000010973f245 +[NSException raise:format:] + 197
3 Runner 0x0000000106f385e5 -[LocationPlugin handleMethodCall:result:] + 789
4 Flutter 0x000000010700b880 __45-[FlutterMethodChannel setMethodCallHandler:]_block_invoke + 118
5 Flutter 0x0000000107020583 _ZN5shell15PlatformViewIOS21HandlePlatformMessageEN3fxl6RefPtrIN5blink15PlatformMessageEEE + 189
6 Flutter 0x0000000107048e93 _ZNSt3__110<…>`

from flutterlocation.

clemens-tolboom avatar clemens-tolboom commented on May 29, 2024

@Tom1827 why paste the same info again into the issue? Please try to add new info :-)

from flutterlocation.

Lyokone avatar Lyokone commented on May 29, 2024

This should be fixed with the new version, feel free to open again if it's not.

from flutterlocation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.