title: Flutter: showDatePicker change colors
body: <p>I'm trying to change the color of the date picker but still have the blue color in there. I tried a lot but I can't find the code that changes the blue colors (see below).</p>
  
  <p>The text: Enter Date, the underline, and Cancel &amp; OK button should all be teal as color.</p>
  
  <p><a href="https://i.stack.imgur.com/B3wI4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/B3wI4.png" alt="showDatePicker"></a></p>
  
  <p>This is my code so far. Thanks for the support!</p>
  
  <pre><code>  TextEditingController _dateController = new TextEditingController();
    DateTime selectedDate = DateTime.now();
    var myFormat = DateFormat('d-MM-yyyy');
    Future&lt;void&gt; _selectDate(BuildContext context) async {
      final DateTime picked = await showDatePicker(
          context: context,
          initialDate: selectedDate,
          firstDate: DateTime(1930),
          lastDate: DateTime(2022),
          builder: (BuildContext context, Widget child) {
            return Theme(
              data: ThemeData.light().copyWith(
                colorScheme: ColorScheme.fromSwatch(
                  primarySwatch: Colors.teal,
                  primaryColorDark: Colors.teal,
                  accentColor: Colors.teal,
                ),
              dialogBackgroundColor:Colors.white,
            ),
            child: child,
         );
      },
      );
      if (picked != null &amp;&amp; picked != selectedDate)
        setState(() {
          selectedDate = picked;
        });
    }
  </code></pre>