title: Flutter hot reloading is not working to display changes
body: <p>I have two files, <code>main.dart</code> and <code>sections.dart</code>.</p>
  
  <p>I have defined a few widgets in <code>section.dart</code> and used them in <code>main.dart</code> file, when I run <code>flutter run</code> command changes are displayed on screen, but when I press <code>R</code> to hot reload, nothing changes on screen.</p>
  
  <p><strong>main.dart:</strong></p>
  
  <pre><code>import 'package:flutter/material.dart';
  import 'sections.dart';
  
  void main() {
    runApp(MyApp());
  }
  class MyApp extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
    return MaterialApp(
        debugShowCheckedModeBanner: false,
        title: 'Share IDEASS',
        home: Scaffold(
          appBar: AppBar(
            title: Text('IDEASs'),
          ),
          body: ListView(
            children: [
             labelsSection,
            ],
          ),
        ),
      );
    }
  }
  </code></pre>
  
  <p><strong>Sections.dart:</strong></p>
  
  <pre><code>import 'package:flutter/material.dart';
  class MyApp extends StatelessWidget {
  
    Widget build(BuildContext context) {
     return MaterialApp(
        title: 'Share IDEAS',
  
      );
    }
  }
  
  Column labelSectionMethod(color,IconData icon, String label,String numbers){
    return Column(
      children: &lt;Widget&gt;[
        Icon(icon, color:color),
        Container(
          child: Text(label,
          style: TextStyle(color: color
          ),
          ),
        ),
        Container(
          child:Text(numbers,
        style:TextStyle(color:color
        ),
        ),
        ),
      ],
    );
  }
  
      Widget labelsSection=Container(
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceEvenly,
        children: [
          labelSectionMethod(Colors.red,Icons.supervised_user_circle,"IDEASS","35"),
          labelSectionMethod(Colors.red,Icons.favorite,"LIKE","22"),
          labelSectionMethod(Colors.red,Icons.data_usage,"STREAK","12"),
        ],
      ),
      );
  </code></pre>
  
  <p>Maybe because I am repeating:</p>
  
  <pre><code> return MaterialApp(
  title: 'Share IDEAS',
      );
  </code></pre>
  
  <p>in <code>sections.dart</code>, or something to do with main function.</p>
  
  <blockquote>
    <p><strong>UPDATE:</strong></p>
  </blockquote>
  
  <p>i moved content of sections.dart file in main.dart file still hot reload is not working.</p>