2

i has been create new flutter project with command flutter create my-project

can i rename the project from my-project to my-new-app-name without recreate new project...

like import 'package:my-project/views/admin/v_panel.dart';

to import 'package:my-new-app-name/views/admin/v_panel.dart';

i try use pub.dev rename but not work when i change the import code

2

1 Answer 1

4

Yes you can rename your Project name without using Rename Package.Just change the name of your Folder... But if you want to change the package name then you have 2 option ..

  1. Use- rename: ^2.0.1 and run this Command to your terminal

    pub global run rename --bundleId com.my-new-app-name

  2. You have change it manually.. How to change package name in flutter?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.