Skip to content

[Bug] Dev Scripts cause flutter version reset #1912

@AmanNegi

Description

@AmanNegi

Issue

When we setup our environment using the install_dev_env files, it causes the Flutter Version to reset to the latest stable one. This behavior should be improved as we are using the specific version v3.3.10 and any other version would cause error in the building process.

Caused By

I was able to narrow down the cause of error as the following lines in the install_dev_env files:

# Enable the flutter stable channel
printMessage "Setting up Flutter"
flutter channel stable

Solutions

Simply, comment these lines and prompt the user to have the specific version at end. As anyone following the gitbook would have the right version installed. Also we are assuming here that the, flutter is added to path and is thus installed, so it makes sense to remove this line.

How to Reproduce

On your system install flutter v3.3.10, and then run the scripts provided under install_dev_env and then check your flutter version.

Expected Behavior

Do not modify pre-existing flutter version.

Operating System

Ubuntu 20.04.5 LTS

AppFlowy Version(s)

1.0.0.1

Screenshots

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions