OurLandHK / OurlandGetcha

OurlandSearch's Native IOS/Andrioid version written with Flutter and Firebase
6 stars 9 forks source link

error thrown in chat screen #54

Closed wingkwong closed 5 years ago

wingkwong commented 5 years ago

Looks like some widgets are returned as null

I/flutter (21023): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ I/BufferQueueProducer(21023): SurfaceTexture-0-21023-21 queueBuffer: slot 0 is dropped, handle=0x7f0d96e0e0 I/flutter (21023): The following assertion was thrown building FutureBuilder(dirty, state: I/flutter (21023): _FutureBuilderState#cafb3): I/flutter (21023): A build function returned null. I/flutter (21023): The offending widget is: FutureBuilder I/flutter (21023): Build functions must never return null. To return an empty space that causes the building widget to I/flutter (21023): fill available room, return "new Container()". To return an empty space that takes as little room as I/flutter (21023): possible, return "new Container(width: 0.0, height: 0.0)". I/flutter (21023): When the exception was thrown, this was the stack: I/flutter (21023): #0 debugWidgetBuilderValue. (package:flutter/src/widgets/debug.dart:270:7) I/flutter (21023): #1 debugWidgetBuilderValue (package:flutter/src/widgets/debug.dart:287:4) I/flutter (21023): #2 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3722:7) I/flutter (21023): #3 Element.rebuild (package:flutter/src/widgets/framework.dart:3547:5) I/flutter (21023): #4 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2286:33) I/flutter (21023): #5 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:685:20) I/flutter (21023): #6 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:219:5) I/flutter (21023): #7 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15) I/flutter (21023): #8 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9) I/flutter (21023): #9 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5) I/flutter (21023): #10 _invoke (dart:ui/hooks.dart:159:13) I/flutter (21023): #11 _drawFrame (dart:ui/hooks.dart:148:3) I/flutter (21023): ════════════════════════════════════════════════════════════════════════════════════════════════════

wingkwong commented 5 years ago

self-assigned

wingkwong commented 5 years ago

cannot reproduce now after cleaning all records.