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

Compilation Error for MenuItem multiple inclusion #10

Open
sisirkp opened this issue May 27, 2022 · 2 comments
Open

Compilation Error for MenuItem multiple inclusion #10

sisirkp opened this issue May 27, 2022 · 2 comments

Comments

@sisirkp
Copy link

sisirkp commented May 27, 2022

With Flutter 3.x and slide_drawer: ^1.0.3, getting this below compilation issue while building the project.

../../../../Program_Installs/flutter/.pub-cache/hosted/pub.dartlang.org/slide_drawer-1.0.3/lib/src/container.dart:3:1: Error: 'MenuItem' is imported from both 'package:flutter/src/widgets/platform_menu_bar.dart' and 'package:slide_drawer/src/item.dart'.
import 'package:slide_drawer/src/item.dart';
^^^^^^^^
../../../../Program_Installs/flutter/.pub-cache/hosted/pub.dartlang.org/slide_drawer-1.0.3/lib/src/drawer.dart:6:1: Error: 'MenuItem' is imported from both 'package:flutter/src/widgets/platform_menu_bar.dart' and 'package:slide_drawer/src/item.dart'.
import 'package:slide_drawer/src/item.dart';
^^^^^^^^
../../../../Program_Installs/flutter/.pub-cache/hosted/pub.dartlang.org/slide_drawer-1.0.3/lib/src/drawer.dart:196:25: Error: The method 'SlideDrawerContainer' isn't defined for the class '_SlideDrawerState'.

  • '_SlideDrawerState' is from 'package:slide_drawer/src/drawer.dart' ('../../../../Program_Installs/flutter/.pub-cache/hosted/pub.dartlang.org/slide_drawer-1.0.3/lib/src/drawer.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'SlideDrawerContainer'.
    Widget get _drawer => SlideDrawerContainer(
    ^^^^^^^^^^^^^^^^^^^^

FAILURE: Build failed with an exception.

@ndungudedan
Copy link

facing this issue too on flutter 3.0.1

@ndungudedan
Copy link

Seems the package is no longer maintained.
You can fork it and make the necessary changes.
or maybe use my fork.

slide_drawer:
    git:
      url: https://github.com/ndungudedan/slide_drawer.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants