Giter Site home page Giter Site logo

flutter-things-todo's Issues

Build Failed: The method 'dependOnInheritedWidgetOfExactType' isn't defined for the class 'BuildContext'.

Compiler message:
../flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_sticky_header-0.4.2/lib/src/widgets/sliver_sticky_header.dart:60:56: Error: The method 'dependOnInheritedWidgetOfExactType' isn't defined for the class 'BuildContext'.

  • 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('../flutter/packages/flutter/lib/src/widgets/framework.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'dependOnInheritedWidgetOfExactType'.
    final _StickyHeaderControllerScope scope = context.dependOnInheritedWidgetOfExactType<_StickyHeaderControllerScope>();
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Compiler failed on /Users/phillzou/code_workspace/flutter/flutter-things-todo/lib/main.dart
    Error launching application on iPhone 11 Pro Max.

Notification icon button sends onUnknownRoute exception

From home screen.
App not crash still no action is performed. Probably something in routing is not set as expected. I do not know what should happen after button click.
From other screens Another exception was thrown: Could not find a generator for route "/task-form" in the _WidgetsAppState.

══╡
EXCEPTION CAUGHT BY GESTURE ╞═══════════════════════════════════════════════════════════════════
I/flutter (17082): The following assertion was thrown while handling a gesture:
I/flutter (17082): Could not find a generator for route "/task-form" in the _WidgetsAppState.
I/flutter (17082): Generators for routes are searched for in the following order:
I/flutter (17082): 1. For the "/" route, the "home" property, if non-null, is used.
I/flutter (17082): 2. Otherwise, the "routes" table is used, if it has an entry for the route.
I/flutter (17082): 3. Otherwise, onGenerateRoute is called. It should return a non-null value for any valid route not
I/flutter (17082): handled by "home" and "routes".
I/flutter (17082): 4. Finally if all else fails onUnknownRoute is called.
I/flutter (17082): Unfortunately, onUnknownRoute was not set.
I/flutter (17082): When the exception was thrown, this was the stack:
I/flutter (17082): #0 _WidgetsAppState._onUnknownRoute.
package:flutter/…/widgets/app.dart:774
I/flutter (17082): #1 _WidgetsAppState._onUnknownRoute
package:flutter/…/widgets/app.dart:787
I/flutter (17082): #2 NavigatorState._routeNamed
package:flutter/…/widgets/navigator.dart:1440
I/flutter (17082): #3 NavigatorState.pushNamed
package:flutter/…/widgets/navigator.dart:1473
I/flutter (17082): #4 BaseAppBar.actions.
package:thingstodo/…/app_bar/base_app_bar.dart:27
I/flutter (17082): #5 _InkResponseState._handleTap
package:flutter/…/material/ink_well.dart:507

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.