jamesblasco / modal_bottom_sheet

Flutter | Create advanced modal bottom sheets. Material, Cupertino or your own style
https://pub.dev/packages/modal_bottom_sheet
MIT License
1.83k stars 461 forks source link

Not compatible with flutter 3.13.0 #366

Closed river2202 closed 3 months ago

river2202 commented 10 months ago

Got following error

../../../../../.pub-cache/hosted/pub.dev/sheet-1.0.0-pre/lib/src/scrollable.dart:313:7: Error: The non-abstract class 'SheetState' is missing implementations for these members:
 - ScrollContext.devicePixelRatio
Try to either
 - provide an implementation,
 - inherit an implementation from a superclass or mixin,
 - mark the class as abstract, or
 - provide a 'noSuchMethod' implementation.

class SheetState extends State<SheetScrollable>
maRci002 commented 10 months ago

PR #365 should resolve this problem. The current workaround for using the PR commit in pubspec.yaml is: (_if you are using the sheet package directly, then override it in dependencies. If you are using the modal_bottom_sheet package, then override it in dependency_overrides_)

dependency_overrides:
  sheet:
    git:
      url: https://github.com/jamesblasco/modal_bottom_sheet.git
      ref: 471c15c92b1410a710020de01569b74535456ddd
      path: sheet
jamesblasco commented 3 months ago

The new version should work with latest Flutter 3.19.0