You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using dash_chat_2 Version 0.0.19, while running the app it gives below error. Can anyone tell me how to solve it ??
Using Flutter version : 3.3.10
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
Running Gradle task 'assembleDebug'...
/D:/Flutter%20Sdks/flutter_windows_3.3.10-stable/flutter/.pub-cache/hosted/pub.dartlang.org/dash_chat_2-0.0.19/lib/src/widgets/input_toolbar/input_toolbar.dart:49:32: Error: The getter 'View' isn't defined for the class 'InputToolbarState'.
'InputToolbarState' is from 'package:dash_chat_2/dash_chat_2.dart' ('/D:/Flutter%20Sdks/flutter_windows_3.3.10-stable/flutter/.pub-cache/hosted/pub.dartlang.org/dash_chat_2-0.0.19/lib/dash_chat_2.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'View'.
final double bottomInset = View.of(context).viewInsets.bottom;
^^^^
/D:/Flutter%20Sdks/flutter_windows_3.3.10-stable/flutter/.pub-cache/hosted/pub.dartlang.org/dash_chat_2-0.0.19/lib/src/widgets/input_toolbar/input_toolbar.dart:177:42: Error: A value of type 'OverlayState?' can't be assigned to a variable of type 'OverlayState' because 'OverlayState?' is nullable and 'OverlayState' isn't.
'OverlayState' is from 'package:flutter/src/widgets/overlay.dart' ('/D:/Flutter%20Sdks/flutter_windows_3.3.10-stable/flutter/packages/flutter/lib/src/widgets/overlay.dart').
final OverlayState overlay = Overlay.of(context);
^
I am using dash_chat_2 Version 0.0.19, while running the app it gives below error. Can anyone tell me how to solve it ??
Using Flutter version : 3.3.10
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
Running Gradle task 'assembleDebug'...
/D:/Flutter%20Sdks/flutter_windows_3.3.10-stable/flutter/.pub-cache/hosted/pub.dartlang.org/dash_chat_2-0.0.19/lib/src/widgets/input_toolbar/input_toolbar.dart:49:32: Error: The getter 'View' isn't defined for the class 'InputToolbarState'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'View'.
final double bottomInset = View.of(context).viewInsets.bottom;
^^^^
/D:/Flutter%20Sdks/flutter_windows_3.3.10-stable/flutter/.pub-cache/hosted/pub.dartlang.org/dash_chat_2-0.0.19/lib/src/widgets/input_toolbar/input_toolbar.dart:177:42: Error: A value of type 'OverlayState?' can't be assigned to a variable of type 'OverlayState' because 'OverlayState?' is nullable and 'OverlayState' isn't.
final OverlayState overlay = Overlay.of(context);
^
FAILURE: Build failed with an exception.
Where:
Script 'D:\Flutter Sdks\flutter_windows_3.3.10-stable\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1159
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
BUILD FAILED in 7s
The text was updated successfully, but these errors were encountered: