Giter Club home page Giter Club logo

Comments (17)

luckysmg avatar luckysmg commented on August 11, 2024

最新版本应该这个参数支持按钮所有圆角的吧,试试最新版本

from flutter_swipe_action_cell.

Allen5 avatar Allen5 commented on August 11, 2024

尝试了下,貌似还是不行

图片传不上去,我贴下代码和版本信息:

代码:
trailingActions: [
SwipeAction(
color: FlowPrimaryColor,
backgroundRadius: 5.0,
content: Container(
child: Icon(
Icons.delete,
color: FlowReverseStandColor,
size: 32,),
),
widthSpace: 60,
forceAlignmentToBoundary: true,
onTap: (handler) async {
print("onTap");
}),
],

版本:
flutter_swipe_action_cell:
dependency: "direct main"
description:
name: flutter_swipe_action_cell
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.1.0"

from flutter_swipe_action_cell.

luckysmg avatar luckysmg commented on August 11, 2024

有反应的啊,你设置成20看看,5太小了

from flutter_swipe_action_cell.

Allen5 avatar Allen5 commented on August 11, 2024

image

效果还是左上和左下的。 额,我是想实现右上和右下,左上和左下不带圆角的

from flutter_swipe_action_cell.

luckysmg avatar luckysmg commented on August 11, 2024

哦哦你是这个意思,这个圆角我是是四周全部给的hhhhhh,你拉到最右侧就能看到另外的圆角了hhhhhh

from flutter_swipe_action_cell.

luckysmg avatar luckysmg commented on August 11, 2024

你这个按钮在右侧。。不应该要右侧圆角么,我这边设计的是,在右侧,显示按钮左侧圆角,若按钮在左侧,显示按钮右侧圆角,如果

from flutter_swipe_action_cell.

Allen5 avatar Allen5 commented on August 11, 2024

是的,我是想要右侧圆角。然后backgroundRadius传入之后是左侧的。不知道如何实现了

from flutter_swipe_action_cell.

luckysmg avatar luckysmg commented on August 11, 2024

那么你可以利用action的content属性哈,这样你就可以自定义里面的样式了

from flutter_swipe_action_cell.

Allen5 avatar Allen5 commented on August 11, 2024

OK,我试试。看看后续是否可以升级成backgroundRadius传入 BorderRadius的属性哈?这样可以简单的传入自定义的了

from flutter_swipe_action_cell.

luckysmg avatar luckysmg commented on August 11, 2024

这个因为内部的布局原理问题暂时不考虑,后续有时间我会探索一下哈

from flutter_swipe_action_cell.

luckysmg avatar luckysmg commented on August 11, 2024

可以实现吗

from flutter_swipe_action_cell.

luckysmg avatar luckysmg commented on August 11, 2024

如果没问题的话就关了哈,有问题可以随时reopen

from flutter_swipe_action_cell.

Allen5 avatar Allen5 commented on August 11, 2024

好的,用content的圆角会被外面一层盖住哈。没有成功。

from flutter_swipe_action_cell.

luckysmg avatar luckysmg commented on August 11, 2024

参考一下exmaple代码

from flutter_swipe_action_cell.

Allen5 avatar Allen5 commented on August 11, 2024

好的

from flutter_swipe_action_cell.

luckysmg avatar luckysmg commented on August 11, 2024

Example 8 仿微信的那个

from flutter_swipe_action_cell.

Allen5 avatar Allen5 commented on August 11, 2024

好的,3KS

from flutter_swipe_action_cell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.