Skip to content

Pull Latest to VSCode changes index.dart in custom widgets and actions #6892

@djcnnrs

Description

@djcnnrs

Can we access your project?

  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

Pulling code into VSCode using the FlutterFlow extension causes the Automatic FlutterFlow Imports to change. This results in duplicate imports being created after changes, upon saving in FF.

Expected Behavior

The lines above "//DO NOT REMOVE OR MODIFY THE CODE ABOVE!" should remain constant when pulling/pushing code.

Steps to Reproduce

  1. Create a new custom widget & save.
  2. Pull Latest code to VSCode.
  3. Notice the top 8-12 lines have changed, specifically '/custom_code/widgets/index.dart' becomes 'index.dart'
  4. Copy or push edited code back to FF.
  5. Save and notice original imports restored but index.dart is added below.

Doing this over and over again creates multiple duplicates of index.dart

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

ITEelPHlw852j7wB1YffK8BsnQMwJ0QlUIInj+0bWRMhfJStBLAiZ/TsRElLYteCS1dqGGGbmkgF/sL1vtr9D+4EISiBf4RlzYRXQTv/RliuSp/WBs6OS0YmI+Rgf2qe0qSJoSYkJrdfdHMs2VyHN/CNG3qCf9qOYwx5e6fDbOY=

Visual documentation

New custom widget in FF:

Image

As pulled into VSCode:

Image

As copied or pushed back to FF after save:

Image

Environment

- FlutterFlow version: v6.5.2+ Feb 3, 2026 (and versions prior)
- Platform: Windows Desktop
- Browser name and version: N/A
- Operating system and version affected: Windows 11 Pro 25H2

Additional Information

Repetitive code cleanup is needed while developing custom actions and widgets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs triageA potential issue that has not been confirmed as a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions