'migrate import when change package name in flutter

I had

import 'package:nhg/share/ui/theme/colors.dart';
import 'package:nhg/share/ui/theme/theme_app.dart';

when I change package name in pubspec.yaml and apply its. All import don't automation update, Android Studio show error and I must manualy update it.

if when I import, I using style

import '../../../theme/theme_app.dart';

then it unaffect, but when I want to move file to other package, I will not exactly (don't automation update import ).

Who can hepl me, How to automation update when I change package name?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source