theindianappguy / wallpaperhub

Wallpaper app made with flutter
https://wallpaperhub.web.app/#/
153 stars 94 forks source link

NoSuchMethodError was thrown building Home #2

Open ArbitCode opened 4 years ago

ArbitCode commented 4 years ago

This is the main error: The getter 'portrait' was called on null. Receiver: null Tried calling: portrait

The relevant error-causing widget was Home lib/main.dart:18 When the exception was thrown, this was the stack

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

1 wallpapersList.

package:wallpaperapp/widgets/widget.dart:31

2 MappedListIterable.elementAt (dart:_internal/iterable.dart:417:31)

3 ListIterable.toList (dart:_internal/iterable.dart:221:19)

4 wallpapersList

ArbitCode commented 4 years ago

foreach

forEach Function definition not found, that make breakpoint to application. how can we resolve it.

tanmayrauth commented 4 years ago

@ArbitCode did you got the solution for this? @theindianappguy Could you please help us on this issue!

tanmayrauth commented 4 years ago

It seems like authorization is missing

{ "error": "Authorization field missing" }

NSomith commented 3 years ago

Bro just update ur packages by pub get and change ur API key