1

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

KAnggara75
  • 103
  • 1
  • 8
  • 1
    https://stackoverflow.com/questions/51534616/how-to-change-package-name-in-flutter – Dimon Mar 14 '22 at 11:02
  • May you check if the answers from a [related question](https://stackoverflow.com/questions/46694153/changing-the-project-name) are useful to you. – Kelvin Chelenje Mar 14 '22 at 11:06

1 Answers1

3

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?

Inacio Regis
  • 105
  • 5
Vishal_VE
  • 1,852
  • 1
  • 6
  • 9