flutter error

Joined
Dec 17, 2022
Messages
1
C:\src\flutter\bin\flutter.bat --no-color build apk

Building without sound null safety
For more information see
Please, Log in or Register to view URLs content!


Running Gradle task 'assembleRelease'...
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_search-5.0.6/lib/src/properties/text_field_props.dart:14:9: Error: Type 'EditableTextContextMenuBuilder' not found.
final EditableTextContextMenuBuilder? contextMenuBuilder;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_search-5.0.6/lib/dropdown_search.dart:578:7: Error: No named parameter with the name 'useSafeArea'.
useSafeArea: widget.popupProps.modalBottomSheetProps.useSafeArea,
^^^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/bottom_sheet.dart:680:12: Context: Found this candidate, but the arguments don't match.
Future<T?> showModalBottomSheet<T>({
^^^^^^^^^^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_search-5.0.6/lib/dropdown_search.dart:603:39: Error: Property 'context' cannot be accessed on 'OverlayState?' because it is potentially null.
- 'OverlayState' is from 'package:flutter/src/widgets/overlay.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/overlay.dart').
Try accessing using ?. instead.
var overlay = Overlay.of(context).context.findRenderObject() as RenderBox;
^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_search-5.0.6/lib/src/widgets/selection_widget.dart:471:19: Error: No named parameter with the name 'contextMenuBuilder'.
contextMenuBuilder: widget.popupProps.searchFieldProps.contextMenuBuilder,
^^^^^^^^^^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/text_field.dart:277:9: Context: Found this candidate, but the arguments don't match.
const TextField({
^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_search-5.0.6/lib/src/properties/text_field_props.dart:14:9: Error: 'EditableTextContextMenuBuilder' isn't a type.
final EditableTextContextMenuBuilder? contextMenuBuilder;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_typeahead-4.3.1/lib/src/flutter_typeahead.dart:898:40: Error: Member not found: 'Scrollable.maybeOf'.
final scrollableState = Scrollable.maybeOf(context);
^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_typeahead-4.3.1/lib/src/cupertino_flutter_typeahead.dart:649:40: Error: Member not found: 'Scrollable.maybeOf'.
final scrollableState = Scrollable.maybeOf(context);
^^^^^^^


FAILURE: Build failed with an exception.

* Where:
Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1159

* What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
> Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1

* 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.

* Get more help at
Please, Log in or Register to view URLs content!


BUILD FAILED in 6m 28s
Running Gradle task 'assembleRelease'... 391.3s
Gradle task assembleRelease failed with exit code 1
Process finished with exit code 1
 
Hi I also take this errors, if you can find a solution can you please share me. Thanks!
 

Latest resources

Forum statistics

Threads
5,922
Messages
13,999
Members
3,951
Latest member
markqwen
Back
Top Bottom