title: Flutter: Theme not applied to Text Widget
body: <p>I am trying to make a custom theme that is applied to only the children of that theme. </p>
  
  <p>However when I run the app, the Text widget that displays "hello" is still blue. I want to make it yellow. </p>
  
  <p>Can anyone show me where i'm going wrong?</p>
  
  <pre><code>import 'package:flutter/material.dart';
  
  void main() =&gt; runApp(new MyApp());
  
  class MyApp extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return new MaterialApp(
        title: 'Flutter Demo',
        theme: ThemeData(
            brightness: Brightness.dark,
            primaryColor: Colors.lightBlue[800],
            accentColor: Colors.cyan[600],
            textTheme: TextTheme(body1: TextStyle(color: Colors.blue))),
        home: new MyHomePage(title: 'Flutter Demo Home Page'),
      );
    }
  }
  
  class MyHomePage extends StatefulWidget {
    MyHomePage({Key key, this.title}) : super(key: key);
  
    final String title;
  
    @override
    _MyHomePageState createState() =&gt; new _MyHomePageState();
  }
  
  class _MyHomePageState extends State&lt;MyHomePage&gt; {
    @override
    Widget build(BuildContext context) {
      return new Scaffold(
          appBar: new AppBar(
            title: Text(widget.title),
          ),
          body: Center(
              child: Theme(
                  data: Theme.of(context).copyWith(
                      textTheme:
                          TextTheme(body1: TextStyle(color: Colors.yellow))),
                  child: Text("hello"))));
    }
  }
  </code></pre>