Skip to content

Flutter app fails to compile – missing wishlist_item_list.dart file in Wishlist module #40

@vfixtechnology

Description

@vfixtechnology

Describe the bug
Keep getting wishtlist_item_list.dart error

Keep getting error while running flutter run:

lib/screens/wishList/utils/index.dart:13:1: Error: Error when reading 'lib/screens/wishList/view/widget/wishlist_item_list.dart': No such file or directory
export 'package:bagisto_app_demo/screens/wishList/view/widget/wishlist_item_list.dart';
^
lib/screens/wishList/view/wishlist_screen.dart:239:11: Error: The method 'WishlistItemList' isn't defined for the class '_WishListScreenState'.

  • '_WishListScreenState' is from 'package:bagisto_app_demo/screens/wishList/view/wishlist_screen.dart' ('lib/screens/wishList/view/wishlist_screen.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'WishlistItemList'.
    ? WishlistItemList(
    ^^^^^^^^^^^^^^^^
    Waiting for connection from debug service on Chrome... 62.9s
    Failed to compile application.
    art@art-Aspire-A324-51:~/Desktop/opensource-ecommerce-mobile-app$

To Reproduce
Steps to reproduce the behavior:

  1. Clone the Bagisto Flutter app repo.
  2. Install all dependencies as per the documentation
    3.Run the app using flutter run.
  3. Observe the compilation error related to missing wishlist_item_list.dart.

Expected behavior
The app should compile successfully and load the Wishlist screen without any missing file or undefined widget error.

Screenshots
Add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions