local_hero icon indicating copy to clipboard operation
local_hero copied to clipboard

flutter 2.8 support

Open laiiihz opened this issue 4 years ago • 12 comments

this package not working with the latest flutter version.

laiiihz avatar Dec 10 '21 06:12 laiiihz

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

laiiihz avatar Dec 10 '21 06:12 laiiihz

Any update on this?

muhammadidrees avatar Jan 10 '22 19:01 muhammadidrees

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 avatar Jan 11 '22 03:01 cchamm

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

cchamm avatar Jan 11 '22 05:01 cchamm

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?

kpk-i710 avatar Feb 21 '22 01:02 kpk-i710

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

bimsina avatar Mar 14 '22 12:03 bimsina

@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.

kpk-i710 avatar Mar 14 '22 14:03 kpk-i710

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.

mario202k avatar Apr 13 '22 08:04 mario202k

Do we have any update regarding this issue?

Urvish24 avatar May 23 '22 08:05 Urvish24

Do we have any update regarding this issue?

flutter 3.0.x is working now 😆

laiiihz avatar May 23 '22 08:05 laiiihz

Do we have any update regarding this issue?

flutter 3.0.x is working now 😆

Seriously? Are there any warnings in the console?

kpk-i710 avatar May 23 '22 09:05 kpk-i710

@kpk-i710 yes its working(more detail: flutter/flutter#92598) but have another warnings. fix: https://github.com/flutter/website/blob/main/src/development/tools/sdk/release-notes/release-notes-3.0.0.md#if-you-see-warnings-about-bindings

laiiihz avatar May 24 '22 01:05 laiiihz