title: Keep getting this error trying to build flutter app in android studio
body: <p>Launching lib/main.dart on POT LX1 in debug mode...
  ../../../../../../.pub-cache/hosted/pub.dartlang.org/flutter_typeahead-3.2.4/lib/src/flutter_typeahead.dart:754:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.</p>
  <ul>
  <li>'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../../../../snap/flutter/common/flutter/packages/flutter/lib/src/widgets/binding.dart').
  WidgetsBinding.instance!.removeObserver(this);
  ^
  ../../../../../../.pub-cache/hosted/pub.dartlang.org/flutter_typeahead-3.2.4/lib/src/flutter_typeahead.dart:767:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.</li>
  <li>'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../../../../snap/flutter/common/flutter/packages/flutter/lib/src/widgets/binding.dart').
  WidgetsBinding.instance!.addObserver(this);
  ^
  ../../../../../../.pub-cache/hosted/pub.dartlang.org/flutter_typeahead-3.2.4/lib/src/flutter_typeahead.dart:801:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.</li>
  <li>'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../../../../snap/flutter/common/flutter/packages/flutter/lib/src/widgets/binding.dart').
  WidgetsBinding.instance!.addPostFrameCallback((duration) {
  ^
  ../../../../../../.pub-cache/hosted/pub.dartlang.org/flutter_typeahead-3.2.4/lib/src/flutter_typeahead.dart:936:9: Error: No named parameter with the name 'maxLengthEnforced'.
  maxLengthEnforced: widget.textFieldConfiguration.maxLengthEnforced,
  ^^^^^^^^^^^^^^^^^
  ../../../../../../snap/flutter/common/flutter/packages/flutter/lib/src/material/text_field.dart:276:9: Context: Found this candidate, but the arguments don't match.
  const TextField({
  ^^^^^^^^^
  ../../../../../../.pub-cache/hosted/pub.dartlang.org/flutter_typeahead-3.2.4/lib/src/cupertino_flutter_typeahead.dart:558:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.</li>
  <li>'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../../../../snap/flutter/common/flutter/packages/flutter/lib/src/widgets/binding.dart').
  WidgetsBinding.instance!.removeObserver(this);
  ^
  ../../../../../../.pub-cache/hosted/pub.dartlang.org/flutter_typeahead-3.2.4/lib/src/cupertino_flutter_typeahead.dart:571:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.</li>
  <li>'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../../../../snap/flutter/common/flutter/packages/flutter/lib/src/widgets/binding.dart').
  WidgetsBinding.instance!.addObserver(this);
  ^
  ../../../../../../.pub-cache/hosted/pub.dartlang.org/flutter_typeahead-3.2.4/lib/src/cupertino_flutter_typeahead.dart:605:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.</li>
  <li>'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../../../../snap/flutter/common/flutter/packages/flutter/lib/src/widgets/binding.dart').
  WidgetsBinding.instance!.addPostFrameCallback((duration) {
  ^
  ../../../../../../.pub-cache/hosted/pub.dartlang.org/flutter_typeahead-3.2.4/lib/src/cupertino_flutter_typeahead.dart:746:9: Error: No named parameter with the name 'maxLengthEnforced'.
  maxLengthEnforced: widget.textFieldConfiguration.maxLengthEnforced,
  ^^^^^^^^^^^^^^^^^
  ../../../../../../snap/flutter/common/flutter/packages/flutter/lib/src/cupertino/text_field.dart:209:9: Context: Found this candidate, but the arguments don't match.
  const CupertinoTextField({
  ^^^^^^^^^^^^^^^^^^</li>
  </ul>
  <p>FAILURE: Build failed with an exception.</p>
  <ul>
  <li><p>Where:
  Script '/home/sheddy/snap/flutter/common/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1156</p>
  </li>
  <li><p>What went wrong:
  Execution failed for task ':app:compileFlutterBuildDebug'.</p>
  </li>
  </ul>
  <blockquote>
  <p>Process 'command '/home/sheddy/snap/flutter/common/flutter/bin/flutter'' finished with non-zero exit value 1</p>
  </blockquote>
  <ul>
  <li><p>Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.</p>
  </li>
  <li><p>Get more help at <a href="https://help.gradle.org" rel="nofollow noreferrer">https://help.gradle.org</a></p>
  </li>
  </ul>
  <p>BUILD FAILED in 1m 15s
  Running Gradle task 'assembleDebug'...                             76.7s
  Exception: Gradle task assembleDebug failed with exit code 1</p>