문서 보기역링크PDF로 내보내기맨 위로 이 문서는 읽기 전용입니다. 원본을 볼 수는 있지만 바꿀 수는 없습니다. 문제가 있다고 생각하면 관리자에게 문의하세요. # reorderables <code> _buildSection() { // 선택한 pantry 에 대해 admin 권한을 가졌는가? var pantryUserEdge = _pantryStore.pantryUserEdgeList .firstWhereOrNull((e) => e.userId == _settingStore.user?.objectId); if (pantryUserEdge == null || pantryUserEdge.authority < AuthorityConst.admin) { return []; } return [ SliverToBoxAdapter( child: SectionTitle( text: 'Section', ), ), Observer( builder: (ctx) { return ReorderableSliverList( // delegate: ReorderableSliverChildListDelegate(sectionWidget), delegate: ReorderableSliverChildBuilderDelegate( (BuildContext context, int index) { var section = _pantryStore.sectionList[index]; return SectionRow(section: section); }, childCount: _pantryStore.sectionList.length), onReorder: (int oldIndex, int newIndex) { _pantryStore.sectionReorder(oldIndex, newIndex); }, ); }, ) ]; } </code> ## 출처 - https://pub.dev/packages/reorderables open/flutter-reorderables.txt 마지막으로 수정됨: 2021/06/27 11:33저자 127.0.0.1