londonappbrewery / Clima-Flutter

Starter code for the Clima Project from the Complete Flutter Development Bootcamp
https://www.appbrewery.co
155 stars 740 forks source link

NoSuchMethodError #21

Closed shivamkg0604 closed 3 years ago

shivamkg0604 commented 3 years ago

I am geeting nosuchmethoderror.I have copied the code . but getting this error. ════════ Exception caught by widgets library ═══════════════════════════════════════════════════════ The following NoSuchMethodError was thrown building Builder: The method '[]' was called on null. Receiver: null Tried calling:

The relevant error-causing widget was: MaterialApp file:///C:/Users/shiva/AndroidStudioProjects/Clima-Flutter/lib/main.dart:9:12 When the exception was thrown, this was the stack:

0 Object.noSuchMethod (dart:core-patch/object_patch.dart:54:5)

1 _LocationScreenState.update. (package:clima/screens/location_screen.dart:26:25)

2 State.setState (package:flutter/src/widgets/framework.dart:1267:30)

3 _LocationScreenState.update (package:clima/screens/location_screen.dart:25:5)

4 _LocationScreenState.initState (package:clima/screens/location_screen.dart:21:5)

... ════════════════════════════════════════════════════════════════════════════════════════════════════ E/UIFirst (23085): failed to open /proc/23085/stuck_info, No such file or directory Lost connection to device. error

azinmapar commented 1 year ago

How did you solve it?? I have the same issue