flutter_custom_clippers icon indicating copy to clipboard operation
flutter_custom_clippers copied to clipboard

OvalBottomBorderClipper

Open satheeshkumar0009 opened this issue 3 years ago • 5 comments

show the error:The argument type 'OvalBottomBorderClipper' can't be assigned to the parameter type 'CustomClipper<Rect>?'

satheeshkumar0009 avatar Feb 19 '22 07:02 satheeshkumar0009

please show your code how you are using it?

lohanidamodar avatar Apr 02 '22 14:04 lohanidamodar

Same problem with OvalTopBorderClipper().

error: The argument type 'OvalTopBorderClipper' can't be assigned to the parameter type 'CustomClipper<Rect>?'. (argument_type_not_assignable at [my_app] lib/screens/dashboard/profile/ui_tab_profile.dart:46)

Reason: OvalTopBorderClipper extends CustomClipper (correct) with type <Path> referred to here in package:flutter/material.dart, however ClipOval clipper is defined with CustomClipper<Rect>? found here.

i.e. OvalTopBorderClipper extends CustomerClipper<Path> isn't the same type as CustomClipper<Rect>? from ClipOval.

Flutter Doctor

[✓] Flutter (Channel stable, 2.10.4, on Arch Linux 5.16.13-arch1-1, locale en_US.UTF-8)
    • Flutter version 2.10.4 at /home/cybex/.flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c860cba910 (3 weeks ago), 2022-03-25 00:23:12 -0500
    • Engine revision 57d3bac3dd
    • Dart version 2.16.2
    • DevTools version 2.9.2

cybex-dev avatar Apr 17 '22 14:04 cybex-dev

Seems like a blatant bug to me that has yet to be corrected. Happening to me as well

djsjr avatar Mar 24 '23 17:03 djsjr

image same here

iOS-Kel avatar Sep 11 '23 04:09 iOS-Kel

Using ClipPath instead of ClipOval resolved the issue.

JasurbekErgashev avatar Mar 13 '24 06:03 JasurbekErgashev