booleanbites / houzi-support

Support forum repo for issues & bugs reported for Houzi Flutter App.
4 stars 0 forks source link

Dart library 'dart:ui' is not available on this platform. #43

Closed zaidshakhshir closed 1 year ago

zaidshakhshir commented 1 year ago

I got this error while running the app :-

/D:/flutter/packages/flutter/lib/src/material/bottom_navigation_bar_theme.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform. import 'dart:ui' show lerpDouble;

i'm using flutter 3.0.4 dart => 2.17.5

AdilSoomro commented 1 year ago
  1. Can you post your response to this command?

    flutter doctor —verbose
  2. Can you confirm you are opening correct folder. You should open houzi-1.x.x folder from houzi-flutter-app. Please post screenshot of the project you’ve opened.

  3. Flutter 3.0.4 is more than one year old. You should really update your flutter.

zaidshakhshir commented 1 year ago

1- flutter doctor --verbose

PS C:\Users\User\Desktop\AqaratPlus\houzi-1.1.5_1> flutter doctor -verbose
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.0.4, on Microsoft Windows [Version 10.0.19044.2604], locale en-US)
Checking Android licenses is taking an unexpectedly long time...[√] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.2.6)
[!] Android Studio (version 2022.1)
    X Unable to find bundled Java version.
[√] IntelliJ IDEA Community Edition (version 2022.2)
[√] VS Code (version 1.76.0)
[√] Connected device (3 available)
[√] HTTP Host Availability
! Doctor found issues in 1 category.

2- here is a screenshot (https://imgtr.ee/i/oAYhQ) 3- i'm using flutter 3.0.4 based on what i have seen in support section in (themeforest)

AdilSoomro commented 1 year ago

From your screenshot, it doesn't seem to be detecting it as flutter project. Once it detects it as flutter project, the folder logo beside houzi-1.1.5_1 will change to flutter logo. Have you installed flutter plugin in Android Studio?

flutter-android-studio

Also it says it isn't detecting java, have you downloaded java and set its environmental variable ie JAVA_HOME etc?

Can you update to latest version 3.7.x

zaidshakhshir commented 1 year ago

I'm using IntelliJ IDEA and updated flutter & dart as following :-

C:\Users\User>dart --version
Dart SDK version: 2.19.4 (stable) (Tue Mar 7 09:58:46 2023 +0000) on "windows_x64"
C:\Users\User>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.7.7, on Microsoft Windows [Version 10.0.19044.2604], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.2.6)
[√] Android Studio (version 2022.1)
[√] IntelliJ IDEA Community Edition (version 2022.3)
[√] VS Code (version 1.76.0)
[√] Connected device (3 available)
[√] HTTP Host Availability

• No issues found!

and now i run the app and got the following message

C:/tools/dart-sdk/bin/dart.exe --enable-asserts C:\Users\User\Desktop\AqaratPlus\houzi-1.1.5_1\lib\main.dart packages/houzi_package/lib/houzi_main.dart:3:8: Error: Error when reading '/D:/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-2.1.1/lib/firebase_core.dart': The system cannot find the path specified.

import 'package:firebase_core/firebase_core.dart'; ^ packages/houzi_package/lib/houzi_main.dart:14:8: Error: Error when reading '/D:/flutter/.pub-cache/hosted/pub.dartlang.org/intl-0.17.0/lib/intl.dart': The system cannot find the path specified.

import 'package:intl/intl.dart'; ^ packages/houzi_package/lib/files/generic_methods/generic_methods.dart:23:8: Error: Error when reading '/D:/flutter/.pub-cache/hosted/pub.dartlang.org/intl-0.17.0/lib/intl.dart': The system cannot find the path specified.

import 'package:intl/intl.dart'; ^ packages/houzi_package/lib/houzi_main.dart:15:8: Error: Error when reading '/D:/flutter/.pub-cache/hosted/pub.dartlang.org/package_info_plus-1.3.0/lib/package_info_plus.dart': The system cannot find the path specified.

import 'package:package_info_plus/package_info_plus.dart'; ^ packages/houzi_package/lib/houzi_main.dart:16:8: Error: Error when reading '/D:/flutter/.pub-cache/hosted/pub.dartlang.org/provider-6.0.1/lib/provider.dart': The system cannot find the path specified.

import 'package:provider/provider.dart'; ^ packages/houzi_package/lib/files/generic_methods/generic_methods.dart:24:8: Error: Error when reading '/D:/flutter/.pub-cache/hosted/pub.dartlang.org/provider-6.0.1/lib/provider.dart': The system cannot find the path specified.

import 'package:provider/provider.dart'; ^ packages/houzi_package/lib/widgets/deep_link_widget.dart:3:8: Error: Error when reading '/D:/flutter/.pub-cache/hosted/pub.dartlang.org/provider-6.0.1/lib/provider.dart': The system cannot find the path specified.

import 'package:provider/provider.dart'; ^ packages/houzi_package/lib/pages/home_screen_drawer_menu_pages/settings_page.dart:27:8: Error: Error when reading '/D:/flutter/.pub-cache/hosted/pub.dartlang.org/provider-6.0.1/lib/provider.dart': The system cannot find the path specified.

import 'package:provider/provider.dart'; ^ packages/houzi_package/lib/pages/home_screen_drawer_menu_pages/user_related/user_profile.dart:21:8: Error: Error when reading '/D:/flutter/.pub-cache/hosted/pub.dartlang.org/provider-6.0.1/lib/provider.dart': The system cannot find the path specified.

import 'package:provider/provider.dart'; ^ /D:/flutter/packages/flutter/lib/src/material/about.dart:61:5: Error: The 'super-parameters' language feature is disabled for this library. Try removing the package language version or setting the language version to 2.17 or higher. super.key, ^^^^^

Process finished with exit code 254

AdilSoomro commented 1 year ago

Please setup AnyDesk and share you id.

zaidshakhshir commented 1 year ago

259 414 767