title: How to enable autoformating Flutter project in Android Studio?
body: <p>For example, there is a sample flutter code. This code is not properly formatted.</p>
  <pre><code>import 'package:flutter/material.dart';
  
  void main() =&gt; runApp(SampleApp());
  
  class SampleApp extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return MaterialApp(
        home: Scaffold(
          body: SafeArea(
            child: Container(
              child: const Text('123'),), // this line isn't properly formatted 
          ),
        ),
      );
    }
  }
  </code></pre>
  <p>I've heard that Android Studio is able to autoformat flutter code when a code saved in editor. In that case, certain conditions had to be respected, - all the commas should be present in code like it is in the above sample code. But I didn't find how to do that. So if it's true (i.e. if it's possible to do that) how to achive that?</p>