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

incompatible about 3.10.0 #349

Open
Zvirtuey opened this issue May 15, 2023 · 7 comments
Open

incompatible about 3.10.0 #349

Zvirtuey opened this issue May 15, 2023 · 7 comments

Comments

@Zvirtuey
Copy link

Flutter 3.10.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 84a1e904f4 (6 days ago) • 2023-05-09 07:41:44 -0700
Engine • revision d44b5a94c9
Tools • Dart 3.0.0 • DevTools 2.23.1

----------------------------------------------------------------------------------------------->

modal_bottom_sheet-2.1.2/lib/src/material_with_modal_page_route.dart:4:1: Error: 'ModalBottomSheetRoute' is imported from both 'package:flutter/src/material/bottom_sheet.dart' and 'package:modal_bottom_sheet/src/bottom_sheet_route.dart'.
import '../modal_bottom_sheet.dart';
^^^^^^^^^^^^^^^^^^^^^

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(
^^^^^^^^^^^^^^^^^^^^^

modal_bottom_sheet-2.1.2/lib/src/bottom_sheets/material_bottom_sheet.dart:50:10: Error: A value of type 'Object?' can't be returned from an async function with return type 'Future<T?>'.

  • 'Object' is from 'dart:core'.
  • 'Future' is from 'dart:async'.
    return result;
    ^

modal_bottom_sheet-2.1.2/lib/src/bottom_sheets/bar_bottom_sheet.dart:102: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(
^^^^^^^^^^^^^^^^^^^^^

modal_bottom_sheet-2.1.2/lib/src/bottom_sheets/bar_bottom_sheet.dart:125:10: Error: A value of type 'Object?' can't be returned from an async function with return type 'Future<T?>'.

  • 'Object' is from 'dart:core'.
  • 'Future' is from 'dart:async'.
    return result;
@TDuffinNTU
Copy link

3.0.0-pre resolved this for me

@stcojo
Copy link

stcojo commented May 18, 2023

I think this library is dead...

@TDuffinNTU
Copy link

@stcojo afaik it's being re-written by the same dev, and they're currently taking a hiatus so the pre-release should hopefully be merged when theyre back. If not maybe someone will have to take a look at forking :)

@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

@thomashrabe
Copy link

@harshitAmar how can I include your 3.10 fix in my project best?
I dont understand where to put your fourliner... New to flutter.

@Fox520
Copy link

Fox520 commented Jun 24, 2023

@thomashrabe

dependencies:
  flutter:
    sdk: flutter
  modal_bottom_sheet: ^3.0.0-pre

@vicenterusso
Copy link

Can we expect a new compatible stable release anytime soon? I think i'ts the only "non-stable" package not compatible with latest version in my app.

Is there any open issue to solve for the final 3 release I could help?

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

7 participants