Skip to content

Build error on master: accord_home_channels.dart uses undefined onReorderItem / missing onReorder #138

Description

@krazyjakee

Discovered while working on #134. These are pre-existing on master (not introduced by that PR — the file is untouched there).

Errors

`flutter analyze` reports two errors in `lib/features/spaces/views/accord_home_channels.dart`:

```
error • The named parameter 'onReorder' is required, but there's no corresponding argument • lib/features/spaces/views/accord_home_channels.dart:855:12 • missing_required_argument
error • The named parameter 'onReorderItem' isn't defined • lib/features/spaces/views/accord_home_channels.dart:859:7 • undefined_named_parameter
```

Looks like a reorderable-list widget API mismatch (onReorderItem vs the now-required onReorder), likely from a dependency version bump.

Why it matters

These are hard errors, so flutter analyze is non-clean on master and any build touching this file fails. Worth confirming against CI's pinned Flutter (the repo pins beta via .fvmrc; reproduced here with 3.38.1 stable) in case it's a local-toolchain artifact — but the API change should be resolved regardless.

Fix

Update the call site at accord_home_channels.dart:855-859 to the current widget API (onReorder), or pin the widget package to the version whose API matches.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions