iamshaunjp / flutter-firebase

All course files for the Flutter & Firebase tutorial playlist on The Net Ninja YouTube channel
580 stars 441 forks source link

app runs but i get this in the debug window! #1

Closed ernestsheldon closed 4 years ago

ernestsheldon commented 4 years ago

this is of branch lesson 21 ` ════════ Exception caught by widgets library ═══════════════════════════════════════════════════════ The following NoSuchMethodError was thrown building BrewList(dirty, dependencies: [InheritedProvider<List>], state: _BrewListState#f51fb): The getter 'length' was called on null. Receiver: null Tried calling: length

User-created ancestor of the error-causing widget was: Scaffold file:///home/ndragonx/flutterprojectsvscode/grub_retriever/grub_retriever/lib/screens/home/home.dart:26:14 When the exception was thrown, this was the stack:

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

1 _BrewListState.build (package:grub_retriever/screens/home/brew_list.dart:17:24)

2 StatefulElement.build (package:flutter/src/widgets/framework.dart:4047:27)

3 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3941:15)

4 Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)

... ════════════════════════════════════════════════════════════════════════════════════════════════════

`