uikitlib library

Classes

Blur
create_user: zhengzaihong email:1096877329@qq.com create_date: 2022/7/21 create_time: 9:09 describe: 高斯模糊
BroadcastHelper
create_user: zhengzaihong email:1096877329@qq.com create_date: 2022/7/20 create_time: 10:10 describe: 全局 订阅模式
Bubble
create_user: zhengzaihong email:1096877329@qq.com create_date: 2022/6/16 create_time: 9:19 describe: 气泡组件(需要固定宽高,通常用于背景) 需要 自适应使用 Bubble2
BubbleCanvas
CacheManager
create_user: zhengzaihong email:1096877329@qq.com create_date: 2021/6/14 create_time: 16:10 describe: 缓存工具
CalendarConfig
create_user: zhengzaihong email:1096877329@qq.com create_date: 2021/12/9 create_time: 15:21 describe: 日历样式的配置文件
CalendarHelper
create_user: zhengzaihong email:1096877329@qq.com create_date: 2021/12/2 create_time: 16:57 describe: 日历选择帮助类
CalendarPopupView
create_user: zhengzaihong email:1096877329@qq.com create_date: 2021/12/2 create_time: 16:48 describe: 日历弹出视图
CellBean
通用性单元格实体,只针对非列表数据结构的处理成表格 列表结构不要使用该类
CellItem
CityPickerView
CityResult
create_user: zhengzaihong email:1096877329@qq.com create_date: 2021-11-21 create_time: 12:34 describe:
ClearStyleInput
create_user: zhengzaihong email:1096877329@qq.com create_date: 2023/1/3 create_time: 9:48 describe: 带删除的输入框框样式
ClickButton
create_user: zhengzaihong email:1096877329@qq.com create_date: 2022/6/1 create_time: 9:40 describe: 封装一个功能按钮组件 背景切换 功能组件 顶层需要FunctionContainer包装 支持 上下左右 添加其他元素的组件
CustomCalendarView
create_user: zhengzaihong email:1096877329@qq.com create_date: 2021/12/2 create_time: 16:48 describe: 日历
CustomCheckBox
create_user: zhengzaihong email:1096877329@qq.com create_date: 2022/11/18 create_time: 10:29 describe: 复选框 eg:
CustomSwitch
create_user: zhengzaihong email:1096877329@qq.com create_date: 2022/11/17 create_time: 17:44 describe: 开关按钮组件 eg:
CycleProgressBar
DashedRect
create_user: zhengzaihong email:1096877329@qq.com create_date: 2022/5/20 create_time: 10:38 describe:绘制虚线view
DashRectPainter
FloatButtonStyle
FloatExpendButton
create_user: zhengzaihong email:1096877329@qq.com create_date: 2023/4/19 create_time: 13:44 describe: 用于悬浮伸展菜单
FullPopView
FunctionButton
create_user: zhengzaihong email:1096877329@qq.com create_date: 2021/5/22 create_time: 17:11 describe: 封装一个功能按钮组件 背景切换 功能组件 顶层需要FunctionContainer包装
FunctionCheckbox
create_user: zhengzaihong email:1096877329@qq.com create_date: 2022/1/4 create_time: 15:42 describe: 支持单选和多选的复选框功能组件 顶层需要FunctionContainer包装
FunctionContainer
create_user: zhengzaihong email:1096877329@qq.com create_date: 2021/5/22 create_time: 17:10 describe: 容器组件,子组件可以为 ClickButton FunctionButton ,FunctionCheckbox,FunctionRadioButton等 button 包下组件
FunctionContainerState
FunctionRadioButton
create_user: zhengzaihong email:1096877329@qq.com create_date: 2021/5/22 create_time: 17:11 describe: 封装一个功能按钮组件 背景切换 功能组件 顶层需要FunctionContainer包装 解决系统自带的 Radio 的一些问题,此按钮组件不支持 多选功能,切勿设置。 待完善...
InfiniteLevelsMenus
InfiniteLevelsMenusState
InfiniteMenu
create_user: zhengzaihong email:1096877329@qq.com create_date: 2022/10/9 create_time: 17:35 describe: 实现无线层级的实体类 实际开发中需要将 您的菜单类别转换成该类模型。 简化以前的逻辑
InputExtend<T>
InputExtendState<T>
InputStyleFactory
create_user: zhengzaihong email:1096877329@qq.com create_date: 2023/1/3 create_time: 9:43 describe: 构建各种样式的工厂基准
InputText
InputTextState
InputValidation
create_user: zhengzaihong email:1096877329@qq.com create_date: 2023/2/1 create_time: 17:52 describe: 输入框基础校验器,内置校验不满足时可继承该类或仿写校验规则
KeyBoard
create_user: zhengzaihong email:1096877329@qq.com create_date: 2023/5/31 create_time: 14:59 describe: 键盘相关
KitMath
create_user: zhengzaihong email:1096877329@qq.com create_date: 2022/7/5 create_time: 14:17 describe: 本库的一些计算工具类
LinearProgressBar
MarqueeView
MeasureUtils
create_user: zhengzaihong email:1096877329@qq.com create_date: 2022/11/3 create_time: 16:45 describe: 测量相关工具
Message
MousePopupButton<T>
create_user: zhengzaihong email:1096877329@qq.com create_date: 2024/2/5 create_time: 16:53 describe: 鼠标右键弹出窗 防止移动端误入使用鼠标右键弹出窗,这里外部推荐方 1方式处理
NoAnimRouter<T>
OutlineInputTextBorder
create_user: zhengzaihong email:1096877329@qq.com create_date: 2023/2/1 create_time: 16:05 describe: 简化边框样式
OverlayEntryManger
Pager
PagerIndicator
PickerHelper
create_user: zhengzaihong email:1096877329@qq.com create_date: 2021/11/18 create_time: 21:51 describe: 城市选择器
PopConstraintBox
约束浮层的条件
PopRoute
create_user: zhengzaihong email:1096877329@qq.com create_date: 2021-12-11 create_time: 17:59 describe: 路由
RatingBar
create_user: zhengzaihong email:1096877329@qq.com create_date: 2021/11/24 create_time: 14:36 describe: 满意度RatingBar
RouteUtils
create_user: zhengzaihong email:1096877329@qq.com create_date: 2021/11/23 create_time: 10:37 describe: 路由工具
RowBean
通用性单元格实体,只针对非列表数据结构的处理成表格 列表结构不要使用该类
SelectionMenu
SeparatorView
create_user: zhengzaihong email:1096877329@qq.com create_date: 2022/10/20 create_time: 18:10 describe: 绘制分割线 横轴纵轴
Shimmer
ShimmerLoading
create_user: zhengzaihong email:1096877329@qq.com create_date: 2024/3/11 create_time: 17:30 describe: 实现一个微光加载效果
ShimmerState
SmartDrawer
create_user: zhengzaihong email:1096877329@qq.com create_date: 2021/11/12 create_time: 13:54 describe: 侧边栏工具
SMClipper
StringUtils
create_user: zhengzaihong email:1096877329@qq.com create_date: 2022/7/4 create_time: 17:34 describe: 文本处理工具
TableView<T>
TabRow
TabSpaceText
如果想让标题类的 左右对齐可使用该文本组件 外部可直接使用该组件, eg: return TabSpaceText( contents: KitMath.parseStr((cellBean.name).toString()), padding: const EdgeInsets.only(left: 10,right: 10), style: const TextStyle(fontSize: 14,color: Colors.black));
TextExtend
create_user: zhengzaihong email:1096877329@qq.com create_date: 2024/2/2 create_time: 16:51 describe: 仿前端 js 鼠标事件可修改文字样式的文本组件
TextView
create_user: zhengzaihong email:1096877329@qq.com create_date: 2022/6/12 create_time: 17:23 describe: 上下左右支持 icon的Widget
TimeView
TimeViewState
Toast

Enums

ArcType
create_user: zhengzaihong email:1096877329@qq.com create_date: 2021/12/26 create_time: 17:26 describe: 圆形进度条
BubbleArrowDirection
ButtonType
CircularStrokeCap
MarqueeDirection
create_user: zhengzaihong email:1096877329@qq.com create_date: 2022/9/26 create_time: 15:20 describe: 跑马灯效果,支持垂直和横向(横向是将多条数据 展平为一条从右向左滚动)
PagerItemTypes
create_user: zhengzaihong email:1096877329@qq.com create_date: 2024/1/23 create_time: 16:57 describe: 分页组件
PopupGravity
create_user: zhengzaihong email:1096877329@qq.com create_date: 2021-12-11 create_time: 18:02 describe: 指定pop的弹出位置,支持tagwidget弹出 popup_window
PositionEnum
create_user: zhengzaihong email:1096877329@qq.com create_date: 2022/6/1 create_time: 9:06 describe: 添加的位置枚举
ToastPosition
toast的显示位置

Extensions

BlurExtension on Widget
CircularStrokeCapExtension on CircularStrokeCap
ExtDouble on double
create_user: zhengzaihong email:1096877329@qq.com create_date: 2021/12/29 create_time: 18:10 describe: 线性进度条
FrostExtension on Widget
StringExt on Object?

Properties

create_user: zhengzaihong email:1096877329@qq.com create_date: 2024-02-01 create_time: 14:58 describe: 极简系统下拉框,可高度自定义,且规避系统组件的使用麻烦,SelectionMenu不关心数据。
final

Functions

colorToStr(Color color) String
Colors.red/0xFFF44336 转 #FFF44336
createPopupWindow<T>(BuildContext context, {Widget childFun(PopupWindow popup)?, Size? childSize, PopupGravity? gravity, bool? customAnimation, bool? customPop, bool? customPage, Color? bgColor, RenderBox? targetRenderBox, bool? underStatusBar, bool? underAppBar, bool? clickOutDismiss, bool? clickBackDismiss, double? offsetX, double? offsetY, Duration? duration, bool? needSafeDisplay, bool? useCustomWH, double? customWidth, double? customHeight, dynamic onShowStart(PopupWindow popup)?, dynamic onShowFinish(PopupWindow popup)?, dynamic onDismissStart(PopupWindow popup)?, dynamic onDismissFinish(PopupWindow popup)?, dynamic onClickOut(PopupWindow popup)?, dynamic onClickBack(PopupWindow popup)?}) PopupWindow
parseColorStr(String? colorStr) Color
create_user: zhengzaihong email:1096877329@qq.com create_date: 2023/5/12 create_time: 9:35 describe: 颜色工具
radians(num deg) num
showPopupWindow<T>(BuildContext context, {Widget childFun(PopupWindow popup)?, Size? childSize, PopupGravity? gravity, Curve? curve, bool? customAnimation, bool? customPop, bool? customPage, Color? bgColor, RenderBox? targetRenderBox, bool? underStatusBar, bool? underAppBar, bool? clickOutDismiss, bool? clickBackDismiss, double? offsetX, double? offsetY, Duration? duration, bool? needSafeDisplay, bool? useCustomWH, double? customWidth, double? customHeight, dynamic onShowStart(PopupWindow popup)?, dynamic onShowFinish(PopupWindow popup)?, dynamic onDismissStart(PopupWindow popup)?, dynamic onDismissFinish(PopupWindow popup)?, dynamic onClickOut(PopupWindow popup)?, dynamic onClickBack(PopupWindow popup)?}) PopupWindow
create_user: zhengzaihong email:1096877329@qq.com create_date: 2021-12-11 create_time: 18:08 describe: 类似 android 的popwindow 控件

Typedefs

BuildCell = Widget Function(CellItem cellItem, int index, double? weight)
CellItem 每个元素的信息 外部构建每个表格的样式信息
BuildCheckedBarStyle<T> = Widget? Function(T checkDatas, InputExtendState controller)
BuildChild = Widget Function(FullPopView popView)
create_user: zhengzaihong email:1096877329@qq.com create_date: 2022/7/18 create_time: 15:08 describe: 全局全屏弹窗, 支持模糊背景,此组件不用于组件树child,通常用于事件弹出等 它是 drawer的一种简单替代方案。 显示不正常 请使用 Material包裹 子组件
BuildInputDecorationStyle = InputDecoration Function(InputTextState state)
create_user: zhengzaihong email:1096877329@qq.com create_date: 2022/12/30 create_time: 16:28 describe: 通用文本输入框,可内置样式,外部定义等。支持系统全部属性 ,默认自带删除按钮。 使用此组件一定要注意使用规范:输入框的高度应该由输入框自身大小所决定。当使用 于较多文本编辑时高度通过 maxLines 设置填充。而非外部容器设置虚拟高度和背景来包裹输入框(TextField)
BuildItem = Widget Function(BuildContext context, dynamic data)
BuildMenuItem = Widget Function(InfiniteLevelsMenusState state, bool isCurrent, InfiniteMenu data, int currentLevel)
create_user: zhengzaihong email:1096877329@qq.com create_date: 2022/10/8 create_time: 9:36 describe: 纵向无限层级菜单
BuildRowStyle<T> = Widget Function(T data, int index, double rowWidth, List<double> cellWidth)
构建每一行的样式
BuildSelectPop<T> = Widget Function(BuildContext context, List<T> src, InputExtendState controller)
create_user: zhengzaihong email:1096877329@qq.com create_date: 2021/12/13 create_time: 18:07 describe: 输入框拓展带自动检索组件
BuildSeparator<Dynamic> = Widget Function(BuildContext context, dynamic data, int currentLevel)
BuildTableHeaderStyle<T> = Widget Function(BuildContext context, double rowWidth, List<double> cellWidth)
create_user: zhengzaihong email:1096877329@qq.com create_date: 2022/6/20 create_time: 9:51 describe: 绘制表格的组件,使用此组件一定要注意每行的权重比 此组件用于通用性表格, 表格存在各种合并的单元格 需根据行号单独处理 2023-02-25 已支持非固定行高,一行中自动适配最高行。 待优化
BuildToastStyle = Widget Function(BuildContext context, String msg)
create_user: zhengzaihong email:1096877329@qq.com create_date: 2021/12/23 create_time: 15:14 describe: toast工具,整体优化,改动较大 0.1.2 之后版本
CallBackWidget = Widget Function(DateTime? dateTime)
Child = Widget Function(BuildContext context, TimeViewState controller, int time)
create_user: zhengzaihong email:1096877329@qq.com create_date: 2021/12/13 create_time: 9:43 describe: 用于倒计时类的控件, 使用规范: 外部请不要将 TimeViewState 持久化。
Compare<T> = bool Function(List<T> data)
CompareVO<T> = bool Function(T item)
InputDecorationStyle<T> = InputDecoration Function(List<T> checkeds)
InputValueChanged<String> = void Function(String value, InputExtendState controller)
OnChangeInput<String> = void Function(String value, InputExtendState controller)
PageChangeCallback = void Function(int totalPages, dynamic currentPageIndex)
PreDealData<T> = List<T> Function()
预处理数据
ResultBlock = void Function(CityResult result)
create_user: zhengzaihong email:1096877329@qq.com create_date: 2021/11/18 create_time: 20:44 describe: 城市picker
TopMenuStyle = Widget Function(ResultBlock block, _CityPickerViewState pickerViewState)
自定义顶部按钮的样式,确定和取消