flutter_xlider icon indicating copy to clipboard operation
flutter_xlider copied to clipboard

flutter_xlider: ^3.4.0 - Compile error with Flutter 3.0.0

Open ravinder-bb opened this issue 2 years ago • 4 comments

Hello everyone,

I'm getting the following error many Errors: Error: No named parameter with the name 'overflow'. and Context: Found this candidate, but the arguments don't match. once I upgraded to Flutter 3.0.0 today:


/home/user/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_xlider-3.4.0/lib/flutter_xlider.dart:322:19: Error: No named parameter with the name 'overflow'.
                  overflow: Overflow.visible,
                  ^^^^^^^^
/home/user/snap/flutter/common/flutter/packages/flutter/lib/src/widgets/basic.dart:3708:3: Context: Found this candidate, but the arguments don't match.
  Stack({

  ^^^^^

Hopefully it's something that can get addressed soon!

Thank you, Ravinder

ravinder-bb avatar May 13 '22 12:05 ravinder-bb

As per Flutter SDK issue:- https://github.com/flutter/flutter/issues/66030#issuecomment-694876279

Master branch already modified that issue but the pub version has not been updated use this.

Temporary workaround:

flutter_xlider:
  git:
    url: https://github.com/Ali-Azmoud/flutter_xlider.git
    ref: master

swaroopsuthar avatar May 13 '22 13:05 swaroopsuthar

Thanks @swaroopsuthar,

But i got any other issue

/home/user/snap/flutter/common/flutter/.pub-cache/git/flutter_xlider-ef4a358f84bb6a6119b213fef6f759f22246c882/lib/flutter_xlider.dart:442:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
 - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('/home/user/snap/flutter/common/flutter/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance!.addPostFrameCallback((_) {
                   ^

ravinder-bb avatar May 13 '22 13:05 ravinder-bb

Temporary workaround:

flutter_xlider:
  git:
    url: https://github.com/swaroopsuthar/flutter_xlider.git
    ref: master

swaroopsuthar avatar May 13 '22 14:05 swaroopsuthar

can't someone update the pub version?

maitycyrus avatar Sep 08 '22 09:09 maitycyrus