Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
155 commits
Select commit Hold shift + click to select a range
eebb321
docs(readme): 添加贡献者列表图片并优化贡献说明
runoob-coder Sep 28, 2025
081a504
feat(theme): 更新颜色配置并添加组件颜色定义
runoob-coder Sep 28, 2025
60d3b6e
fix(string_util):优化HEX颜色值解析逻辑
runoob-coder Sep 28, 2025
ca09280
feat(theme): 添加暗色主题配置
runoob-coder Sep 28, 2025
9741b50
feat(l10n): 优化调整本地化支持
runoob-coder Sep 28, 2025
572f31b
feat(theme): 支持深色模式和切换功能
runoob-coder Sep 28, 2025
66c563e
refactor(button): 优化按钮样式生成逻辑并更新主题颜色
runoob-coder Sep 28, 2025
179b858
refactor(example): 重构示例页面组件实现
runoob-coder Sep 28, 2025
3d1bf87
refactor(example):优化组件测试代码结构
runoob-coder Sep 28, 2025
bb8b012
refactor(about): 重构关于页面UI结构
runoob-coder Sep 28, 2025
3363b46
feat(component): 重新组织组件示例页面导入与展示顺序
runoob-coder Sep 28, 2025
73c7421
refactor(l10n): 更新国际化资源代理中的本地化导入路径
runoob-coder Sep 28, 2025
d16fbf5
refactor(button): 优化按钮页面结构与代码整洁度
runoob-coder Sep 28, 2025
59be576
feat(divider): 优化分割线组件实现与样式
runoob-coder Sep 28, 2025
1af4a31
fix(fab): 调整FAB组件主题颜色和阴影样式
runoob-coder Sep 28, 2025
6316bf8
fix(icon): 移除图标页面背景色
runoob-coder Sep 28, 2025
432e492
fix(link): 更新链接组件背景色和文字颜色
runoob-coder Sep 28, 2025
3d8ba48
feat(text): 添加删除线功能并优化文本样式配置
runoob-coder Sep 28, 2025
597f2ae
feat(backtop): 支持暗黑模式并优化样式
runoob-coder Sep 28, 2025
4cdbb7e
fix(drawer): 更新抽屉组件背景色配置
runoob-coder Sep 28, 2025
58b346e
feat(indexes): 优化索引组件样式与交互
runoob-coder Sep 28, 2025
299d152
refactor(navbar): 优化导航栏组件代码结构和样式
runoob-coder Sep 28, 2025
38c59fc
fix(badge): 更新徽标组件颜色和布局样式
runoob-coder Sep 28, 2025
d22cf10
refactor(cell): 重构单元格组件样式与边框逻辑
runoob-coder Sep 28, 2025
189dab0
refactor(avatar): 优化头像组件实现与示例页面
runoob-coder Sep 28, 2025
d0fe870
refactor(timeCounter): 优化时间计数器组件示例页面结构
runoob-coder Sep 28, 2025
28f116c
feat(collapse): 优化折叠面板组件样式与主题适配
runoob-coder Sep 28, 2025
a082929
feat(empty): 优化空状态组件展示逻辑
runoob-coder Sep 28, 2025
1d4c902
fix(footer): 修复页脚组件样式问题
runoob-coder Sep 28, 2025
d62c26f
feat(image): 优化图片组件加载与样式处理
runoob-coder Sep 28, 2025
8789ae5
feat(image_viewer): 更新图片查看器组件功能与样式
runoob-coder Sep 28, 2025
a5daf4f
refactor(progress): 优化进度组件样式与代码结构
runoob-coder Sep 28, 2025
af4c2a0
fix(result): 更新文本颜色引用以匹配主题
runoob-coder Sep 28, 2025
7239697
refactor(skeleton): 优化骨架屏组件实现
runoob-coder Sep 28, 2025
dee5c2b
feat(swiper): 优化轮播图组件样式与布局
runoob-coder Sep 28, 2025
ed8b398
refactor(table): 优化表格组件样式和主题适配
runoob-coder Sep 28, 2025
278fd08
feat(tag): 优化标签组件样式和功能实现
runoob-coder Sep 28, 2025
8a9427f
refactor(action_sheet): 重构动作面板组件样式与结构
runoob-coder Sep 28, 2025
ded20bb
refactor(dialog): 优化对话框组件代码结构与样式
runoob-coder Sep 28, 2025
31c66c3
refactor(toast): 优化Toast组件代码结构和样式
runoob-coder Sep 28, 2025
67fc41b
refactor(SwipeCell): 统一示例分组命名并优化颜色主题引用
runoob-coder Sep 28, 2025
2ea6e52
fix(refresh): 更新刷新组件主题色引用并优化布局
runoob-coder Sep 28, 2025
d99a2b8
feat(theme): 更新主题颜色和字体样式示例页面
runoob-coder Sep 28, 2025
35b8f3c
refactor(switch): 重构开关组件示例页面结构
runoob-coder Sep 28, 2025
b44f57d
fix(search):修复搜索栏背景色和文本样式问题
runoob-coder Sep 28, 2025
a9d8b88
refactor(tabbar): 优化底部导航栏主题色与代码结构
runoob-coder Sep 28, 2025
c5480b2
feat(loading): 优化加载组件样式与控制器逻辑
runoob-coder Sep 28, 2025
8c6b89d
feat(rate): 优化评分组件样式与交互逻辑
runoob-coder Sep 28, 2025
71bf1db
refactor(input): 优化输入组件样式和逻辑
runoob-coder Sep 28, 2025
23f8a70
fix(steps): 修复步骤条颜色主题问题
runoob-coder Sep 28, 2025
715e5cf
refactor(textarea): 优化文本域组件实现
runoob-coder Sep 28, 2025
5add863
feat(popover): 支持根据主题自动切换气泡样式
runoob-coder Sep 29, 2025
5cd3be9
refactor(form): 优化表单组件代码结构和样式
runoob-coder Sep 29, 2025
f49be09
refactor(picker): 优化选择器组件结构与代码格式
runoob-coder Sep 29, 2025
98eb7db
feat(sidebar): 优化侧边栏组件样式与功能
runoob-coder Sep 29, 2025
96720ce
refactor(stepper): 优化步进器组件样式与属性
runoob-coder Sep 29, 2025
f364047
refactor(tabs): 优化选项卡组件样式与主题适配
runoob-coder Sep 29, 2025
8754602
refactor(popup): 优化弹窗组件主题适配与代码结构
runoob-coder Sep 29, 2025
6fd8ae9
feat(upload): 优化上传组件功能与样式
runoob-coder Sep 29, 2025
5ce566e
refactor(calendar): 优化日历组件代码结构和主题样式
runoob-coder Sep 29, 2025
5ea35a8
feat(dropdown): 优化下拉菜单组件样式与交互逻辑
runoob-coder Sep 29, 2025
c89150b
refactor(datetimePicker): 重构日期选择器组件使用TDCell替换GestureDetector
runoob-coder Sep 29, 2025
e4c7330
refactor(cascader): 优化级联选择器组件结构和样式
runoob-coder Sep 29, 2025
7b24fee
feat(notice_bar): 更新公告栏组件样式和主题配置
runoob-coder Sep 29, 2025
97a12c3
fix(radio): 修复单选框禁用状态颜色和布局问题
runoob-coder Sep 29, 2025
98c45ad
fix(theme): 修复Web平台主题模式设置问题
runoob-coder Sep 29, 2025
10c78e3
feat(slider): 优化滑块组件主题与样式支持
runoob-coder Sep 29, 2025
f2fa554
feat(checkbox): 优化多选框组件样式与交互逻辑
runoob-coder Sep 29, 2025
6265594
feat(message): 更新消息组件主题适配
runoob-coder Sep 29, 2025
086a92d
fix(tree-select): 修复树形选择器样式
runoob-coder Sep 30, 2025
3a009ea
style(sidebar): 优化侧边栏样式与主题适配
runoob-coder Sep 30, 2025
618cc8b
fix(tree): 添加了待办注释以处理上下边框圆角
runoob-coder Sep 30, 2025
b8271ef
docs(l10n): 更新本地化配置说明
runoob-coder Sep 30, 2025
91697e8
refactor(button): 优化按钮组件布局与样式配置
runoob-coder Sep 30, 2025
d2a52be
feat(divider):优化分割线组件实现与示例页面
runoob-coder Sep 30, 2025
121a4ea
refactor(button): 优化Fab组件
runoob-coder Sep 30, 2025
2103b5d
refactor(icon): 优化图标展示页面布局与边框控制
runoob-coder Sep 30, 2025
7f5bf4c
refactor(link): 重构链接组件颜色逻辑与布局调整
runoob-coder Oct 1, 2025
c5e3c9a
refactor(text): 优化文本组件字体加载与居中逻辑
runoob-coder Oct 1, 2025
214956e
fix(backtop): 优化返回顶部组件逻辑与样式
runoob-coder Oct 1, 2025
380b1a9
feat(drawer): 优化抽屉组件实现与示例
runoob-coder Oct 1, 2025
5cf263f
refactor(indexes): 优化索引组件实现与样式
runoob-coder Oct 1, 2025
a2ebf0f
feat(navbar): 调整导航栏默认高度和图标样式
runoob-coder Oct 1, 2025
05c3723
style(component): 调整iframe样式去除顶部边框
runoob-coder Oct 1, 2025
701ee93
chore(workflow): 移除内网站点构建步骤
runoob-coder Oct 1, 2025
5008e3b
feat(sidebar): 优化侧边栏组件示例与功能
runoob-coder Oct 1, 2025
771f14a
feat(ui): 统一使用 spacing 属性替代 SizedBox 来控制组件间距
runoob-coder Oct 1, 2025
82d6f53
feat(steps): 更新步骤条组件示例与结构
runoob-coder Oct 1, 2025
02e15b5
docs(navbar): 更新导航栏示例代码格式
runoob-coder Oct 1, 2025
cef3beb
refactor(tabbar): 简化示例页面中标签栏构建方式
runoob-coder Oct 1, 2025
192a734
refactor(tabs):优化选项卡组件实现与样式
runoob-coder Oct 1, 2025
77d2488
feat(avatar): 优化头像组件展示逻辑与样式
runoob-coder Oct 1, 2025
5712c0e
chore(workflow): 添加站点构建步骤
runoob-coder Oct 2, 2025
fdafa6c
Merge branch 'Tencent:develop' into develop
runoob-coder Oct 2, 2025
c3dbc88
feat(badge): 优化徽标组件实现与示例页面
runoob-coder Oct 2, 2025
5e493b3
feat(cell): 优化单元格组件实现与示例页面
runoob-coder Oct 2, 2025
e4f2913
refactor(timeCounter): 优化时间计数器组件示例与样式
runoob-coder Oct 2, 2025
f87efee
fix(steps): 修正步骤组件中的拼写错误,优化示例样式
runoob-coder Oct 2, 2025
e95558a
feat(empty): 新增自定义图标空状态并优化图片展示
runoob-coder Oct 2, 2025
4c30326
更换空状态图片资源
runoob-coder Oct 2, 2025
ba5292e
feat(sidebar): 为侧边栏页面添加容器背景色
runoob-coder Oct 2, 2025
2d7e491
feat(link): 优化链接组件图标布局对齐方式
runoob-coder Oct 2, 2025
8d7efe0
refactor(footer): 优化调整 TDFooter 组件样式和示例代码
runoob-coder Oct 2, 2025
fa7abf9
refactor(image_viewer):优化图片查看器示例代码
runoob-coder Oct 2, 2025
ebd8ac6
refactor(progress):优化进度条组件示例与代码结构
runoob-coder Oct 2, 2025
67b975d
Merge branch 'develop' into develop
runoob-coder Oct 2, 2025
1a1e8bd
Merge remote-tracking branch 'origin/develop' into develop
runoob-coder Oct 2, 2025
637181b
refactor(result): 重构结果页面和组件实现
runoob-coder Oct 2, 2025
85104cc
chore(scripts): 调整 Flutter 初始化脚本注释
runoob-coder Oct 2, 2025
dfa9e1a
refactor(theme): 优化主题页面组件样式与布局
runoob-coder Oct 2, 2025
e81da8d
refactor(toast): 重构 Toast 组件实现
runoob-coder Oct 2, 2025
470f952
feat(swipe-cell):优化滑动操作单元格示例
runoob-coder Oct 2, 2025
ec4cbf6
feat(refresh): 优化下拉刷新页面布局与样式
runoob-coder Oct 2, 2025
c152214
refactor(popup): 优化调整弹出层示例页面
runoob-coder Oct 2, 2025
258f5de
refactor(popover):优化气泡组件布局与代码结构
runoob-coder Oct 2, 2025
9f76a08
refactor(message):优化消息组件实现和示例页面
runoob-coder Oct 2, 2025
2b7770c
feat(loading):优化加载组件布局与样式
runoob-coder Oct 2, 2025
1f3cf1c
feat(action_sheet): 优化动作面板组件实现
runoob-coder Oct 2, 2025
dc9b64a
refactor(dropdown_menu): 优化下拉菜单组件实现
runoob-coder Oct 2, 2025
7cfab0a
refactor(skeleton):优化骨架屏组件实现
runoob-coder Oct 3, 2025
0ced4d5
feat(swiper): 优化轮播图组件的分页器样式与交互逻辑
runoob-coder Oct 3, 2025
ee78bfb
feat(theme): 更新资源管理器实现
runoob-coder Oct 3, 2025
f534a48
feat(l10n): 添加空数据本地化字符串
runoob-coder Oct 3, 2025
3408ad6
feat(base): 添加空数据国际化支持
runoob-coder Oct 3, 2025
1929871
feat(table):优化表格组件空数据展示和选择框逻辑
runoob-coder Oct 3, 2025
691218f
refactor(tag): 优化标签组件,新增关闭图标颜色
runoob-coder Oct 3, 2025
d1ff186
feat(calendar): 优化日历组件功能与样式
runoob-coder Oct 3, 2025
53c2178
fix(dropdown_menu): 调整下拉菜单图标大小
runoob-coder Oct 3, 2025
31a11cb
feat(progress): 添加进度条动态控制功能
runoob-coder Oct 3, 2025
e963c76
perf(progress): 优化调整线性进度条样式
runoob-coder Oct 3, 2025
94cedf4
refactor(picker): 优化选择器组件实现,更新showMultiPicker 缺失参数传递
runoob-coder Oct 4, 2025
44fb132
feat(td_font_page): 添加【延】字符测试示例
runoob-coder Oct 4, 2025
623b50a
refactor(picker): 移除未使用的dart:ffi导入
runoob-coder Oct 4, 2025
0d78f75
feat(date-picker): 增强日期选择器功能与灵活性
runoob-coder Oct 4, 2025
8777248
feat(picker): 新增不显示头部内容的多列选择器
runoob-coder Oct 4, 2025
5702a91
feat(cell): 添加长标题和内容测试用例
runoob-coder Oct 4, 2025
ab21a6c
fix(cell): 优化单元格组件交互与布局
runoob-coder Oct 4, 2025
90347ea
fix(switch):修复开关组件默认开启轨道颜色及代码格式问题
runoob-coder Oct 4, 2025
8cf0411
refactor(api_widget):优化API文档展示组件
runoob-coder Oct 4, 2025
e00fa47
refactor(ui): 简化 about 页面 UI 结构
runoob-coder Oct 4, 2025
b9aff18
refactor(stepper): 优化步进器组件代码结构
runoob-coder Oct 5, 2025
c0be63e
fix(sidebar):修复侧边栏项目样式问题
runoob-coder Oct 5, 2025
0db55ab
feat(tree-select): 优化树形选择器组件结构与交互
runoob-coder Oct 5, 2025
286bad7
feat(noticeBar): 更新公告栏组件支持content属性并优化样式
runoob-coder Oct 5, 2025
08fcbd3
refactor(loading):优化字体获取逻辑
runoob-coder Oct 5, 2025
65157d1
refactor(slider): 重构滑块组件实现
runoob-coder Oct 5, 2025
5e852c5
fix(search): 优化搜索栏组件示例布局与结构
runoob-coder Oct 5, 2025
7b68f84
docs(action_sheet):修正 ActionSheetItem 标题注释
runoob-coder Oct 6, 2025
4ec770c
docs(config): 更新组件中文名称
runoob-coder Oct 6, 2025
fd12950
fix(slider): 移除滑块的次要激活颜色设置
runoob-coder Oct 6, 2025
a453bf7
chore(android): 升级 Android 构建配置和依赖项
runoob-coder Oct 6, 2025
c2769e6
chore(deps): 覆盖web依赖项,解决与flutter_localizations的版本冲突问题,兼容flutter之前版本
runoob-coder Oct 6, 2025
7fd0513
chore(workflow): 移除预览构建中的脚本重写步骤
runoob-coder Oct 6, 2025
427b743
chore(android): 更新 targetSdkVersion 配置
runoob-coder Oct 6, 2025
91250f5
refactor: Flex.spacing仅在3.27+版本中支持,为了适配3.19.6,改用 SizedBox 实现间距控制
runoob-coder Oct 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
143 changes: 1 addition & 142 deletions .github/workflows/preview-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,147 +90,6 @@ jobs:
repository: TDesignOteam/tdesign-flutter-generator
path: ./example/tdesign-flutter-generator

