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

Error: 'ModalBottomSheetRoute' is imported from both #320

Closed
Umesh-Kumar opened this issue Jan 27, 2023 · 3 comments
Closed

Error: 'ModalBottomSheetRoute' is imported from both #320

Umesh-Kumar opened this issue Jan 27, 2023 · 3 comments

Comments

@Umesh-Kumar
Copy link

Issue details:
/AppData/Local/Pub/Cache/hosted/pub.dev/modal_bottom_sheet-2.1.2/lib/src/bottom_sheets/material_bottom_sheet.dart:28:13: Error: 'ModalBottomSheetRoute' is imported from both 'package:flutter/src/material/bottom_sheet.dart' and 'package:modal_bottom_sheet/src/bottom_sheet_route.dart'.
.push(ModalBottomSheetRoute(
^^^^^^^^^^^^^^^^^^^^^

@jemuri
Copy link

jemuri commented Jan 28, 2023

issue too

@jamesblasco
Copy link
Owner

Please follow the migration guide I just created here #325

@harshitAmar
Copy link
Contributor

I've fixed it for me and here it is, You can use it by writing
modal_bottom_sheet:
git:
url: https://github.com/harshitAmar/modal_bottom_sheet.git
ref: main

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

4 participants