Revert back IntelliJ .iml file to project root (#8139)

* Move .iml file back to project root directory

* Update .iml location in all examples
diff --git a/examples/flutter_gallery/.idea/modules.xml b/examples/flutter_gallery/.idea/modules.xml
index 666a525..ecafaa7 100644
--- a/examples/flutter_gallery/.idea/modules.xml
+++ b/examples/flutter_gallery/.idea/modules.xml
@@ -2,7 +2,7 @@
 <project version="4">
   <component name="ProjectModuleManager">
     <modules>
-      <module fileurl="file://$PROJECT_DIR$/.idea/flutter_gallery.iml" filepath="$PROJECT_DIR$/.idea/flutter_gallery.iml" />
+      <module fileurl="file://$PROJECT_DIR$/flutter_gallery.iml" filepath="$PROJECT_DIR$/.idea/flutter_gallery.iml" />
     </modules>
   </component>
 </project>
\ No newline at end of file
diff --git a/examples/flutter_gallery/.idea/flutter_gallery.iml b/examples/flutter_gallery/flutter_gallery.iml
similarity index 100%
rename from examples/flutter_gallery/.idea/flutter_gallery.iml
rename to examples/flutter_gallery/flutter_gallery.iml
diff --git a/examples/hello_services/.idea/modules.xml b/examples/hello_services/.idea/modules.xml
index 328fb20..06d5e0a 100644
--- a/examples/hello_services/.idea/modules.xml
+++ b/examples/hello_services/.idea/modules.xml
@@ -2,7 +2,7 @@
 <project version="4">
   <component name="ProjectModuleManager">
     <modules>
-      <module fileurl="file://$PROJECT_DIR$/.idea/hello_services.iml" filepath="$PROJECT_DIR$/.idea/hello_services.iml" />
+      <module fileurl="file://$PROJECT_DIR$/hello_services.iml" filepath="$PROJECT_DIR$/.idea/hello_services.iml" />
     </modules>
   </component>
 </project>
\ No newline at end of file
diff --git a/examples/hello_services/.idea/hello_services.iml b/examples/hello_services/hello_services.iml
similarity index 100%
rename from examples/hello_services/.idea/hello_services.iml
rename to examples/hello_services/hello_services.iml
diff --git a/examples/hello_world/.idea/modules.xml b/examples/hello_world/.idea/modules.xml
index 3e68d82..5461883 100644
--- a/examples/hello_world/.idea/modules.xml
+++ b/examples/hello_world/.idea/modules.xml
@@ -2,7 +2,7 @@
 <project version="4">
   <component name="ProjectModuleManager">
     <modules>
-      <module fileurl="file://$PROJECT_DIR$/.idea/hello_world.iml" filepath="$PROJECT_DIR$/.idea/hello_world.iml" />
+      <module fileurl="file://$PROJECT_DIR$/hello_world.iml" filepath="$PROJECT_DIR$/.idea/hello_world.iml" />
     </modules>
   </component>
 </project>
\ No newline at end of file
diff --git a/examples/hello_world/.idea/hello_world.iml b/examples/hello_world/hello_world.iml
similarity index 100%
rename from examples/hello_world/.idea/hello_world.iml
rename to examples/hello_world/hello_world.iml
diff --git a/examples/layers/.idea/modules.xml b/examples/layers/.idea/modules.xml
index f61dd52..390870c 100644
--- a/examples/layers/.idea/modules.xml
+++ b/examples/layers/.idea/modules.xml
@@ -2,7 +2,7 @@
 <project version="4">
   <component name="ProjectModuleManager">
     <modules>
-      <module fileurl="file://$PROJECT_DIR$/.idea/layers.iml" filepath="$PROJECT_DIR$/.idea/layers.iml" />
+      <module fileurl="file://$PROJECT_DIR$/layers.iml" filepath="$PROJECT_DIR$/.idea/layers.iml" />
     </modules>
   </component>
 </project>
\ No newline at end of file
diff --git a/examples/layers/.idea/layers.iml b/examples/layers/layers.iml
similarity index 100%
rename from examples/layers/.idea/layers.iml
rename to examples/layers/layers.iml
diff --git a/examples/stocks/.idea/modules.xml b/examples/stocks/.idea/modules.xml
index fb2ea5b..c668e7d 100644
--- a/examples/stocks/.idea/modules.xml
+++ b/examples/stocks/.idea/modules.xml
@@ -2,7 +2,7 @@
 <project version="4">
   <component name="ProjectModuleManager">
     <modules>
-      <module fileurl="file://$PROJECT_DIR$/.idea/stocks.iml" filepath="$PROJECT_DIR$/.idea/stocks.iml" />
+      <module fileurl="file://$PROJECT_DIR$/stocks.iml" filepath="$PROJECT_DIR$/.idea/stocks.iml" />
     </modules>
   </component>
 </project>
\ No newline at end of file
diff --git a/examples/stocks/.idea/stocks.iml b/examples/stocks/stocks.iml
similarity index 100%
rename from examples/stocks/.idea/stocks.iml
rename to examples/stocks/stocks.iml
diff --git a/packages/flutter_tools/templates/create/.idea/modules.xml.tmpl b/packages/flutter_tools/templates/create/.idea/modules.xml.tmpl
index d37e9c9..48ed28e 100644
--- a/packages/flutter_tools/templates/create/.idea/modules.xml.tmpl
+++ b/packages/flutter_tools/templates/create/.idea/modules.xml.tmpl
@@ -2,7 +2,7 @@
 <project version="4">
   <component name="ProjectModuleManager">
     <modules>
-      <module fileurl="file://$PROJECT_DIR$/.idea/{{projectName}}.iml" filepath="$PROJECT_DIR$/.idea/{{projectName}}.iml" />
+      <module fileurl="file://$PROJECT_DIR$/{{projectName}}.iml" filepath="$PROJECT_DIR$/.idea/{{projectName}}.iml" />
     </modules>
   </component>
 </project>
diff --git a/packages/flutter_tools/templates/create/.idea/projectName.iml.tmpl b/packages/flutter_tools/templates/create/projectName.iml.tmpl
similarity index 100%
rename from packages/flutter_tools/templates/create/.idea/projectName.iml.tmpl
rename to packages/flutter_tools/templates/create/projectName.iml.tmpl