- name: 重写脚本
run: |
# AOPMarket.enable = true
yq e '.AOPMarket.enable = true' -i tdesign-component/example/pubspec.yaml
# 更新 tdesign-component/example/android/app/build.gradle
cd $GITHUB_WORKSPACE/tdesign-component/example/android/app

# 使用 sed 更新 build.gradle 文件
# 1. 添加 namespace 如果不存在
if ! grep -q "namespace" build.gradle; then
sed -i '/^android {$/a\\ namespace '\''com.tdesign.tdesign_flutter_example'\''' build.gradle
fi

# 2. 更新 compileSdkVersion 从 34 到 35
sed -i 's/compileSdkVersion 34/compileSdkVersion 35/g' build.gradle

# 3. 更新 minSdkVersion 从 21 到 23
sed -i 's/minSdkVersion 21/minSdkVersion 23/g' build.gradle

# 4. 更新 targetSdkVersion 从 31 到 35
sed -i 's/targetSdkVersion 31/targetSdkVersion 35/g' build.gradle

# 5. 将双引号改为单引号 (applicationId)
sed -i 's/applicationId "com.tdesign.tdesign_flutter_example"/applicationId '\''com.tdesign.tdesign_flutter_example'\''/g' build.gradle

# 6. 添加 compileOptions 和 kotlinOptions 如果不存在
if ! grep -q "compileOptions" build.gradle; then
# 在 buildTypes 块之后添加 compileOptions 和 kotlinOptions
awk '
BEGIN { in_android = 0; buildtypes_done = 0 }
/^android \{/ { in_android = 1; print; next }
/^ buildTypes \{/ && in_android { print; in_buildtypes = 1; next }
/^ \}/ && in_buildtypes && in_android {
print
print ""
print " compileOptions {"
print " sourceCompatibility JavaVersion.VERSION_17"
print " targetCompatibility JavaVersion.VERSION_17"
print " }"
print ""
print " kotlinOptions {"
print " jvmTarget = '\''17'\''"
print " }"
in_buildtypes = 0
buildtypes_done = 1
next
}
/^}/ && in_android && buildtypes_done { in_android = 0 }
{ print }
' build.gradle > build.gradle.tmp && mv build.gradle.tmp build.gradle
fi

echo "=== build.gradle 更新完成 ==="
echo "=== 显示更新后的 android 块 ==="
sed -n '/^android {/,/^}/p' build.gradle
# 重写 tdesign-component/example/android/build.gradle
cd $GITHUB_WORKSPACE/tdesign-component/example/android

# 删除原文件并创建新文件
rm -f build.gradle

# 创建新的 build.gradle 文件内容
echo "buildscript {" > build.gradle
echo " ext.kotlin_version = '1.7.10'" >> build.gradle
echo "" >> build.gradle
echo " ext {" >> build.gradle
echo " config = [" >> build.gradle
echo " // 蓝盾自带变量" >> build.gradle
echo " isCI : System.getenv(\"isCI\") ?: \"false\" // 是否在RMD的持续集成构建环境中" >> build.gradle
echo " , VersionCode : System.getenv(\"VersionCode\") ?: \"1\" // VersionCode,每次发版本+2" >> build.gradle
echo " , devopsUUID : System.getenv(\"uuid\") ?: \"local\" // 蓝盾构建UUID" >> build.gradle
echo " , MajorVersion : System.getenv(\"MajorVersion\") ?: \"1\" // 主版本号" >> build.gradle
echo " , MinorVersion : System.getenv(\"MinorVersion\") ?: \"0\" // 特性版本号" >> build.gradle
echo " , FixVersion : System.getenv(\"FixVersion\") ?: \"0\" // 修正版本号" >> build.gradle
echo " , BuildNo : System.getenv(\"BuildNo\") ?: \"0\" // 构建号" >> build.gradle
echo " , isPublish : System.getenv(\"isPublish\") ?: \"false\" // 是否是外发版本,用来控制调试入口等" >> build.gradle
echo " , isBeta : System.getenv(\"isBeta\") ?: \"false\" // 是否是灰度版本" >> build.gradle
echo " , gitVersion : System.getenv(\"gitVersion\") ?: \"local\" // git提交hash" >> build.gradle
echo " , keyAlias : System.getenv(\"keyAlias\") ?: \"debug\" // 签名信息" >> build.gradle
echo " , storePassword: System.getenv(\"storePassword\") ?: \"debug\" // storePassword" >> build.gradle
echo " , abi_filters : System.getenv(\"abi_filters\") ?: \"armeabi-v7a,arm64-v8a,x86,x86_64\" // abi类型配置" >> build.gradle
echo " ]" >> build.gradle
echo "" >> build.gradle
echo " def dir = System.getProperty(\"user.dir\")" >> build.gradle
echo " def file = new File(dir, 'local.properties')" >> build.gradle
echo " Properties properties = new Properties()" >> build.gradle
echo " if (file.exists()) {" >> build.gradle
echo " properties.load(file.newDataInputStream())" >> build.gradle
echo " }" >> build.gradle
echo " enableWatchman = Boolean.valueOf(properties.getProperty('enableWatchman', \"\"))" >> build.gradle
echo " }" >> build.gradle
echo "" >> build.gradle
echo " repositories {" >> build.gradle
echo " google()" >> build.gradle
echo " mavenCentral()" >> build.gradle
echo " }" >> build.gradle
echo "" >> build.gradle
echo " dependencies {" >> build.gradle
echo " classpath 'com.android.tools.build:gradle:7.0.1'" >> build.gradle
echo " classpath \"org.jetbrains.kotlin:kotlin-gradle-plugin:\$kotlin_version\"" >> build.gradle
echo " }" >> build.gradle
echo "}" >> build.gradle
echo "" >> build.gradle
echo "allprojects {" >> build.gradle
echo " repositories {" >> build.gradle
echo " google()" >> build.gradle
echo " mavenCentral()" >> build.gradle
echo " }" >> build.gradle
echo "}" >> build.gradle
echo "rootProject.buildDir = '../build'" >> build.gradle
echo "subprojects {" >> build.gradle
echo " project.buildDir = \"\${rootProject.buildDir}/\${project.name}\"" >> build.gradle
echo "}" >> build.gradle
echo "subprojects {" >> build.gradle
echo " project.evaluationDependsOn(':app')" >> build.gradle
echo "}" >> build.gradle
echo "tasks.register(\"clean\", Delete) {" >> build.gradle
echo " delete rootProject.buildDir" >> build.gradle
echo "}" >> build.gradle

