Open sisirkp opened 2 years ago
facing this issue too on flutter 3.0.1
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
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'.
FAILURE: Build failed with an exception.