Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ali-webdev's avatar

I am getting errors running the Bagisto Mobile Ecomm project in Flutter (Android Studio) using GraphQL with a Bagisto backend in a DDEV Docker setup. Should I remove conflicting exports or use aliases? Using Ubuntu OS. Please help!

Package flutter_local_notifications:linux references flutter_local_notifications_linux:linux as the default plugin, but the package does not exist, or is not a plugin package. Ask the maintainers of flutter_local_notifications to either avoid referencing a default implementation via platforms: linux: default_package: flutter_local_notifications_linux or create a plugin named flutter_local_notifications_linux.

Launching lib/main.dart on sdk gphone64 x86 64 in debug mode... Running Gradle task 'assembleDebug'... You are applying Flutter's app_plugin_loader Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/to/flutter-gradle-plugin-apply

You are applying Flutter's main Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/to/flutter-gradle-plugin-apply

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/product_screen/utils/index.dart:12:1: Error: 'CarouselController' is exported from both 'package:carousel_slider/carousel_controller.dart' and 'package:flutter/src/material/carousel.dart'. export 'package:bagisto_app_demo/utils/index.dart'; ^ lib/screens/product_screen/view/downloadable_product_options.dart:29:36: Error: 'CarouselController' is exported from both 'package:carousel_slider/carousel_controller.dart' and 'package:flutter/src/material/carousel.dart'. final buttonCarouselController = CarouselController(); ^^^^^^^^^^^^^^^^^^ lib/screens/product_screen/view/downloadable_product_sample.dart:33:36: Error: 'CarouselController' is exported from both 'package:carousel_slider/carousel_controller.dart' and 'package:flutter/src/material/carousel.dart'. final buttonCarouselController = CarouselController(); ^^^^^^^^^^^^^^^^^^ lib/screens/product_screen/view/product_image_view.dart:33:36: Error: 'CarouselController' is exported from both 'package:carousel_slider/carousel_controller.dart' and 'package:flutter/src/material/carousel.dart'. final buttonCarouselController = CarouselController(); ^^^^^^^^^^^^^^^^^^ lib/screens/wishList/view/wishlist_screen.dart:232: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( ^^^^^^^^^^^^^^^^ ../../.pub-cache/hosted/pub.dev/flutter_widget_from_html_core-0.14.12/lib/src/widgets/html_flex.dart:69:7: Error: The non-abstract class 'HtmlFlex' is missing implementations for these members: Flex.spacing Try to either provide an implementation, inherit an implementation from a superclass or mixin, mark the class as abstract, or provide a 'noSuchMethod' implementation. class HtmlFlex extends MultiChildRenderObjectWidget ^^^^^^^^ ../../development/flutter/packages/flutter/lib/src/widgets/basic.dart:4715:16: Context: 'Flex.spacing' is defined here. final double spacing; ^^^^^^^ ../../.pub-cache/hosted/pub.dev/flutter_widget_from_html_core-0.14.12/lib/src/widgets/html_flex.dart:182:7: Error: The non-abstract class '_HtmlFlexRenderObject' is missing implementations for these members:

RenderFlex.spacing RenderFlex.spacing= Try to either provide an implementation, inherit an implementation from a superclass or mixin, mark the class as abstract, or provide a 'noSuchMethod' implementation. class _HtmlFlexRenderObject extends RenderBox ^^^^^^^^^^^^^^^^^^^^^ ../../development/flutter/packages/flutter/lib/src/rendering/flex.dart:647:14: Context: 'RenderFlex.spacing' is defined here. double get spacing => _spacing; ^^^^^^^ ../../development/flutter/packages/flutter/lib/src/rendering/flex.dart:649:7: Context: 'RenderFlex.spacing=' is defined here. set spacing (double value) { ^^^^^^^ ../../.pub-cache/hosted/pub.dev/carousel_slider-4.2.1/lib/carousel_slider.dart:9:1: Error: 'CarouselController' is imported from both 'package:carousel_slider/carousel_controller.dart' and 'package:flutter/src/material/carousel.dart'. import 'carousel_controller.dart'; ^^^^^^^^^^^^^^^^^^ ../../.pub-cache/hosted/pub.dev/carousel_slider-4.2.1/lib/carousel_slider.dart:48:15: Error: 'CarouselController' is imported from both 'package:carousel_slider/carousel_controller.dart' and 'package:flutter/src/material/carousel.dart'. : CarouselController() as CarouselControllerImpl, ^^^^^^^^^^^^^^^^^^ ../../.pub-cache/hosted/pub.dev/carousel_slider-4.2.1/lib/carousel_slider.dart:62:15: Error: 'CarouselController' is imported from both 'package:carousel_slider/carousel_controller.dart' and 'package:flutter/src/material/carousel.dart'. : CarouselController() as CarouselControllerImpl, ^^^^^^^^^^^^^^^^^^ Target kernel_snapshot_program failed: Exception

FAILURE: Build failed with an exception.

Where: Script '/home/ali/development/flutter/packages/flutter_tools/gradle/src/main/groovy/flutter.groovy' line: 1685

What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command '/home/ali/development/flutter/bin/flutter'' 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 https://help.gradle.org BUILD FAILED in 1m 48s Error: Gradle task assembleDebug failed with exit code 1

I am getting, again and again, these errors as I try to run the bagisto ecomm project in Flutter in Android Studio cod, what should I do? Should I remove the exports causing that error or refactor and make and aliases for these!!??

I am using ubuntu os please help me in this regard thank you!

0 likes
0 replies

Please or to participate in this conversation.