echo "=== android/build.gradle 重写完成 ==="
echo "=== 显示新的 android/build.gradle 内容 ==="
cat build.gradle
# 更新 tdesign-component/example/android/gradle/wrapper/gradle-wrapper.properties
cd $GITHUB_WORKSPACE/tdesign-component/example/android/gradle/wrapper

# 更新 Gradle 版本从 7.6 到 8.4
sed -i 's|distributionUrl=https\\://services.gradle.org/distributions/gradle-7.6-all.zip|distributionUrl=https\\://services.gradle.org/distributions/gradle-8.4-all.zip|g' gradle-wrapper.properties

echo "=== gradle-wrapper.properties 更新完成 ==="
echo "=== 显示更新后的 gradle-wrapper.properties 内容 ==="
cat gradle-wrapper.properties
# 更新 tdesign-component/example/android/settings.gradle
cd $GITHUB_WORKSPACE/tdesign-component/example/android

# 更新 Android Gradle Plugin 版本从 7.3.0 到 8.3.0
sed -i 's|id "com.android.application" version "7.3.0" apply false|id "com.android.application" version "8.3.0" apply false|g' settings.gradle

echo "=== settings.gradle 更新完成 ==="
echo "=== 显示更新后的 settings.gradle 内容 ==="
cat settings.gradle
- name: Build Flutter apk
run: |
cd $GITHUB_WORKSPACE/tdesign-component/example
Expand Down Expand Up @@ -314,7 +173,7 @@ jobs:
run: |
npm install --unsafe-perm
npm run site

- name: Build site Demo
working-directory: ./tdesign-component/example
run: |
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ TDesign Flutter depends on the following component libraries. We appreciate the

Contributing is welcome. Read [guidelines for contributing](CONTRIBUTING.md) before submitting your [Pull Request](https://github.com/Tencent/tdesign-flutter/pulls).

<a href="https://github.com/Tencent/tdesign-flutter/graphs/contributors">
<img src="https://contrib.rocks/image?repo=Tencent/tdesign-flutter" />
</a>

# Feedback

Create your [Github issues](https://github.com/Tencent/tdesign-flutter/issues) or scan the QR code below to join our user groups.
Expand Down
8 changes: 6 additions & 2 deletions README_zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,13 @@ TDesign Flutter 依赖以下组件库,感谢作者的开源贡献:
- [flutter_slidable](https://pub-web.flutter-io.cn/packages/flutter_slidable)
- [image_picker](https://pub-web.flutter-io.cn/packages/image_picker)

# Contributing
# 贡献

Contributing is welcome. Read [guidelines for contributing](CONTRIBUTING.md) before submitting your [Pull Request](https://github.com/Tencent/tdesign-flutter/pulls).
欢迎贡献代码。在提交 [Pull Request](https://github.com/Tencent/tdesign-flutter/pulls) 之前,请先阅读[贡献指南]((CONTRIBUTING.md))。

<a href="https://github.com/Tencent/tdesign-flutter/graphs/contributors">
<img src="https://contrib.rocks/image?repo=Tencent/tdesign-flutter" />
</a>

# 反馈

Expand Down
18 changes: 15 additions & 3 deletions tdesign-component/example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,19 @@ if (keystorePropertiesFile.exists()) {

android {

compileSdkVersion 34
// AGP 8.0+ 需要设置包命名空间
namespace 'com.tdesign.tdesign_flutter_example'

compileSdkVersion flutter.compileSdkVersion

compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
Expand All @@ -49,8 +61,8 @@ android {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.tdesign.tdesign_flutter_example"
minSdkVersion 21
targetSdkVersion 31
minSdkVersion flutter.minSdkVersion
targetSdkVersion flutter.targetSdkVersion
versionCode createVersionCode()
versionName createVersionName()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
4 changes: 2 additions & 2 deletions tdesign-component/example/android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ pluginManagement {

plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0" // 声明式加载插件
id "com.android.application" version "7.3.0" apply false // 根据实际 AGP 版本调整
id "org.jetbrains.kotlin.android" version "1.9.22" apply false // Kotlin 版本需兼容 AGP
id "com.android.application" version "8.6.0" apply false // 根据实际 AGP 版本调整
id "org.jetbrains.kotlin.android" version "2.1.0" apply false // Kotlin 版本需兼容 AGP
}

include ":app"
Binary file modified tdesign-component/example/assets/img/empty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
109 changes: 109 additions & 0 deletions tdesign-component/example/assets/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -174,5 +174,114 @@
"grayColor13": "#242424",
"grayColor14": "#181818"
}
},
"dark": {
"ref": {
"brandLightColor": "brandColor1",
"brandFocusColor": "brandColor1",
"brandDisabledColor": "brandColor3",
"brandHoverColor": "brandColor5",
"brandNormalColor": "brandColor8",
"brandActiveColor": "brandColor2",
"warningNormalColor": "warningColor5",
"warningHoverColor": "warningColor4",
"warningFocusColor": "warningColor2",
"warningActiveColor": "warningColor6",
"warningDisabledColor": "warningColor3",
"warningLightColor": "warningColor1",
"errorNormalColor": "errorColor6",
"errorHoverColor": "errorColor5",
"errorFocusColor": "errorColor2",
"errorActiveColor": "errorColor7",
"errorDisabledColor": "errorColor3",
"errorLightColor": "errorColor1",
"successNormalColor": "successColor5",
"successHoverColor": "successColor4",
"successFocusColor": "successColor2",
"successActiveColor": "successColor6",
"successDisabledColor": "successColor3",
"successLightColor": "successColor1",
"brandColorLightHover": "brandColor2",
"warningColorLightHover": "warningColor2",
"errorColorLightHover": "errorColor2",
"successColorLightHover": "successColor2",
"bgColorPage": "grayColor14",
"bgColorContainer": "grayColor13",
"bgColorContainerHover": "grayColor12",
"bgColorContainerActive": "grayColor10",
"bgColorContainerSelect": "grayColor9",
"bgColorSecondaryContainer": "grayColor12",
"bgColorSecondaryContainerHover": "grayColor11",
"bgColorSecondaryContainerActive": "grayColor9",
"bgColorComponent": "grayColor11",
"bgColorComponentHover": "grayColor10",
"bgColorComponentActive": "grayColor9",
"bgColorComponentDisabled": "grayColor12",
"componentStrokeColor": "grayColor11",
"componentBorderColor": "grayColor9",
"textColorPrimary": "fontWhColor1",
"textColorSecondary": "fontWhColor2",
"textColorPlaceholder": "fontWhColor3",
"textColorDisabled": "fontWhColor4",
"textColorAnti": "fontWhColor1",
"textColorBrand": "brandColor8",
"textColorLink": "brandColor8"
},
"color": {
"brandColor1": "#1b2f51",
"brandColor2": "#173463",
"brandColor3": "#143975",
"brandColor4": "#103d88",
"brandColor5": "#0d429a",
"brandColor6": "#054bbe",
"brandColor7": "#2667d4",
"brandColor8": "#4582e6",
"brandColor9": "#699ef5",
"brandColor10": "#96bbf8",
"warningColor1": "#4f2a1d",
"warningColor2": "#582f21",
"warningColor3": "#733c23",
"warningColor4": "#a75d2b",
"warningColor5": "#cf6e2d",
"warningColor6": "#dc7633",
"warningColor7": "#e8935c",
"warningColor8": "#ecbf91",
"warningColor9": "#eed7bf",
"warningColor10": "#f3e9dc",
"errorColor1": "#472324",
"errorColor2": "#5e2a2d",
"errorColor3": "#703439",
"errorColor4": "#83383e",
"errorColor5": "#a03f46",
"errorColor6": "#c64751",
"errorColor7": "#de6670",
"errorColor8": "#ec888e",
"errorColor9": "#edb1b6",
"errorColor10": "#eeced0",
"successColor1": "#193a2a",
"successColor2": "#1a4230",
"successColor3": "#17533d",
"successColor4": "#0d7a55",
"successColor5": "#059465",
"successColor6": "#43af8a",
"successColor7": "#46bf96",
"successColor8": "#80d2b6",
"successColor9": "#b4e1d3",
"successColor10": "#deede8",
"grayColor1": "#f3f3f3",
"grayColor2": "#eeeeee",
"grayColor3": "#e7e7e7",
"grayColor4": "#dcdcdc",
"grayColor5": "#c5c5c5",
"grayColor6": "#a6a6a6",
"grayColor7": "#8b8b8b",
"grayColor8": "#77",
"grayColor9": "#5e5e5e",
"grayColor10": "#4b4b4b",
"grayColor11": "#383838",
"grayColor12": "#2c2c2c",
"grayColor13": "#242424",
"grayColor14": "#181818"
}
}
}
7 changes: 6 additions & 1 deletion tdesign-component/example/l10n.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 详见 https://docs.flutter.dev/release/breaking-changes/flutter-generate-i10n-source
# 新版可注释掉synthetic-package,使用旧版则保留
# 也可参考上述文档执行 flutter config --explicit-package-dependencies
synthetic-package: false
arb-dir: lib/l10n
template-arb-file: app_en.arb
output-localization-file: app_localizations.dart
output-localization-file: app_localizations.dart
#output-dir: lib/l10n
Loading