Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Target kernel_snapshot failed: Exception: Errors during snapshot creation: null #7

Closed
jgmartinss opened this issue May 15, 2020 · 2 comments
Labels
T: Fix Type: :bug: Bug Fixes

Comments

@jgmartinss
Copy link

Describe the bug
After running the example...

  • '_EventParentData' is from 'package:timetable/src/header/all_day_events.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/timetable-0.2.0/lib/src/header/all_day_events.dart').
  • 'RenderObjectWidget' is from 'package:flutter/src/widgets/framework.dart' ('../../flutter/packages/flutter/lib/src/widgets/framework.dart').
    Try changing type arguments so that they conform to the bounds.
    class _EventParentDataWidget
    ^
    ../../flutter/packages/flutter/lib/src/widgets/framework.dart:1439:33: Context: This is the type variable whose bound isn't conformed to.
    abstract class ParentDataWidget extends ProxyWidget {
    ^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/timetable-0.2.0/lib/src/basic.dart:60:36: Error: The getter 'bodyText2' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText2'.
    style: context.textTheme.bodyText2.copyWith(
    ^^^^^^^^^
    Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
    Failed to build bundle.
    Error launching application on iPhone 11 Pro Max.
    Exited (sigterm)

Environment:

  • Device: iPhone 11 Pro Max
  • OS: macOS Catalina
  • Package version: timetable: ^0.2.0
@jgmartinss jgmartinss added the T: Fix Type: :bug: Bug Fixes label May 15, 2020
@JonasWanke
Copy link
Owner

It looks like you're running an older version of Flutter. Could you please try upgrading to v1.17.0? There were a few breaking changes in that release affecting this package.

@JonasWanke
Copy link
Owner

Sorry that this happened. I have now specified the minimum supported version in pubspec.yaml so Pub warns you about an incompatible Flutter version and will add testing across different Flutter versions to prevent similar issues in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: Fix Type: :bug: Bug Fixes
Projects
None yet
Development

No branches or pull requests

2 participants