ReorderableListView.separated Error

Troubleshooting

I've encountered the following error when trying to test my app:

65 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
Launching lib/main.dart on Web Server in debug mode...
Waiting for connection from debug service on Web Server...      
lib/components/activity_forms/activity_form_rank_images/activity_form_rank_images_widget.dart:436:48: Error: Member not found: 'ReorderableListView.separated'.
                    return ReorderableListView.separated(
                                               ^^^^^^^^^
Unhandled exception:
Unsupported operation: Unsupported invalid type InvalidType(<invalid>) (InvalidType). Encountered while compiling file:///tmp/ff_service_scratch/kGgIENEER7fLyA1wXXhK/moi_m_v_p/lib/components/activity_forms/activity_form_rank_images/activity_form_rank_images_widget.dart, which contains the type: FunctionType(<invalid> Function(BuildContext)).
#0      ProgramCompiler._typeCompilationError (package:dev_compiler/src/kernel/compiler.dart:3224)
#1      ProgramCompiler._emitType (package:dev_compiler/src/kernel/compiler.dart:3185)
#2      ProgramCompiler._emitFunctionTagged (package:dev_compiler/src/kernel/compiler.dart:3031)
#3      ProgramCompiler.visitFunctionExpression (package:dev_compiler/src/kernel/compiler.dart:7027)
#4      FunctionExpression.accept (package:kernel/ast.dart:8588)
#5      ProgramCompiler._visitExpression (package:dev_compiler/src/kernel/compiler.dart:3925)
#6      ProgramCompiler._emitNamedExpression (package:dev_compiler/src/kernel/compiler.dart:6306)
#7      ProgramCompiler._emitArgumentList (package:dev_compiler/src/kernel/compiler.dart:6298)
#8      ProgramCompiler.visitConstructorInvocation (package:dev_compiler/src/kernel/compiler.dart:6520)
#9      ConstructorInvocation.accept (package:kernel/ast.dart:6666)
#10     ProgramCompiler._visitExpression (package:dev_compiler/src/kernel/compiler.dart:3925)
#11     ProgramCompiler._emitNamedExpression (package:dev_compiler/src/kernel/compiler.dart:6306)
#12     ProgramCompiler._emitArgumentList (package:dev_compiler/src/kernel/compiler.dart:6298)
#13     ProgramCompiler.visitConstructorInvocation (package:dev_compiler/src/kernel/compiler.dart:6520)
#14     ConstructorInvocation.accept (package:kernel/ast.dart:6666)
#15     ProgramCompiler._visitExpression (package:dev_compiler/src/kernel/compiler.dart:3925)
#16     ProgramCompiler.visitReturnStatement (package:dev_compiler/src/kernel/compiler.dart:4615)
#17     ReturnStatement.accept (package:kernel/ast.dart:10140)
#18     ProgramCompiler._visitStatement (package:dev_compiler/src/kernel/compiler.dart:3834)
#19     MappedIterable.elementAt (dart:_internal/iterable.dart:385)
#20     ListIterator.moveNext (dart:_internal/iterable.dart:354)
#21     new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:189)
#22     new _GrowableList.of (dart:core-patch/growable_array.dart:150)
#23     new List.of (dart:core-patch/array_patch.dart:39)
#24     SetBase.toList (dart:collection/set.dart:119)
#25     ProgramCompiler.visitBlock (package:dev_compiler/src/kernel/compiler.dart:4019)
#26     Block.accept (package:kernel/ast.dart:9181)
#27     ProgramCompiler._visitStatement (package:dev_compiler/src/kernel/compiler.dart:3834)
#28     ProgramCompiler._emitFunctionScopedBody (package:dev_compiler/src/kernel/compiler.dart:3867)
#29     ProgramCompiler._emitSyncFunctionBody.<anonymous closure> (package:dev_compiler/src/kernel/compiler.dart:3573)
#30     ProgramCompiler._withLetScope (package:dev_compiler/src/kernel/compiler.dart:2553)
#31     ProgramCompiler._withCurrentFunction (package:dev_compiler/src/kernel/compiler.dart:3610)
#32     ProgramCompiler._emitSyncFunctionBody (package:dev_compiler/src/kernel/compiler.dart:3569)
#33     ProgramCompiler._emitFunction (package:dev_compiler/src/kernel/compiler.dart:3385)
#34     ProgramCompiler._emitArrowFunction (package:dev_compiler/src/kernel/compiler.dart:7032)
#35     ProgramCompiler.visitFunctionExpression (package:dev_compiler/src/kernel/compiler.dart:7025)
#36     FunctionExpression.accept (package:kernel/ast.dart:8588)
#37     ProgramCompiler._visitExpression (package:dev_compiler/src/kernel/compiler.dart:3925)
#38     ProgramCompiler._emitNamedExpression (package:dev_compiler/src/kernel/compiler.dart:6306)
#39     ProgramCompiler._emitArgumentList (package:dev_compiler/src/kernel/compiler.dart:6298)
#40     ProgramCompiler.visitConstructorInvocation (package:dev_compiler/src/kernel/compiler.dart:6520)
#41     ConstructorInvocation.accept (package:kernel/ast.dart:6666)
#42     ProgramCompiler._visitExpression (package:dev_compiler/src/kernel/compiler.dart:3925)
#43     ProgramCompiler._emitNamedExpression (package:dev_compiler/src/kernel/compiler.dart:6306)
#44     ProgramCompiler._emitArgumentList (package:dev_compiler/src/kernel/compiler.dart:6298)
#45     ProgramCompiler.visitConstructorInvocation (package:dev_compiler/src/kernel/compiler.dart:6520)
#46     ConstructorInvocation.accept (package:kernel/ast.dart:6666)
#47     ProgramCompiler._visitExpression (package:dev_compiler/src/kernel/compiler.dart:3925)
#48     MappedIterable.elementAt (dart:_internal/iterable.dart:385)
#49     ListIterator.moveNext (dart:_internal/iterable.dart:354)
#50     new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:189)
#51     new _GrowableList.of (dart:core-patch/growable_array.dart:150)
#52     new List.of (dart:core-patch/array_patch.dart:39)
#53     SetBase.toList (dart:collection/set.dart:119)
#54     ProgramCompiler._visitExpressionList (package:dev_compiler/src/kernel/compiler.dart:3888)
#55     ProgramCompiler.visitListLiteral (package:dev_compiler/src/kernel/compiler.dart:6905)
#56     ListLiteral.accept (package:kernel/ast.dart:8142)
#57     ProgramCompiler._visitExpression (package:dev_compiler/src/kernel/compiler.dart:3925)
#58     ProgramCompiler._emitNamedExpression (package:dev_compiler/src/kernel/compiler.dart:6306)
#59     ProgramCompiler._emitArgumentList (package:dev_compiler/src/kernel/compiler.dart:6298)
#60     ProgramCompiler.visitConstructorInvocation (package:dev_compiler/src/kernel/compiler.dart:6520)
#61     ConstructorInvocation.accept (package:kernel/ast.dart:6666)
#62     ProgramCompiler._visitExpression (package:dev_compiler/src/kernel/compiler.dart:3925)
#63     ProgramCompiler.visitReturnStatement (package:dev_compiler/src/kernel/compiler.dart:4615)
#64     ReturnStatement.accept (package:kernel/ast.dart:10140)
#65     ProgramCompiler._visitStatement (package:dev_compiler/src/kernel/compiler.dart:3834)
#66     MappedIterable.elementAt (dart:_internal/iterable.dart:385)
#67     ListIterator.moveNext (dart:_internal/iterable.dart:354)
#68     new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:189)
#69     new _GrowableList.of (dart:core-patch/growable_array.dart:150)
#70     new List.of (dart:core-patch/array_patch.dart:39)
#71     SetBase.toList (dart:collection/set.dart:119)
#72     ProgramCompiler.visitBlock (package:dev_compiler/src/kernel/compiler.dart:4019)
#73     Block.accept (package:kernel/ast.dart:9181)
#74     ProgramCompiler._visitStatement (package:dev_compiler/src/kernel/compiler.dart:3834)
#75     ProgramCompiler._emitFunctionScopedBody (package:dev_compiler/src/kernel/compiler.dart:3867)
#76     ProgramCompiler._emitSyncFunctionBody.<anonymous closure> (package:dev_compiler/src/kernel/compiler.dart:3573)
#77     ProgramCompiler._withLetScope (package:dev_compiler/src/kernel/compiler.dart:2553)
#78     ProgramCompiler._withCurrentFunction (package:dev_compiler/src/kernel/compiler.dart:3610)
#79     ProgramCompiler._emitSyncFunctionBody (package:dev_compiler/src/kernel/compiler.dart:3569)
#80     ProgramCompiler._emitFunction (package:dev_compiler/src/kernel/compiler.dart:3385)
#81     ProgramCompiler._emitMethodDeclaration.<anonymous closure> (package:dev_compiler/src/kernel/compiler.dart:2120)
#82     ProgramCompiler._withMethodDeclarationContext (package:dev_compiler/src/kernel/compiler.dart:3637)
#83     ProgramCompiler._emitMethodDeclaration (package:dev_compiler/src/kernel/compiler.dart:2119)
#84     ProgramCompiler._emitClassMethods (package:dev_compiler/src/kernel/compiler.dart:2060)
#85     ProgramCompiler._emitClassDeclaration (package:dev_compiler/src/kernel/compiler.dart:905)
#86     ProgramCompiler._emitClass (package:dev_compiler/src/kernel/compiler.dart:819)
#87     List.forEach (dart:core-patch/growable_array.dart:417)
#88     ProgramCompiler._emitLibrary (package:dev_compiler/src/kernel/compiler.dart:757)
#89     List.forEach (dart:core-patch/growable_array.dart:417)
#90     ProgramCompiler.emitModule (package:dev_compiler/src/kernel/compiler.dart:486)
#91     IncrementalJavaScriptBundler.compile (package:frontend_server/src/javascript_bundle.dart:221)
the Dart compiler exited unexpectedly.
Waiting for connection from debug service on Web Server...         37.9s
Failed to compile application.
What have you tried so far?

I've tried searching online but no luck. I think it might have to do with the ListView being wrapped under the DragTarget, but not 100% sure.

Did you check FlutterFlow's Documentation for this topic?
Yes
1
2 replies