You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 2, 2021. It is now read-only.
The getter 'value' was called on null.
Receiver: null
Tried calling: value
The relevant error-causing widget was
MaterialApp
lib/main.dart:20
When the exception was thrown, this was the stack
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
#1 CircleButton.build
package:magiceye/…/extra/circle_button.dart:29
#2 StatelessElement.build
package:flutter/…/widgets/framework.dart:4291
#3 ComponentElement.performRebuild
package:flutter/…/widgets/framework.dart:4223
#4 Element.rebuild
package:flutter/…/widgets/framework.dart:3947
...
════════════════════════════════════════════════════════════════════════════════
════════ Exception caught by widgets library ═══════════════════════════════════
The getter 'value' was called on null.
Receiver: null
Tried calling: value
The relevant error-causing widget was
MaterialApp
calling value on null.
class CircleButton extends StatelessWidget {
final IconData icon;
final void Function() onPressed;
final BehaviorSubject orientationStream;
const CircleButton({
Key key,
@required this.icon,
this.onPressed,
this.orientationStream,
}) : assert(icon != null),
super(key: key);
Widget build(BuildContext context) {
Tuple2<int, int> orientations = Tuple2(0, 0);
return Circle(
radius: 25,
child: StreamBuilder<DeviceDirection>(
initialData: orientationStream.value, <-- orientationStream is null
The text was updated successfully, but these errors were encountered:
I took a photo, and then got an exception.
The text was updated successfully, but these errors were encountered: