我需要帮助了解如何使用此小部件。现在我可以让元素可以拖动,但它们不会留在新位置。我确定这是因为我错误地使用了onReorder,但我找不到关于如何使用的解释。我不明白或不知道它的作用,我只是不断尝试直到它至少可以编译为止。classMainScreenextendsStatefulWidget{@overrideMainScreenStatecreateState()=>newMainScreenState();}classMainScreenStateextendsState{Widgetbuild(context){finalListreorderList=[Container(k
我需要帮助了解如何使用此小部件。现在我可以让元素可以拖动,但它们不会留在新位置。我确定这是因为我错误地使用了onReorder,但我找不到关于如何使用的解释。我不明白或不知道它的作用,我只是不断尝试直到它至少可以编译为止。classMainScreenextendsStatefulWidget{@overrideMainScreenStatecreateState()=>newMainScreenState();}classMainScreenStateextendsState{Widgetbuild(context){finalListreorderList=[Container(k