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

flutter 2.8 support #7

Closed
laiiihz opened this issue Dec 10, 2021 · 12 comments
Closed

flutter 2.8 support #7

laiiihz opened this issue Dec 10, 2021 · 12 comments

Comments

@laiiihz
Copy link

laiiihz commented Dec 10, 2021

this package not working with the latest flutter version.

@laiiihz
Copy link
Author

laiiihz commented Dec 10, 2021

flutter sdk change this api controller.link.leader to controller.link.debugLeader, and does not work in other modes except debug.
layer.dart#L2130

@muhammadidrees
Copy link

Any update on this?

@cchamm
Copy link

cchamm commented Jan 11, 2022

Error encounter if building with flutter 2.8

../flutter/.pub-cache/hosted/pub.dartlang.org/local_hero-0.2.0/lib/src/rendering/layer.dart:54:25: Error: The getter 'leader' isn't defined for the class 'LayerLink'. - 'LayerLink' is from 'package:flutter/src/rendering/layer.dart' ('../flutter/packages/flutter/lib/src/rendering/layer.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'leader'. if (controller.link.leader == null) { ^^^^^^ ../flutter/.pub-cache/hosted/pub.dartlang.org/local_hero-0.2.0/lib/src/rendering/layer.dart:102:25: Error: The getter 'leader' isn't defined for the class 'LayerLink'. - 'LayerLink' is from 'package:flutter/src/rendering/layer.dart' ('../flutter/packages/flutter/lib/src/rendering/layer.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'leader'. if (controller.link.leader == null) { ^^^^^^ ../flutter/.pub-cache/hosted/pub.dartlang.org/local_hero-0.2.0/lib/src/rendering/layer.dart:106:28: Error: The getter 'leader' isn't defined for the class 'LayerLink'. - 'LayerLink' is from 'package:flutter/src/rendering/layer.dart' ('../flutter/packages/flutter/lib/src/rendering/layer.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'leader'. assert(controller.link.leader!.owner == owner, ^^^^^^ ../flutter/.pub-cache/hosted/pub.dartlang.org/local_hero-0.2.0/lib/src/rendering/layer.dart:117:44: Error: The getter 'leader' isn't defined for the class 'LayerLink'. - 'LayerLink' is from 'package:flutter/src/rendering/layer.dart' ('../flutter/packages/flutter/lib/src/rendering/layer.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'leader'. ContainerLayer layer = controller.link.leader!; ^^^^^^ ../flutter/.pub-cache/hosted/pub.dartlang.org/local_hero-0.2.0/lib/src/rendering/layer.dart:165:25: Error: The getter 'leader' isn't defined for the class 'LayerLink'. - 'LayerLink' is from 'package:flutter/src/rendering/layer.dart' ('../flutter/packages/flutter/lib/src/rendering/layer.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'leader'. if (controller.link.leader == null) { ^^^^^^

@cchamm
Copy link

cchamm commented Jan 11, 2022

This pull request hide the leader field in the LayerLink class. I am requesting them to revert this change.

@kpk-i710
Copy link

This pull request hide the leader field in the LayerLink class. I am requesting them to revert this change.

I really need this package, I don’t know how to fix it if I copy the package to my project for example from github. To work on the latest version of flutter?

@bimsina
Copy link

bimsina commented Mar 14, 2022

@kpk-i710 It's working in the master branch of flutter. You can switch to the master branch for now if that's possible.

@kpk-i710
Copy link

@kpk-i710 It's working in the master branch of flutter. You can switch to the master branch for now if that's possible.

thanks for the information, while I'm better at the 2.5 stable version, it also works.

@mario202k
Copy link

I could suggest this : https://stackoverflow.com/questions/71468925/how-to-transform-a-widget-by-switching-view
But It's not a perfect solution. If someone wants to enhance my code... My best version is not there.

@Urvish24
Copy link

Do we have any update regarding this issue?

@laiiihz
Copy link
Author

laiiihz commented May 23, 2022

Do we have any update regarding this issue?

flutter 3.0.x is working now 😆

@kpk-i710
Copy link

Do we have any update regarding this issue?

flutter 3.0.x is working now 😆

Seriously? Are there any warnings in the console?

@laiiihz
Copy link
Author

laiiihz commented May 24, 2022

@laiiihz laiiihz closed this as completed Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants