-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: image组件演示代码拆分 #237
Conversation
margin: const EdgeInsets.all(8), | ||
child: CodeWrapper( | ||
builder: _imageClip, | ||
methodName: '_imageClip', // 裁剪 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个参数可以不用写,打包工具会自动生成
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的,已将多余的methodName删去。
Padding( | ||
padding: const EdgeInsets.only(bottom: 16), | ||
child: TDText( | ||
'裁剪', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个描述如果挪到实例方法外面,此处只生成图片范围的示例代码会更好
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 这个 PR 的性质是?
🔗 相关 Issue
#207
💡 需求背景和解决方案
Image的“组件类型”和“组件状态”下面,多个演示组件使用同一份演示代码,演示代码太长,可读性不高
📝 更新日志
refactor(image): 将Image组件的演示代码进行拆分,使其查阅起来更直观简单。同时对组件的排列方式进行了调整,将同类组件放在一行,提高文档易读性。
本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单