-
Notifications
You must be signed in to change notification settings - Fork 54
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
Bug: can't drag and drop item from one group to another group #39
Comments
Can you share reproducible code for this bug? |
i am facing same issue [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: type 'PhantomGroupItem' is not a subtype of type 'TextItem' of 'value' |
If you can share a small sample of code with the error reproducible, I can take a look. |
i am facing the same issue!! When the exception was thrown, this was the stack: router: Instance of 'PointerRouter' Another exception was thrown: 'package:flutter/src/widgets/drag_target.dart': Failed assertion: line 748 pos 12: '_candidateAvatars.contains(avatar) || _rejectedAvatars.contains(avatar)': this is my code : class MultiBoardListExample extends StatefulWidget { @OverRide class _MultiBoardListExampleState extends State { late AppFlowyBoardScrollController boardController; @OverRide Widget _buildCard(AppFlowyGroupItem item) {
} |
@Scrdoctor1412 |
this package is unusable without this fixed, the code example crashes with 'ScrollController attached to multiple scroll views.' when trying to drag and drop an item |
I also encountered the same problem |
seems to work if you set the main branch for the package appflowy_board: |
This was fixed here use
when building a group
|
在我的代码中,两个Group中如果有相同的TextItem,比如Title相同的话,就会发生和大家相同的情况。我是通过如下操作解决的。
final items = ['Hello'].map((it) => TextItem(it))
AppFlowyGroupData(
id: 'one',
name: 'One',
items: List<AppFlowyGroupItem>.from(items),
); 我修改了之后,发现其实并不管用。然后,我查看了TextItem的get函数,然后进行了如下操作: @override
String get id => "${s}:${Random().nextInt(100)}"; 我在id后面加了一个随机数,目的是在相同Title下,也能获取到不同的id。 最后,我发现操作2是有效的。 |
I have faced the issue like this. Others gestures work fine
Ghi.Man.hinh.2024-08-12.luc.14.33.48.mov
The text was updated successfully, but these errors were encountered: