title: The relevant error-causing widget was TextField
body: <p>I recently added <strong>Firebase</strong> to my flutter project and got this error while trying to run it on an iOS Emulator<a href="https://i.stack.imgur.com/B24uz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/B24uz.png" alt="enter image description here" /></a></p>
  <pre><code>import 'package:flutter/material.dart';
  import 
  </code></pre>
  <p>'package:flutter_auth/components/text_field_container.dart';
  import 'package:flutter_auth/constants.dart';</p>
  <pre><code>class RoundedPasswordField extends StatelessWidget {
    final ValueChanged&lt;String&gt; onChanged;
    const RoundedPasswordField({
      Key key,
      this.onChanged,
    }) : super(key: key);
  
    @override
    Widget build(BuildContext context) {
      return TextFieldContainer(
        child: TextField(
          obscureText: true,
          onChanged: onChanged,
          cursorColor: kPrimaryColor,
          decoration: InputDecoration(
            hintText: &quot;Password&quot;,
            icon: Icon(
              Icons.lock,
              color: kPrimaryColor,
            ),
            suffixIcon: Icon(
              Icons.visibility,
              color: kPrimaryColor,
            ),
            border: InputBorder.none,
          ),
        ),
      );
    }
  }
  </code></pre>