Skip to content

Unhandled Exception: NoSuchMethodError: The method 'findAncestorStateOfType' was called on null. #62

@limsocheat

Description

@limsocheat

Describe the bug

[VERBOSE-2:ui_dart_state.cc(177)] Unhandled Exception: NoSuchMethodError: The method 'findAncestorStateOfType' was called on null.
Receiver: null
Tried calling: findAncestorStateOfType<NavigatorState>()
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
#1      Navigator.of (package:flutter/src/widgets/navigator.dart:2179:40)
#2      _SplashScreenState.initState.<anonymous closure> (package:splashscreen/splashscreen.dart:180:21)
#3      _rootRunUnary (dart:async/zone.dart:1198:47)
#4      _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#5      _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#6      Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
#7      Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#8      Future._completeWithValue (dart:async/future_impl.dart:529:5)
#9      _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
#10     _completeOnAsyncReturn (dart:async-patch/async_patch<…>

To Reproduce
Steps to reproduce the behavior:
Launch the app and see the error

Expected behavior
Should not appear any error.

Screenshots
Screen Shot 2021-02-24 at 8 51 05 AM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions