AI prompts
base on A Flutter UI Kit(一个 Flutter UI组件库),包含 ScaleView, Swiper, PullRefresh, WaterMark, GradientCircularProgressIndicator... [English](README-EN.md)|中文简体
# Flukit [![Pub](https://img.shields.io/pub/v/flukit.svg?style=flat-square)](https://pub.dartlang.org/packages/flukit)
*flukit* (Flutter UI Kit)是一个Flutter Widget库。
## 组件列表
| Widget | Description |
| ------------------------------------------ | ------------------------------------------------------------ |
| AfterLayout | 在布局结束后,可以拿到对应的RenderObject对象。非常实用的一个组件,需要慢慢体会。 |
| AccurateSizedBox | 一个精确的SizedBox。SizedBox 会将父组件的约束传递给其子组件,所以有些时候子组件大小并不等于我们通过SizedBox指定的宽高,而 AccurateSizedBox 能很好解决这个问题。具体见示例。 |
| AnimatedRotationBox | Rotates child forever |
| DoneWidget | 完成提示组件(执行一个打勾动画) |
| GradientButton<br />ElevatedGradientButton | 背景色渐变按钮 |
| GradientCircularProgressIndicator | 一个支持颜色渐变的圆形进度指示器 |
| HitTestBlocker | 通过该组件可以拦截 hit test 流程。 |
| KeepAliveWrapper | 包括可滚动组件的子组件后,该子组件将会被缓存,意味着即使滑出屏幕也不会被销毁。 |
| LeftRightBox | 支持左-右布局的组件,不会有文本溢出,右组件最多占总显示宽度的一半。 |
| LayoutLogPrint | 一个帮助组件:在调试模式下可以将父组件传递的约束信息打印出来。 |
| LogListenerScope | 监听是否有日志(print)到来。是一个调试工具,可以拦截应用内print的输出然后显示在 UI 上,具体见示例demo. |
| VerticalLogPanel | 显示`print`输出的log。它会将显示区域分为上下两部分,子组件显示在上面,日志面板显示在下面。 |
| LogPanel | 显示`print`输出的log. |
| PullRefreshScope | 下拉刷新(和flutter自带的有两点不同:PullRefreshScope 是手指抬起后才刷新,另外刷新完成后返回时会执行动画) |
| SliverPullRefreshIndicator | 下拉舒新指示器,配合PullRefreshScope 使用。 |
| QuickScrollbar | 可拖动的滚动条 |
| Swiper | 一个轮播组件 |
| ScaleView | 可以对子组件进行缩放(支持双指伸缩、双击) |
| SliverFlexibleHeader | 一个随着用户下拉,高度可以伸缩的 sliver header,通常为 CustomScrollView 的第一子sliver。常见的场景是微信朋友圈个人主页顶部图下拉时的弹性效果。 |
| SliverPersistentHeaderToBox | 和 [SliverPersistentHeader]功能类似,但不同是[SliverPersistentHeaderToBox] 能够直接包含一个盒模型子组件(Box widget),并且高度会使用子组件高度。 |
| SliverHeaderDelegate | [SliverPersistentHeader] 的帮助类,用于快速创建delegate 。 |
| SlideTransitionX | 实现同向滑动效果,通常和[AnimatedSwitcher]一起使用,具体效果见示例demo. |
| TranslateWithExpandedPaintingArea | 可以将子组件沿着某个方向平移x像素,平移后,反方向不会出现空白。原理是该组件允许子组件的绘制空间大小在平移方向超过当前显示空间x像素。具体效果见示例demo. |
| TurnBox | 可按任意角度旋转子组件,旋转过程执行动画。 |
| WaterMark | 水印组件 |
## Tools
| Tools | Description |
| -------------------------- | ------------------------------------------------------------ |
| ExtraInfoBoxConstraints | 可以传递额外信息的 BoxConstraints。 |
| SafeValueNotifier | 在build/layout/paint 阶段发出通知时也能确保ValueListenableBuilder正常更新。 |
| RenderObjectAnimationMixin | 如果要在RenderObject中执行动画,则该mixin会非常有用,它封装了动画调度功能。 |
## Demo部分截图(只有极少数有图片,待补充)
<img src="./docs/images/quick_scroll_bar.gif" width="320"/>
<img src="./docs/images/animated_rotation_box.gif" width="320"/>
<img src="./docs/images/gradient_circular_progress_indicator.gif" width="320"/>
<img src="./docs/images/swiper.gif" width="320"/>
<img src="./docs/images/photoview.gif" width="320"/>
<img src="./docs/images/raised_button.png" width="320"/>
## 贡献代码须知
### 工程目录
```
flukit
--lib //示例目录
--package_src
--lib
--example
--src //widget库目录
--docs //文档目录,文档必须是markdown格式
--images //文档用到的图片都放在这里,如截图
--chs //中文文档目录
--en //英文文档目录
```
### 运行Demo
[示例目录](https://github.com/flutterchina/flukit/tree/main/package_src/lib/example).
```
flutter run
```
### **提交代码须知**
如果你添加了一个组件,请遵循如下规则:
1. 尽可能多的添加注释,文档注释为三斜线"///"
2. 添加一个新的Widget后,请在Demo目录添加使用示例,示例应该纯净无干扰,如果一个widget需要多个示例,可以创建一个二级页面,可以参照水印组件 WaterMark 的示例。
3. 如果可以,请尽可能在doc 目录下为widget添加使用文档,文档必须是markdown格式,文档名应与widget文件名同名
", Assign "at most 3 tags" to the expected json: {"id":"9739","tags":[]} "only from the tags list I provide: [{"id":77,"name":"3d"},{"id":89,"name":"agent"},{"id":17,"name":"ai"},{"id":54,"name":"algorithm"},{"id":24,"name":"api"},{"id":44,"name":"authentication"},{"id":3,"name":"aws"},{"id":27,"name":"backend"},{"id":60,"name":"benchmark"},{"id":72,"name":"best-practices"},{"id":39,"name":"bitcoin"},{"id":37,"name":"blockchain"},{"id":1,"name":"blog"},{"id":45,"name":"bundler"},{"id":58,"name":"cache"},{"id":21,"name":"chat"},{"id":49,"name":"cicd"},{"id":4,"name":"cli"},{"id":64,"name":"cloud-native"},{"id":48,"name":"cms"},{"id":61,"name":"compiler"},{"id":68,"name":"containerization"},{"id":92,"name":"crm"},{"id":34,"name":"data"},{"id":47,"name":"database"},{"id":8,"name":"declarative-gui "},{"id":9,"name":"deploy-tool"},{"id":53,"name":"desktop-app"},{"id":6,"name":"dev-exp-lib"},{"id":59,"name":"dev-tool"},{"id":13,"name":"ecommerce"},{"id":26,"name":"editor"},{"id":66,"name":"emulator"},{"id":62,"name":"filesystem"},{"id":80,"name":"finance"},{"id":15,"name":"firmware"},{"id":73,"name":"for-fun"},{"id":2,"name":"framework"},{"id":11,"name":"frontend"},{"id":22,"name":"game"},{"id":81,"name":"game-engine "},{"id":23,"name":"graphql"},{"id":84,"name":"gui"},{"id":91,"name":"http"},{"id":5,"name":"http-client"},{"id":51,"name":"iac"},{"id":30,"name":"ide"},{"id":78,"name":"iot"},{"id":40,"name":"json"},{"id":83,"name":"julian"},{"id":38,"name":"k8s"},{"id":31,"name":"language"},{"id":10,"name":"learning-resource"},{"id":33,"name":"lib"},{"id":41,"name":"linter"},{"id":28,"name":"lms"},{"id":16,"name":"logging"},{"id":76,"name":"low-code"},{"id":90,"name":"message-queue"},{"id":42,"name":"mobile-app"},{"id":18,"name":"monitoring"},{"id":36,"name":"networking"},{"id":7,"name":"node-version"},{"id":55,"name":"nosql"},{"id":57,"name":"observability"},{"id":46,"name":"orm"},{"id":52,"name":"os"},{"id":14,"name":"parser"},{"id":74,"name":"react"},{"id":82,"name":"real-time"},{"id":56,"name":"robot"},{"id":65,"name":"runtime"},{"id":32,"name":"sdk"},{"id":71,"name":"search"},{"id":63,"name":"secrets"},{"id":25,"name":"security"},{"id":85,"name":"server"},{"id":86,"name":"serverless"},{"id":70,"name":"storage"},{"id":75,"name":"system-design"},{"id":79,"name":"terminal"},{"id":29,"name":"testing"},{"id":12,"name":"ui"},{"id":50,"name":"ux"},{"id":88,"name":"video"},{"id":20,"name":"web-app"},{"id":35,"name":"web-server"},{"id":43,"name":"webassembly"},{"id":69,"name":"workflow"},{"id":87,"name":"yaml"}]" returns me the "expected json"