title: How to set background colour to cardview flutter
body: <p>I try to make login page and I put all text filed in cardview. To this point I don't have any problem but now I try to make background to cardview. Like this image:</p>
  <p><a href="https://i.stack.imgur.com/buwBj.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/buwBj.jpg" alt="enter image description here" /></a></p>
  <p>As you can see in this image there are background  blue I want to make like it in my code.If anyone know the solution help me.I'm sorry. may be the question repeated, but I could not solve it despite the long time.</p>
  <pre><code>@override
    Widget build(BuildContext context) {
  
      return Scaffold(
          body: SingleChildScrollView(
              padding: EdgeInsets.only(left: 7.0, right: 7.0, top: 180.0),
          child: Card(
              shape: RoundedRectangleBorder(
                borderRadius: BorderRadius.circular(2.0),
              ),
              elevation: 2,
             // margin: EdgeInsets.all(19),
              child: Center(
                child: Column(
                  children: &lt;Widget&gt;[
                    Padding(
                        padding: const EdgeInsets.all(12.0),
                        child: Text('User Login Form',
                            style: TextStyle(fontSize: 21))),
                    Divider(),
  
                 Container(
                   margin: EdgeInsets.all(20),
                     child: TextField(
                  controller: emailController,
                  onChanged: (value) {
                    _myPreferences.user = value;
                    _myPreferences.commit();
                  },
                  decoration: InputDecoration(
                    border: OutlineInputBorder(),
                    labelText: 'User Name',
                  ),
                )
              ),
                    Container(
                        margin: EdgeInsets.all(20),
                        child: TextField(
                          controller: passwordController,
                          onChanged: (value) {
                            _myPreferences.password = value;
                            _myPreferences.commit();
                          },
                          decoration: InputDecoration(
                            border: OutlineInputBorder(),
                            labelText: 'User password',
                          ),
                        )
                    ),
  
                    Column(
                      mainAxisAlignment: MainAxisAlignment.spaceEvenly,
                      children: [
                        Padding(
                            padding: const EdgeInsets.all(2.0),),
                       // Divider(),
  
                        RaisedButton(
                          onPressed: userLogin,
                          color: Colors.amberAccent,
                          textColor: Colors.white,
                          padding: EdgeInsets.fromLTRB(100, 18, 100, 18),
                          child: Text('Click Here To Login'),
  
                        ),
                        Padding(
                          padding: const EdgeInsets.all(5.0),),
                      //  Divider(),
                        FlatButton(
                          textColor: Colors.black,
                          padding: EdgeInsets.fromLTRB(100, 18, 100, 18),
                          onPressed: () {
                            Navigator.push(context, MaterialPageRoute(builder: (context) =&gt; RegisterUser()
                            ),);
                          },
                          child: Text(&quot;New User click here&quot;,
                          ),
                        ),
  
  
                      ],
                    ),
                    Visibility(
                        visible: visible,
                        child: Container(
                            margin: EdgeInsets.only(bottom: 30),
                            child: CircularProgressIndicator()
                        )
                    ),
                  ],
                ),
              )
      )
          )
      );
    }
  
  </code></pre>