title: Flutter - Change default font "undefined name context"
body: <p>I'am trying to change the default font theme of the app, but it gives me an error that says:</p>
  
  <blockquote>
    <p>undefined name 'context'.<br/>
    Try correcting the name to one that is defined, or defining the name.</p>
  </blockquote>
  
  <p>The error in this line <code>Theme.of(context).textTheme,</code> here is my code:</p>
  
  <pre><code>import 'package:flutter/material.dart';
  import 'package:google_fonts/google_fonts.dart';
  import 'package:nazar_mob/app_base/animations.dart';
  import 'package:nazar_mob/pages/second_page.dart';
  import 'package:nazar_mob/app_base/app_bar.dart';
  
  void main() {
  runApp(
      new MaterialApp(
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
          textTheme: GoogleFonts.robotoCondensedTextTheme(
          Theme.of(context).textTheme,
          ),
      ),
      home: new MyFirstPage(),
      routes: &lt;String, WidgetBuilder&gt;{
          "/MySecondPage": (BuildContext context) =&gt; new MySecondPage()
      },
      )
  );
  }
  </code></pre>