Skip to content

Commit

Permalink
Fixed camera stream flicker
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold872 committed Feb 24, 2024
1 parent aaee4c8 commit af92315
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/widgets/mjpeg.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ class Mjpeg extends HookWidget {
final state = useMemoized(() => _MjpegStateNotifier());
final visible = useListenable(state);
final errorState = useState<List<dynamic>?>(null);
isMounted() => context.mounted;
// ignore: deprecated_member_use
final isMounted = useIsMounted();

final manager = useMemoized(
() => _manager = _StreamManager(
Expand Down

0 comments on commit af92315

Please sign in to comment.