modal_bottom_sheet icon indicating copy to clipboard operation
modal_bottom_sheet copied to clipboard

incompatible about 3.10.0

Open Zvirtuey opened this issue 1 year ago • 7 comments

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

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

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;

Zvirtuey avatar May 15 '23 11:05 Zvirtuey

3.0.0-pre resolved this for me

TDuffinNTU avatar May 17 '23 16:05 TDuffinNTU

I think this library is dead...

stcojo avatar May 18 '23 12:05 stcojo

@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 :)

TDuffinNTU avatar May 18 '23 12:05 TDuffinNTU

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

harshitAmar avatar Jun 16 '23 19:06 harshitAmar

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

thomashrabe avatar Jun 24 '23 17:06 thomashrabe

@thomashrabe

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

Fox520 avatar Jun 24 '23 22:06 Fox520

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?

vicenterusso avatar Jul 05 '23 13:07 vicenterusso