title: Changing the color and styling of the Button in Flutter
body: <p>I have migrated to Flutter 2.0 which is just the new release now. In my project I have used <code>Flat Buttons</code> but it got deprecated now in Flutter 2.0 and the suggestion pop up to use <code>Text Button</code> instead of <code>Flat Buttons</code>.</p>
  <p>Now the problem is in <code>Flat Buttons</code> there are option directly to set the properties of button such as <code>color, padding etc.</code> but when I replaced it with <code>Text Button</code> there is error in using this properties. I have checked the documentation and found that there is the property of <code>style: ButtonStyle(backgroundcolor: ____________)</code>. But when I have put <code>Colors.blue</code> in the <code>backgroundcolor</code> property it gives me error.</p>
  <p>So I want to know that how is the behaviour of <code>Buttons</code> in Flutter 2.0 and how we can <code>style</code> the <code>Buttons</code>?</p>
  <p>My snippet of code is here in which I want to style the button.</p>
  <pre><code>Container(
                    width: 200.0,
                    child: TextButton(
                      style: ButtonStyle(), // I want to style this.
                      onPressed: () =&gt; Navigator.pushNamed(context, SignupPage.id),
                      /*color: Colors.blue,
                      padding: const EdgeInsets.all(10.0),*/ //Commented code is deprecated in Flutter 2.0
                      child: Text(
                        'Create Account',
                        style: TextStyle(color: Colors.white, fontSize: 16.0),
                      ),
  </code></pre>