Comments (17)
最新版本应该这个参数支持按钮所有圆角的吧,试试最新版本
from flutter_swipe_action_cell.
尝试了下,貌似还是不行
图片传不上去,我贴下代码和版本信息:
代码:
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.
有反应的啊,你设置成20看看,5太小了
from flutter_swipe_action_cell.
效果还是左上和左下的。 额,我是想实现右上和右下,左上和左下不带圆角的
from flutter_swipe_action_cell.
哦哦你是这个意思,这个圆角我是是四周全部给的hhhhhh,你拉到最右侧就能看到另外的圆角了hhhhhh
from flutter_swipe_action_cell.
你这个按钮在右侧。。不应该要右侧圆角么,我这边设计的是,在右侧,显示按钮左侧圆角,若按钮在左侧,显示按钮右侧圆角,如果
from flutter_swipe_action_cell.
是的,我是想要右侧圆角。然后backgroundRadius传入之后是左侧的。不知道如何实现了
from flutter_swipe_action_cell.
那么你可以利用action的content属性哈,这样你就可以自定义里面的样式了
from flutter_swipe_action_cell.
OK,我试试。看看后续是否可以升级成backgroundRadius传入 BorderRadius的属性哈?这样可以简单的传入自定义的了
from flutter_swipe_action_cell.
这个因为内部的布局原理问题暂时不考虑,后续有时间我会探索一下哈
from flutter_swipe_action_cell.
可以实现吗
from flutter_swipe_action_cell.
如果没问题的话就关了哈,有问题可以随时reopen
from flutter_swipe_action_cell.
好的,用content的圆角会被外面一层盖住哈。没有成功。
from flutter_swipe_action_cell.
参考一下exmaple代码
from flutter_swipe_action_cell.
好的
from flutter_swipe_action_cell.
Example 8 仿微信的那个
from flutter_swipe_action_cell.
好的,3KS
from flutter_swipe_action_cell.
Related Issues (20)
- Bad state: No element HOT 11
- Perform first action when full swipe not available HOT 1
- 请问使用 openCellAt 有什么需要注意的地方吗 HOT 6
- Performance question HOT 4
- 最新版本 2.2.2 导致打包失败 HOT 12
- Height is not updated correctly HOT 11
- Error: Method 'addPostFrameCallback' cannot be called on 'WidgetsBinding?' because it is potentially null. HOT 2
- Use AlertDialog in nestedAction HOT 3
- 在gridview中进行删除操作,sizeTransition异常,cell被红色填充 HOT 1
- 跟TabBarView一起用,左右滑动会有冲突 HOT 1
- Error in xcode HOT 2
- scrollPosition = Scrollable.maybeOf(context)?.position; HOT 2
- cell expanding when used with tab bar HOT 2
- Delete animation problem
- 刚开始时leadingActions为空的,再设置后滑不出来 HOT 2
- 如何获取侧滑状态 HOT 1
- 如何设置滑动后的回弹效果 HOT 7
- Auto-Close is not working
- Unable to get the callbacks when a cell Opens HOT 1
- 横竖屏切换 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_swipe_action_cell.