Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while running Flutter project using package. #90

Closed
YashrajsinhYz opened this issue Mar 8, 2024 · 1 comment
Closed

Error while running Flutter project using package. #90

YashrajsinhYz opened this issue Mar 8, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@YashrajsinhYz
Copy link

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);
    ^

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

Process 'command 'D:\Flutter Sdks\flutter_windows_3.3.10-stable\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.

BUILD FAILED in 7s

@SebastienBtr
Copy link
Owner

Look at the pinned issue: #55

@SebastienBtr SebastienBtr added the duplicate This issue or pull request already exists label Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants