diff --git a/tdesign-component/example/lib/component_test/step_test.dart b/tdesign-component/example/lib/component_test/step_test.dart new file mode 100644 index 000000000..e8c587607 --- /dev/null +++ b/tdesign-component/example/lib/component_test/step_test.dart @@ -0,0 +1,82 @@ +import 'package:flutter/material.dart'; +import 'package:tdesign_flutter/tdesign_flutter.dart'; + +void main() async { + runApp(StepTestApp()); +} + +class StepTestApp extends StatelessWidget { + @override + Widget build(BuildContext context) { + return MaterialApp( + title: 'Flutter Step Test', + theme: ThemeData( + primarySwatch: Colors.blue, + ), + home: TestPage(), + ); + } +} + +class TestPage extends StatelessWidget { + @override + Widget build(BuildContext context) { + // 创建水平步骤条的数据 + List horizontalSteps = [ + TDStepsItemData(title: Text('Step 1'), content: Text('Horizontal Step 1')), + TDStepsItemData(title: Text('Step 2'), content: Text('Horizontal Step 2')), + TDStepsItemData(title: Text('Step 3'), content: Text('Horizontal Step 3')), + ]; + + // 创建垂直步骤条的数据 + List verticalSteps = [ + TDStepsItemData( + title: Text('2024-12-28'), + content: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + // 隐藏内容 实际可以展示Text + Text('今天是星期六,下面是拍摄的照片'), + Image.asset('assets/img/image.png', width: 100, height: 100), + ], + ), + ), + TDStepsItemData(title: Text('2024-12-29'), content: Text('今天是星期天')), + TDStepsItemData(title: Text('2024-12-30'), content: Text('')), + ]; + + return Scaffold( + appBar: AppBar( + title: Text('TDSteps Test Page'), + ), + body: Column( + children: [ + // 水平步骤条 + Expanded( + child: Padding( + padding: const EdgeInsets.all(16.0), + child: TDSteps( + steps: horizontalSteps, + activeIndex: 1, // 设置当前激活的步骤索引 + direction: TDStepsDirection.horizontal, // 设置步骤条方向为水平 + status: TDStepsStatus.success, // 设置步骤条状态 + ), + ), + ), + // 垂直步骤条 + Expanded( + child: Padding( + padding: const EdgeInsets.all(16.0), + child: TDSteps( + steps: verticalSteps, + activeIndex: 1, // 设置当前激活的步骤索引 + direction: TDStepsDirection.vertical, // 设置步骤条方向为垂直 + status: TDStepsStatus.success, // 设置步骤条状态 + ), + ), + ), + ], + ), + ); + } +} \ No newline at end of file diff --git a/tdesign-component/example/lib/page/td_steps_page.dart b/tdesign-component/example/lib/page/td_steps_page.dart index a9497d557..e56fcee14 100644 --- a/tdesign-component/example/lib/page/td_steps_page.dart +++ b/tdesign-component/example/lib/page/td_steps_page.dart @@ -104,8 +104,8 @@ class _TDStepsPageState extends State { } List basicHStepsListData1 = [ - TDStepsItemData(title: 'Steps1', content: 'Content1'), - TDStepsItemData(title: 'Steps2', content: 'Content2'), + TDStepsItemData(title: Text('Steps1'), content: Text('Content1')), + TDStepsItemData(title: Text('Steps2'), content: Text('Content2')), ]; /// 基本步骤1 @Demo(group: 'steps') @@ -125,9 +125,9 @@ class _TDStepsPageState extends State { ); } List basicHStepsListData2 = [ - TDStepsItemData(title: 'Steps1', content: 'Content1'), - TDStepsItemData(title: 'Steps2', content: 'Content2'), - TDStepsItemData(title: 'Steps3', content: 'Content3'), + TDStepsItemData(title: Text('Steps1'), content: Text('Content1')), + TDStepsItemData(title: Text('Steps2'), content: Text('Content2')), + TDStepsItemData(title: Text('Steps3'), content: Text('Content3')), ]; /// 基本步骤2 @Demo(group: 'steps') @@ -149,16 +149,16 @@ class _TDStepsPageState extends State { ); } List basicHStepsListData3 = [ - TDStepsItemData(title: 'Steps1', content: 'Content1'), - TDStepsItemData(title: 'Steps2', content: 'Content2'), - TDStepsItemData(title: 'Steps3', content: 'Content3'), - TDStepsItemData(title: 'Steps4', content: 'Content4'), + TDStepsItemData(title: Text('Steps1'), content: Text('Content1')), + TDStepsItemData(title: Text('Steps2'), content: Text('Content2')), + TDStepsItemData(title: Text('Steps3'), content: Text('Content3')), + TDStepsItemData(title: Text('Steps4'), content: Text('Content4')), ]; List basicStepsListData4 = [ - TDStepsItemData(title: 'Steps1', content: 'Content1', successIcon: TDIcons.call), - TDStepsItemData(title: 'Steps2', content: 'Content2'), - TDStepsItemData(title: 'Steps3', content: 'Content3', successIcon: TDIcons.call), - TDStepsItemData(title: 'Steps4', content: 'Content4', successIcon: TDIcons.call), + TDStepsItemData(title: Text('Steps1'), content: Text('Content1'), successIcon: TDIcons.call), + TDStepsItemData(title: Text('Steps2'), content: Text('Content2')), + TDStepsItemData(title: Text('Steps3'), content: Text('Content3'), successIcon: TDIcons.call), + TDStepsItemData(title: Text('Steps4'), content: Text('Content4'), successIcon: TDIcons.call), ]; /// 基本步骤3 @Demo(group: 'steps') @@ -181,8 +181,8 @@ class _TDStepsPageState extends State { } List hIconStepsListData1 = [ - TDStepsItemData(title: 'Steps1', content: 'Content1', successIcon: TDIcons.call), - TDStepsItemData(title: 'Steps2', content: 'Content2', successIcon: TDIcons.call), + TDStepsItemData(title: Text('Steps1'), content: Text('Content1'), successIcon: TDIcons.call), + TDStepsItemData(title: Text('Steps2'), content: Text('Content2'), successIcon: TDIcons.call), ]; /// 水平图标步骤条1 @Demo(group: 'steps') @@ -205,9 +205,9 @@ class _TDStepsPageState extends State { } List hIconStepsListData2 = [ - TDStepsItemData(title: 'Steps1', content: 'Content1', successIcon: TDIcons.call), - TDStepsItemData(title: 'Steps2', content: 'Content2', successIcon: TDIcons.call), - TDStepsItemData(title: 'Steps3', content: 'Content3', successIcon: TDIcons.call), + TDStepsItemData(title: Text('Steps1'), content: Text('Content1'), successIcon: TDIcons.call), + TDStepsItemData(title: Text('Steps2'), content: Text('Content2'), successIcon: TDIcons.call), + TDStepsItemData(title: Text('Steps3'), content: Text('Content3'), successIcon: TDIcons.call), ]; /// 水平图标步骤条1 @Demo(group: 'steps') @@ -230,10 +230,10 @@ class _TDStepsPageState extends State { } List hIconStepsListData3 = [ - TDStepsItemData(title: 'Steps1', content: 'Content1', successIcon: TDIcons.call), - TDStepsItemData(title: 'Steps2', content: 'Content2', successIcon: TDIcons.call), - TDStepsItemData(title: 'Steps3', content: 'Content3', successIcon: TDIcons.call), - TDStepsItemData(title: 'Steps4', content: 'Content4', successIcon: TDIcons.call), + TDStepsItemData(title: Text('Steps1'), content: Text('Content1'), successIcon: TDIcons.call), + TDStepsItemData(title: Text('Steps2'), content: Text('Content2'), successIcon: TDIcons.call), + TDStepsItemData(title: Text('Steps3'), content: Text('Content3'), successIcon: TDIcons.call), + TDStepsItemData(title: Text('Steps4'), content: Text('Content4'), successIcon: TDIcons.call), ]; /// 水平图标步骤条1 @Demo(group: 'steps') @@ -256,8 +256,8 @@ class _TDStepsPageState extends State { } List simpleHStepsListData1 = [ - TDStepsItemData(title: 'Steps1', content: 'Content1'), - TDStepsItemData(title: 'Steps2', content: 'Content2'), + TDStepsItemData(title: Text('Steps1'), content: Text('Content1')), + TDStepsItemData(title: Text('Steps2'), content: Text('Content2')), ]; /// 水平简略步骤条1 @Demo(group: 'steps') @@ -281,9 +281,9 @@ class _TDStepsPageState extends State { } List simpleHStepsListData2 = [ - TDStepsItemData(title: 'Steps1', content: 'Content1'), - TDStepsItemData(title: 'Steps2', content: 'Content2'), - TDStepsItemData(title: 'Steps3', content: 'Content3'), + TDStepsItemData(title: Text('Steps1'), content: Text('Content1')), + TDStepsItemData(title: Text('Steps2'), content: Text('Content2')), + TDStepsItemData(title: Text('Steps3'), content: Text('Content3')), ]; /// 水平简略步骤条2 @Demo(group: 'steps') @@ -307,10 +307,10 @@ class _TDStepsPageState extends State { } List simpleHStepsListData3 = [ - TDStepsItemData(title: 'Steps1', content: 'Content1'), - TDStepsItemData(title: 'Steps2', content: 'Content2'), - TDStepsItemData(title: 'Steps3', content: 'Content3'), - TDStepsItemData(title: 'Steps4', content: 'Content4'), + TDStepsItemData(title: Text('Steps1'), content: Text('Content1')), + TDStepsItemData(title: Text('Steps2'), content: Text('Content2')), + TDStepsItemData(title: Text('Steps3'), content: Text('Content3')), + TDStepsItemData(title: Text('Steps4'), content: Text('Content4')), ]; /// 水平简略步骤条3 @Demo(group: 'steps') @@ -334,10 +334,10 @@ class _TDStepsPageState extends State { } List hErrorStepsListData1 = [ - TDStepsItemData(title: 'Steps1', content: 'Content1'), - TDStepsItemData(title: 'Error', content: 'Content2'), - TDStepsItemData(title: 'Steps3', content: 'Content3'), - TDStepsItemData(title: 'Steps4', content: 'Content4'), + TDStepsItemData(title: Text('Steps1'), content: Text('Content1')), + TDStepsItemData(title: Text('Error'), content: Text('Content2')), + TDStepsItemData(title: Text('Steps3'), content: Text('Content3')), + TDStepsItemData(title: Text('Steps4'), content: Text('Content4')), ]; /// 水平简略步骤条3 @Demo(group: 'steps') @@ -361,10 +361,10 @@ class _TDStepsPageState extends State { } List hErrorStepsListData2 = [ - TDStepsItemData(title: 'Steps1', content: 'Content1', successIcon: TDIcons.call), - TDStepsItemData(title: 'Error', content: 'Content2', successIcon: TDIcons.call, errorIcon: TDIcons.close_circle), - TDStepsItemData(title: 'Steps3', content: 'Content3', successIcon: TDIcons.call), - TDStepsItemData(title: 'Steps4', content: 'Content4', successIcon: TDIcons.call), + TDStepsItemData(title: Text('Steps1'), content: Text('Content1'), successIcon: TDIcons.call), + TDStepsItemData(title: Text('Error'), content: Text('Content2'), successIcon: TDIcons.call, errorIcon: TDIcons.close_circle), + TDStepsItemData(title: Text('Steps3'), content: Text('Content3'), successIcon: TDIcons.call), + TDStepsItemData(title: Text('Steps4'), content: Text('Content4'), successIcon: TDIcons.call), ]; /// 水平简略步骤条3 @Demo(group: 'steps') @@ -388,10 +388,10 @@ class _TDStepsPageState extends State { } List hErrorStepsListData3 = [ - TDStepsItemData(title: 'Steps1', content: 'Content1', successIcon: TDIcons.call), - TDStepsItemData(title: 'Error', content: 'Content2', successIcon: TDIcons.call, errorIcon: TDIcons.close_circle), - TDStepsItemData(title: 'Steps3', content: 'Content3', successIcon: TDIcons.call), - TDStepsItemData(title: 'Steps4', content: 'Content4', successIcon: TDIcons.call), + TDStepsItemData(title: Text('Steps1'), content: Text('Content1'), successIcon: TDIcons.call), + TDStepsItemData(title: Text('Error'), content: Text('Content2'), successIcon: TDIcons.call, errorIcon: TDIcons.close_circle), + TDStepsItemData(title: Text('Steps3'), content: Text('Content3'), successIcon: TDIcons.call), + TDStepsItemData(title: Text('Steps4'), content: Text('Content4'), successIcon: TDIcons.call), ]; /// 水平简略步骤条3 @Demo(group: 'steps') @@ -416,10 +416,10 @@ class _TDStepsPageState extends State { } List vBasicStepsListData = [ - TDStepsItemData(title: 'Filish', content: 'Customize content'), - TDStepsItemData(title: 'Process', content: 'Customize content'), - TDStepsItemData(title: 'Default', content: 'Customize content'), - TDStepsItemData(title: 'Default', content: 'Customize content'), + TDStepsItemData(title: Text('Filish'), content: Text('Customize content')), + TDStepsItemData(title: Text('Process'), content: Text('Customize content')), + TDStepsItemData(title: Text('Default'), content: Text('Customize content')), + TDStepsItemData(title: Text('Default'), content: Text('Customize content')), ]; /// 垂直默认步骤条 @Demo(group: 'steps') @@ -442,10 +442,10 @@ class _TDStepsPageState extends State { } List vIconStepsListData = [ - TDStepsItemData(title: 'Filish', content: 'Customize content', successIcon: TDIcons.cart), - TDStepsItemData(title: 'Process', content: 'Customize content', successIcon: TDIcons.cart), - TDStepsItemData(title: 'Default', content: 'Customize content', successIcon: TDIcons.cart), - TDStepsItemData(title: 'Default', content: 'Customize content', successIcon: TDIcons.cart), + TDStepsItemData(title: Text('Filish'), content: Text('Customize content'), successIcon: TDIcons.cart), + TDStepsItemData(title: Text('Process'), content: Text('Customize content'), successIcon: TDIcons.cart), + TDStepsItemData(title: Text('Default'), content: Text('Customize content'), successIcon: TDIcons.cart), + TDStepsItemData(title: Text('Default'), content: Text('Customize content'), successIcon: TDIcons.cart), ]; /// 垂直图标步骤条 @Demo(group: 'steps') @@ -468,10 +468,10 @@ class _TDStepsPageState extends State { } List vSimpleStepsListData = [ - TDStepsItemData(title: 'Filish', content: 'Customize content', successIcon: TDIcons.cart), - TDStepsItemData(title: 'Process', content: 'Customize content', successIcon: TDIcons.cart), - TDStepsItemData(title: 'Default', content: 'Customize content', successIcon: TDIcons.cart), - TDStepsItemData(title: 'Default', content: 'Customize content', successIcon: TDIcons.cart), + TDStepsItemData(title: Text('Filish'), content: Text('Customize content'), successIcon: TDIcons.cart), + TDStepsItemData(title: Text('Process'), content: Text('Customize content'), successIcon: TDIcons.cart), + TDStepsItemData(title: Text('Default'), content: Text('Customize content'), successIcon: TDIcons.cart), + TDStepsItemData(title: Text('Default'), content: Text('Customize content'), successIcon: TDIcons.cart), ]; /// 垂直简略步骤条 @Demo(group: 'steps') @@ -495,10 +495,10 @@ class _TDStepsPageState extends State { } List vErrorBasicStepsListData = [ - TDStepsItemData(title: 'Filish', content: 'Customize content'), - TDStepsItemData(title: 'Process', content: 'Customize content'), - TDStepsItemData(title: 'Default', content: 'Customize content'), - TDStepsItemData(title: 'Default', content: 'Customize content'), + TDStepsItemData(title: Text('Filish'), content: Text('Customize content')), + TDStepsItemData(title: Text('Process'), content: Text('Customize content')), + TDStepsItemData(title: Text('Default'), content: Text('Customize content')), + TDStepsItemData(title: Text('Default'), content: Text('Customize content')), ]; /// 垂直错误状态基本步骤条 @Demo(group: 'steps') @@ -522,10 +522,10 @@ class _TDStepsPageState extends State { } List vErrorIconStepsListData = [ - TDStepsItemData(title: 'Filish', content: 'Customize content', successIcon: TDIcons.cart), - TDStepsItemData(title: 'Process', content: 'Customize content', successIcon: TDIcons.cart, errorIcon: TDIcons.close_circle), - TDStepsItemData(title: 'Default', content: 'Customize content', successIcon: TDIcons.cart), - TDStepsItemData(title: 'Default', content: 'Customize content', successIcon: TDIcons.cart), + TDStepsItemData(title: Text('Filish'), content: Text('Customize content'), successIcon: TDIcons.cart), + TDStepsItemData(title: Text('Process'), content: Text('Customize content'), successIcon: TDIcons.cart, errorIcon: TDIcons.close_circle), + TDStepsItemData(title: Text('Default'), content: Text('Customize content'), successIcon: TDIcons.cart), + TDStepsItemData(title: Text('Default'), content: Text('Customize content'), successIcon: TDIcons.cart), ]; /// 垂直错误状态图标步骤条 @Demo(group: 'steps') @@ -549,10 +549,10 @@ class _TDStepsPageState extends State { } List vErrorSimpleStepsListData = [ - TDStepsItemData(title: 'Filish', content: 'Customize content', successIcon: TDIcons.cart), - TDStepsItemData(title: 'Process', content: 'Customize content', successIcon: TDIcons.cart), - TDStepsItemData(title: 'Default', content: 'Customize content', successIcon: TDIcons.cart), - TDStepsItemData(title: 'Default', content: 'Customize content', successIcon: TDIcons.cart), + TDStepsItemData(title: Text('Filish'), content: Text('Customize content'), successIcon: TDIcons.cart), + TDStepsItemData(title: Text('Process'), content: Text('Customize content'), successIcon: TDIcons.cart), + TDStepsItemData(title: Text('Default'), content: Text('Customize content'), successIcon: TDIcons.cart), + TDStepsItemData(title: Text('Default'), content: Text('Customize content'), successIcon: TDIcons.cart), ]; /// 垂直错误状态图标步骤条 @Demo(group: 'steps') @@ -577,8 +577,8 @@ class _TDStepsPageState extends State { } List vCustomContentBasicStepsListData = [ - TDStepsItemData(title: 'Filish', content: 'Customize content'), - TDStepsItemData(title: 'Process', content: 'Customize content', customContent: Container( + TDStepsItemData(title: Text('Filish'), content: Text('Customize content')), + TDStepsItemData(title: Text('Process'), content: Text('Customize content'), customContent: Container( margin: const EdgeInsets.only(bottom: 16, top: 4), child: ClipRRect( borderRadius: BorderRadius.circular(6), @@ -588,8 +588,8 @@ class _TDStepsPageState extends State { ), ), )), - TDStepsItemData(title: 'Default', content: 'Customize content'), - TDStepsItemData(title: 'Default', content: 'Customize content'), + TDStepsItemData(title: Text('Default'), content: Text('Customize content')), + TDStepsItemData(title: Text('Default'), content: Text('Customize content')), ]; /// 垂直自定义内容基本步骤条 @Demo(group: 'steps') @@ -612,10 +612,10 @@ class _TDStepsPageState extends State { } List hReadOnlyStepsListData = [ - TDStepsItemData(title: 'Filish', content: 'content'), - TDStepsItemData(title: 'Process', content: 'content'), - TDStepsItemData(title: 'Default', content: 'content'), - TDStepsItemData(title: 'Default', content: 'content'), + TDStepsItemData(title: Text('Filish'), content: Text('content')), + TDStepsItemData(title: Text('Process'), content: Text('content')), + TDStepsItemData(title: Text('Default'), content: Text('content')), + TDStepsItemData(title: Text('Default'), content: Text('content')), ]; /// 水平自定义内容基本步骤条 @Demo(group: 'steps') @@ -638,10 +638,10 @@ class _TDStepsPageState extends State { List vReadOnlyStepsListData = [ - TDStepsItemData(title: 'Filish', content: 'Customize content'), - TDStepsItemData(title: 'Process', content: 'Customize content'), - TDStepsItemData(title: 'Default', content: 'Customize content'), - TDStepsItemData(title: 'Default', content: 'Customize content'), + TDStepsItemData(title: Text('Filish'), content: Text('Customize content')), + TDStepsItemData(title: Text('Process'), content: Text('Customize content')), + TDStepsItemData(title: Text('Default'), content: Text('Customize content')), + TDStepsItemData(title: Text('Default'), content: Text('Customize content')), ]; /// 垂直自定义内容基本步骤条 @Demo(group: 'steps') @@ -665,10 +665,10 @@ class _TDStepsPageState extends State { } List vCustomizeStepsListData = [ - TDStepsItemData(title: 'Selected', content: ''), - TDStepsItemData(title: 'Selected', content: ''), - TDStepsItemData(title: 'Selected', content: ''), - TDStepsItemData(title: 'Please Selected', content: ''), + TDStepsItemData(title: Text('Selected'), content: Text('')), + TDStepsItemData(title: Text('Selected'), content: Text('')), + TDStepsItemData(title: Text('Selected'), content: Text('')), + TDStepsItemData(title: Text('Please Selected'), content: Text('')), ]; /// Vertical Customize Steps 垂直自定义步骤条 @Demo(group: 'steps') @@ -692,4 +692,4 @@ class _TDStepsPageState extends State { ); } -} +} \ No newline at end of file diff --git a/tdesign-component/example/pubspec.lock b/tdesign-component/example/pubspec.lock index 335dc17cd..62437311d 100644 --- a/tdesign-component/example/pubspec.lock +++ b/tdesign-component/example/pubspec.lock @@ -5,10 +5,10 @@ packages: dependency: transitive description: name: args - sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 + sha256: bf9f5caeea8d8fe6721a9c358dd8a5c1947b27f1cfaa18b39c301273594919e6 url: "https://pub.dev" source: hosted - version: "2.4.2" + version: "2.6.0" async: dependency: transitive description: @@ -45,34 +45,34 @@ packages: dependency: transitive description: name: collection - sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + sha256: a1ace0a119f20aabc852d165077c036cd864315bd99b7eaa10a60100341941bf url: "https://pub.dev" source: hosted - version: "1.18.0" + version: "1.19.0" cross_file: dependency: transitive description: name: cross_file - sha256: fedaadfa3a6996f75211d835aaeb8fede285dae94262485698afd832371b9a5e + sha256: "7caf6a750a0c04effbb52a676dce9a4a592e10ad35c34d6d2d0e4811160d5670" url: "https://pub.dev" source: hosted - version: "0.3.3+8" + version: "0.3.4+2" cupertino_icons: dependency: "direct main" description: name: cupertino_icons - sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d + sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6 url: "https://pub.dev" source: hosted - version: "1.0.6" + version: "1.0.8" extended_nested_scroll_view: dependency: "direct main" description: name: extended_nested_scroll_view - sha256: fc55b8f7e2c78701320d7eccda3b256387290b8498f0363d8ffd6f16760949d7 + sha256: "835580d40c2c62b448bd14adecd316acba469ba61f1510ef559d17668a85e777" url: "https://pub.dev" source: hosted - version: "6.0.0" + version: "6.2.1" fake_async: dependency: transitive description: @@ -85,34 +85,34 @@ packages: dependency: transitive description: name: file_selector_linux - sha256: "045d372bf19b02aeb69cacf8b4009555fb5f6f0b7ad8016e5f46dd1387ddd492" + sha256: "54cbbd957e1156d29548c7d9b9ec0c0ebb6de0a90452198683a7d23aed617a33" url: "https://pub.dev" source: hosted - version: "0.9.2+1" + version: "0.9.3+2" file_selector_macos: dependency: transitive description: name: file_selector_macos - sha256: f42eacb83b318e183b1ae24eead1373ab1334084404c8c16e0354f9a3e55d385 + sha256: "271ab9986df0c135d45c3cdb6bd0faa5db6f4976d3e4b437cf7d0f258d941bfc" url: "https://pub.dev" source: hosted - version: "0.9.4" + version: "0.9.4+2" file_selector_platform_interface: dependency: transitive description: name: file_selector_platform_interface - sha256: "0aa47a725c346825a2bd396343ce63ac00bda6eff2fbc43eabe99737dede8262" + sha256: a3994c26f10378a039faa11de174d7b78eb8f79e4dd0af2a451410c1a5c3f66b url: "https://pub.dev" source: hosted - version: "2.6.1" + version: "2.6.2" file_selector_windows: dependency: transitive description: name: file_selector_windows - sha256: "2ad726953f6e8affbc4df8dc78b77c3b4a060967a291e528ef72ae846c60fb69" + sha256: "8f5d2f6590d51ecd9179ba39c64f722edc15226cc93dcc8698466ad36a4a85a4" url: "https://pub.dev" source: hosted - version: "0.9.3+2" + version: "0.9.3+3" flutter: dependency: "direct main" description: flutter @@ -130,10 +130,10 @@ packages: dependency: "direct dev" description: name: flutter_lints - sha256: b543301ad291598523947dc534aaddc5aaad597b709d2426d3a0e0d44c5cb493 + sha256: "5398f14efa795ffb7a33e9b6a08798b26a180edac4ad7db3f231e40f82ce11e1" url: "https://pub.dev" source: hosted - version: "1.0.4" + version: "5.0.0" flutter_localizations: dependency: "direct dev" description: flutter @@ -143,26 +143,26 @@ packages: dependency: "direct main" description: name: flutter_markdown - sha256: dc6d5258653f6857135b32896ccda7f7af0c54dcec832495ad6835154c6c77c0 + sha256: "255b00afa1a7bad19727da6a7780cf3db6c3c12e68d302d85e0ff1fdf173db9e" url: "https://pub.dev" source: hosted - version: "0.6.15" + version: "0.7.4+3" flutter_plugin_android_lifecycle: dependency: transitive description: name: flutter_plugin_android_lifecycle - sha256: "8cf40eebf5dec866a6d1956ad7b4f7016e6c0cc69847ab946833b7d43743809f" + sha256: "615a505aef59b151b46bbeef55b36ce2b6ed299d160c51d84281946f0aa0ce0e" url: "https://pub.dev" source: hosted - version: "2.0.19" + version: "2.0.24" flutter_screenutil: dependency: "direct main" description: name: flutter_screenutil - sha256: "0a122936b450324cbdfd51be0819cc6fcebb093eb65585e9cd92263f7a1a8a39" + sha256: "8239210dd68bee6b0577aa4a090890342d04a136ce1c81f98ee513fc0ce891de" url: "https://pub.dev" source: hosted - version: "5.7.0" + version: "5.9.3" flutter_slidable: dependency: transitive description: @@ -193,50 +193,50 @@ packages: dependency: "direct main" description: name: http - sha256: "5895291c13fa8a3bd82e76d5627f69e0d85ca6a30dcac95c4ea19a5d555879c2" + sha256: b9c29a161230ee03d3ccf545097fccd9b87a5264228c5d348202e0f0c28f9010 url: "https://pub.dev" source: hosted - version: "0.13.6" + version: "1.2.2" http_parser: dependency: transitive description: name: http_parser - sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" + sha256: "76d306a1c3afb33fe82e2bbacad62a61f409b5634c915fceb0d799de1a913360" url: "https://pub.dev" source: hosted - version: "4.0.2" + version: "4.1.1" image_picker: dependency: transitive description: name: image_picker - sha256: "1f498d086203360cca099d20ffea2963f48c39ce91bdd8a3b6d4a045786b02c8" + sha256: "021834d9c0c3de46bf0fe40341fa07168407f694d9b2bb18d532dc1261867f7a" url: "https://pub.dev" source: hosted - version: "1.0.8" + version: "1.1.2" image_picker_android: dependency: transitive description: name: image_picker_android - sha256: "844c6da4e4f2829dffdab97816bca09d0e0977e8dcef7450864aba4e07967a58" + sha256: aa6f1280b670861ac45220cc95adc59bb6ae130259d36f980ccb62220dc5e59f url: "https://pub.dev" source: hosted - version: "0.8.9+6" + version: "0.8.12+19" image_picker_for_web: dependency: transitive description: name: image_picker_for_web - sha256: e2423c53a68b579a7c37a1eda967b8ae536c3d98518e5db95ca1fe5719a730a3 + sha256: "717eb042ab08c40767684327be06a5d8dbb341fe791d514e4b92c7bbe1b7bb83" url: "https://pub.dev" source: hosted - version: "3.0.2" + version: "3.0.6" image_picker_ios: dependency: transitive description: name: image_picker_ios - sha256: "917a5cadd67d052554cfb258595e54217de53fac5b52939426e26319a02e6297" + sha256: "4f0568120c6fcc0aaa04511cb9f9f4d29fc3d0139884b1d06be88dcec7641d6b" url: "https://pub.dev" source: hosted - version: "0.8.9+2" + version: "0.8.12+1" image_picker_linux: dependency: transitive description: @@ -257,10 +257,10 @@ packages: dependency: transitive description: name: image_picker_platform_interface - sha256: "0e827c156e3a90edd3bbe7f6de048b39247b16e58173b08a835b7eb00aba239e" + sha256: "9ec26d410ff46f483c5519c29c02ef0e02e13a543f882b152d4bfd2f06802f80" url: "https://pub.dev" source: hosted - version: "2.9.2" + version: "2.10.0" image_picker_windows: dependency: transitive description: @@ -273,79 +273,103 @@ packages: dependency: "direct main" description: name: intl - sha256: "3bc132a9dbce73a7e4a21a17d06e1878839ffbf975568bc875c60537824b0c4d" + sha256: d6f56758b7d3014a48af9701c085700aac781a92a87a62b1333b46d8879661cf + url: "https://pub.dev" + source: hosted + version: "0.19.0" + leak_tracker: + dependency: transitive + description: + name: leak_tracker + sha256: "7bb2830ebd849694d1ec25bf1f44582d6ac531a57a365a803a6034ff751d2d06" + url: "https://pub.dev" + source: hosted + version: "10.0.7" + leak_tracker_flutter_testing: + dependency: transitive + description: + name: leak_tracker_flutter_testing + sha256: "9491a714cca3667b60b5c420da8217e6de0d1ba7a5ec322fab01758f6998f379" url: "https://pub.dev" source: hosted - version: "0.18.1" + version: "3.0.8" + leak_tracker_testing: + dependency: transitive + description: + name: leak_tracker_testing + sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" + url: "https://pub.dev" + source: hosted + version: "3.0.1" lints: dependency: transitive description: name: lints - sha256: a2c3d198cb5ea2e179926622d433331d8b58374ab8f29cdda6e863bd62fd369c + sha256: c35bb79562d980e9a453fc715854e1ed39e24e7d0297a880ef54e17f9874a9d7 url: "https://pub.dev" source: hosted - version: "1.0.1" + version: "5.1.1" markdown: dependency: transitive description: name: markdown - sha256: acf35edccc0463a9d7384e437c015a3535772e09714cf60e07eeef3a15870dcd + sha256: ef2a1298144e3f985cc736b22e0ccdaf188b5b3970648f2d9dc13efd1d9df051 url: "https://pub.dev" source: hosted - version: "7.1.1" + version: "7.2.2" matcher: dependency: transitive description: name: matcher - sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb url: "https://pub.dev" source: hosted - version: "0.12.16" + version: "0.12.16+1" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec url: "https://pub.dev" source: hosted - version: "0.5.0" + version: "0.11.1" meta: dependency: transitive description: name: meta - sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e + sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 url: "https://pub.dev" source: hosted - version: "1.10.0" + version: "1.15.0" mime: dependency: transitive description: name: mime - sha256: "801fd0b26f14a4a58ccb09d5892c3fbdeff209594300a542492cf13fba9d247a" + sha256: "41a20518f0cb1256669420fdba0cd90d21561e560ac240f26ef8322e45bb7ed6" url: "https://pub.dev" source: hosted - version: "1.0.6" + version: "2.0.0" path: dependency: transitive description: name: path - sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" url: "https://pub.dev" source: hosted - version: "1.8.3" + version: "1.9.0" plugin_platform_interface: dependency: transitive description: name: plugin_platform_interface - sha256: da3fdfeccc4d4ff2da8f8c556704c08f912542c5fb3cf2233ed75372384a034d + sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" url: "https://pub.dev" source: hosted - version: "2.1.6" + version: "2.1.8" sky_engine: dependency: transitive description: flutter source: sdk - version: "0.0.99" + version: "0.0.0" source_span: dependency: transitive description: @@ -358,10 +382,10 @@ packages: dependency: transitive description: name: stack_trace - sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + sha256: "9f47fd3630d76be3ab26f0ee06d213679aa425996925ff3feffdec504931c377" url: "https://pub.dev" source: hosted - version: "1.11.1" + version: "1.12.0" stream_channel: dependency: transitive description: @@ -374,17 +398,17 @@ packages: dependency: transitive description: name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + sha256: "688af5ed3402a4bde5b3a6c15fd768dbf2621a614950b17f04626c431ab3c4c3" url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "1.3.0" tdesign_flutter: dependency: "direct main" description: path: ".." relative: true source: path - version: "0.1.7" + version: "0.1.8" term_glyph: dependency: transitive description: @@ -397,18 +421,18 @@ packages: dependency: transitive description: name: test_api - sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + sha256: "664d3a9a64782fcdeb83ce9c6b39e78fd2971d4e37827b9b06c3aa1edc5e760c" url: "https://pub.dev" source: hosted - version: "0.6.1" + version: "0.7.3" typed_data: dependency: transitive description: name: typed_data - sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c + sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006 url: "https://pub.dev" source: hosted - version: "1.3.2" + version: "1.4.0" vector_math: dependency: transitive description: @@ -421,18 +445,26 @@ packages: dependency: transitive description: name: visibility_detector - sha256: "15c54a459ec2c17b4705450483f3d5a2858e733aee893dcee9d75fd04814940d" + sha256: dd5cc11e13494f432d15939c3aa8ae76844c42b723398643ce9addb88a5ed420 + url: "https://pub.dev" + source: hosted + version: "0.4.0+2" + vm_service: + dependency: transitive + description: + name: vm_service + sha256: f6be3ed8bd01289b34d679c2b62226f63c0e69f9fd2e50a6b3c1c729a961041b url: "https://pub.dev" source: hosted - version: "0.3.3" + version: "14.3.0" web: dependency: transitive description: name: web - sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152 + sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb url: "https://pub.dev" source: hosted - version: "0.3.0" + version: "1.1.0" sdks: - dart: ">=3.2.6 <4.0.0" - flutter: ">=3.16.6" + dart: ">=3.6.0 <4.0.0" + flutter: ">=3.24.0" diff --git a/tdesign-component/example/pubspec.yaml b/tdesign-component/example/pubspec.yaml index f794b07eb..a10790b76 100644 --- a/tdesign-component/example/pubspec.yaml +++ b/tdesign-component/example/pubspec.yaml @@ -18,8 +18,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: - sdk: ">=3.2.6 <4.0.0" - flutter: ">=3.16.0" + sdk: ">=2.19.0 <4.0.0" # Dependencies specify other packages that your package needs in order to work. # To automatically upgrade your package dependencies to the latest versions @@ -30,6 +29,7 @@ environment: dependencies: flutter: sdk: flutter + # web: ^0.3.0 #轮播图组件 flutter_swiper_null_safety: ^1.0.2 @@ -39,11 +39,11 @@ dependencies: # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.2 - flutter_markdown: ^0.6.14 - http: ^0.13.5 + flutter_markdown: ^0.7.4+3 + http: ^1.2.2 tdesign_flutter: path: ../ -# path_provider: 2.1.5 + # path_provider: 2.1.5 extended_nested_scroll_view: any flutter_screenutil: any dev_dependencies: @@ -56,7 +56,7 @@ dev_dependencies: # activated in the `analysis_options.yaml` file located at the root of your # package. See that file for information about deactivating specific lint # rules and activating additional ones. - flutter_lints: ^1.0.0 + flutter_lints: ^5.0.0 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec diff --git a/tdesign-component/lib/src/components/steps/td_steps.dart b/tdesign-component/lib/src/components/steps/td_steps.dart index 7176b1e6a..4116eaf92 100644 --- a/tdesign-component/lib/src/components/steps/td_steps.dart +++ b/tdesign-component/lib/src/components/steps/td_steps.dart @@ -7,18 +7,18 @@ import '../../../tdesign_flutter.dart'; class TDStepsItemData { TDStepsItemData({ - required this.title, - required this.content, + this.title, + this.content, this.successIcon, this.errorIcon, this.customContent, }); /// 标题 - final String title; + final Widget? title; /// 内容 - final String content; + final Widget? content; /// 成功图标 final IconData? successIcon; @@ -80,23 +80,23 @@ class _TDStepsState extends State { Widget build(BuildContext context) { /// 当前激活的step索引 final currentActiveIndex = widget.activeIndex < 0 ? 0 : - (widget.activeIndex >= widget.steps.length ? widget.steps.length - 1 : widget.activeIndex); + (widget.activeIndex >= widget.steps.length ? widget.steps.length - 1 : widget.activeIndex); return widget.direction == TDStepsDirection.horizontal ? - TDStepsHorizontal( + TDStepsHorizontal( steps: widget.steps, activeIndex: currentActiveIndex, status: widget.status, simple: widget.simple, readOnly: widget.readOnly - ): - TDStepsVertical( - steps: widget.steps, - activeIndex: currentActiveIndex, - status: widget.status, - simple: widget.simple, - readOnly: widget.readOnly, - verticalSelect: widget.verticalSelect, - ); + ): + TDStepsVertical( + steps: widget.steps, + activeIndex: currentActiveIndex, + status: widget.status, + simple: widget.simple, + readOnly: widget.readOnly, + verticalSelect: widget.verticalSelect, + ); } -} +} \ No newline at end of file diff --git a/tdesign-component/lib/src/components/steps/td_steps_horizontal_item.dart b/tdesign-component/lib/src/components/steps/td_steps_horizontal_item.dart index 5fc931b3a..6978cb64b 100644 --- a/tdesign-component/lib/src/components/steps/td_steps_horizontal_item.dart +++ b/tdesign-component/lib/src/components/steps/td_steps_horizontal_item.dart @@ -10,6 +10,7 @@ class TDStepsHorizontalItem extends StatelessWidget { final TDStepsStatus status; final bool simple; final bool readOnly; + const TDStepsHorizontalItem({ super.key, required this.data, @@ -23,6 +24,10 @@ class TDStepsHorizontalItem extends StatelessWidget { @override Widget build(BuildContext context) { + /// 默认标题 + Widget defaultTitle = Text('Step ${index + 1}', style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold)); + /// 默认内容 + Widget defaultContent = Text('This is the content of step ${index + 1}.'); /// 步骤条数字背景色 var stepsNumberBgColor = TDTheme.of(context).brandNormalColor; /// 步骤条数字颜色 @@ -145,9 +150,9 @@ class TDStepsHorizontalItem extends StatelessWidget { child: Opacity( opacity: index == 0 ? 0 : 1, child: Container( - width: double.infinity, - height: 1, - color: (activeIndex >= index || readOnly) ? TDTheme.of(context).brandColor7 : TDTheme.of(context).grayColor4 + width: double.infinity, + height: 1, + color: (activeIndex >= index || readOnly) ? TDTheme.of(context).brandColor7 : TDTheme.of(context).grayColor4 ), ), ), @@ -175,30 +180,14 @@ class TDStepsHorizontalItem extends StatelessWidget { Container( margin: const EdgeInsets.only(top: 8), alignment: Alignment.center, - child: TDText( - data.title, - style: TextStyle( - fontWeight: (activeIndex == index && !readOnly) ? FontWeight.w600 : FontWeight.w400, - color: stepsTitleColor, - fontSize: 14, - ), - ), + child: data.title ?? defaultTitle, // 使用默认title ), Container( margin: const EdgeInsets.only(top: 4), alignment: Alignment.center, - child: TDText( - data.content, - style: TextStyle( - fontWeight: FontWeight.w400, - color: TDTheme.of(context).fontGyColor3, - fontSize: 12, - ), - ), + child: data.content ?? defaultContent, // 使用默认content ), ], ); } - -} - +} \ No newline at end of file diff --git a/tdesign-component/lib/src/components/steps/td_steps_vertical_item.dart b/tdesign-component/lib/src/components/steps/td_steps_vertical_item.dart index 4b213ffa4..4f63c80c1 100644 --- a/tdesign-component/lib/src/components/steps/td_steps_vertical_item.dart +++ b/tdesign-component/lib/src/components/steps/td_steps_vertical_item.dart @@ -11,6 +11,7 @@ class TDStepsVerticalItem extends StatelessWidget { final bool simple; final bool readOnly; final bool verticalSelect; + const TDStepsVerticalItem({ super.key, required this.data, @@ -25,6 +26,10 @@ class TDStepsVerticalItem extends StatelessWidget { @override Widget build(BuildContext context) { + /// 默认标题 + Widget defaultTitle = Text('Step ${index + 1}', style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold)); + /// 默认内容 + Widget defaultContent = Text('This is the content of step ${index + 1}.'); /// 步骤条数字背景色 var stepsNumberBgColor = TDTheme.of(context).brandNormalColor; /// 步骤条数字颜色 @@ -195,33 +200,18 @@ class TDStepsVerticalItem extends StatelessWidget { child: Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ - TDText( - data.title, - style: TextStyle( - fontWeight: (activeIndex == index && !readOnly) ? FontWeight.w600 : FontWeight.w400, - color: stepsTitleColor, - fontSize: 14, - height: 1.2, - ), - ), - verticalSelect ? Icon(TDIcons.chevron_right, color: TDTheme.of(context).fontGyColor1, size: 16,): Container(), + data.title ?? defaultTitle, // 使用默认title + verticalSelect ? Icon(TDIcons.chevron_right, color: TDTheme.of(context).fontGyColor1, size: 16,) : Container(), ], ), ), Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - TDText( - data.content, - style: TextStyle( - fontWeight: FontWeight.w400, - color: TDTheme.of(context).fontGyColor3, - fontSize: 12, - ), - ), - customContent, - ] + mainAxisAlignment: MainAxisAlignment.start, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + data.content ?? defaultContent, // 使用默认content + customContent, + ] ), ], ), @@ -231,6 +221,4 @@ class TDStepsVerticalItem extends StatelessWidget { ), ); } - -} - +} \ No newline at end of file diff --git a/tdesign-component/pubspec.lock b/tdesign-component/pubspec.lock index 02743ed95..10bb72797 100644 --- a/tdesign-component/pubspec.lock +++ b/tdesign-component/pubspec.lock @@ -37,18 +37,18 @@ packages: dependency: transitive description: name: collection - sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + sha256: a1ace0a119f20aabc852d165077c036cd864315bd99b7eaa10a60100341941bf url: "https://pub.dev" source: hosted - version: "1.18.0" + version: "1.19.0" cross_file: dependency: transitive description: name: cross_file - sha256: fedaadfa3a6996f75211d835aaeb8fede285dae94262485698afd832371b9a5e + sha256: "7caf6a750a0c04effbb52a676dce9a4a592e10ad35c34d6d2d0e4811160d5670" url: "https://pub.dev" source: hosted - version: "0.3.3+8" + version: "0.3.4+2" fake_async: dependency: transitive description: @@ -61,18 +61,18 @@ packages: dependency: transitive description: name: file_selector_linux - sha256: "045d372bf19b02aeb69cacf8b4009555fb5f6f0b7ad8016e5f46dd1387ddd492" + sha256: "54cbbd957e1156d29548c7d9b9ec0c0ebb6de0a90452198683a7d23aed617a33" url: "https://pub.dev" source: hosted - version: "0.9.2+1" + version: "0.9.3+2" file_selector_macos: dependency: transitive description: name: file_selector_macos - sha256: f42eacb83b318e183b1ae24eead1373ab1334084404c8c16e0354f9a3e55d385 + sha256: "271ab9986df0c135d45c3cdb6bd0faa5db6f4976d3e4b437cf7d0f258d941bfc" url: "https://pub.dev" source: hosted - version: "0.9.4" + version: "0.9.4+2" file_selector_platform_interface: dependency: transitive description: @@ -85,10 +85,10 @@ packages: dependency: transitive description: name: file_selector_windows - sha256: "2ad726953f6e8affbc4df8dc78b77c3b4a060967a291e528ef72ae846c60fb69" + sha256: "8f5d2f6590d51ecd9179ba39c64f722edc15226cc93dcc8698466ad36a4a85a4" url: "https://pub.dev" source: hosted - version: "0.9.3+2" + version: "0.9.3+3" flutter: dependency: "direct main" description: flutter @@ -114,10 +114,10 @@ packages: dependency: transitive description: name: flutter_plugin_android_lifecycle - sha256: "8cf40eebf5dec866a6d1956ad7b4f7016e6c0cc69847ab946833b7d43743809f" + sha256: "615a505aef59b151b46bbeef55b36ce2b6ed299d160c51d84281946f0aa0ce0e" url: "https://pub.dev" source: hosted - version: "2.0.19" + version: "2.0.24" flutter_slidable: dependency: "direct main" description: @@ -148,50 +148,50 @@ packages: dependency: transitive description: name: http - sha256: a2bbf9d017fcced29139daa8ed2bba4ece450ab222871df93ca9eec6f80c34ba + sha256: b9c29a161230ee03d3ccf545097fccd9b87a5264228c5d348202e0f0c28f9010 url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "1.2.2" http_parser: dependency: transitive description: name: http_parser - sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" + sha256: "76d306a1c3afb33fe82e2bbacad62a61f409b5634c915fceb0d799de1a913360" url: "https://pub.dev" source: hosted - version: "4.0.2" + version: "4.1.1" image_picker: dependency: "direct main" description: name: image_picker - sha256: "1f498d086203360cca099d20ffea2963f48c39ce91bdd8a3b6d4a045786b02c8" + sha256: "021834d9c0c3de46bf0fe40341fa07168407f694d9b2bb18d532dc1261867f7a" url: "https://pub.dev" source: hosted - version: "1.0.8" + version: "1.1.2" image_picker_android: dependency: transitive description: name: image_picker_android - sha256: "844c6da4e4f2829dffdab97816bca09d0e0977e8dcef7450864aba4e07967a58" + sha256: aa6f1280b670861ac45220cc95adc59bb6ae130259d36f980ccb62220dc5e59f url: "https://pub.dev" source: hosted - version: "0.8.9+6" + version: "0.8.12+19" image_picker_for_web: dependency: transitive description: name: image_picker_for_web - sha256: e2423c53a68b579a7c37a1eda967b8ae536c3d98518e5db95ca1fe5719a730a3 + sha256: "717eb042ab08c40767684327be06a5d8dbb341fe791d514e4b92c7bbe1b7bb83" url: "https://pub.dev" source: hosted - version: "3.0.2" + version: "3.0.6" image_picker_ios: dependency: transitive description: name: image_picker_ios - sha256: "917a5cadd67d052554cfb258595e54217de53fac5b52939426e26319a02e6297" + sha256: "4f0568120c6fcc0aaa04511cb9f9f4d29fc3d0139884b1d06be88dcec7641d6b" url: "https://pub.dev" source: hosted - version: "0.8.9+2" + version: "0.8.12+1" image_picker_linux: dependency: transitive description: @@ -212,10 +212,10 @@ packages: dependency: transitive description: name: image_picker_platform_interface - sha256: fa4e815e6fcada50e35718727d83ba1c92f1edf95c0b4436554cec301b56233b + sha256: "9ec26d410ff46f483c5519c29c02ef0e02e13a543f882b152d4bfd2f06802f80" url: "https://pub.dev" source: hosted - version: "2.9.3" + version: "2.10.0" image_picker_windows: dependency: transitive description: @@ -224,6 +224,30 @@ packages: url: "https://pub.dev" source: hosted version: "0.2.1+1" + leak_tracker: + dependency: transitive + description: + name: leak_tracker + sha256: "7bb2830ebd849694d1ec25bf1f44582d6ac531a57a365a803a6034ff751d2d06" + url: "https://pub.dev" + source: hosted + version: "10.0.7" + leak_tracker_flutter_testing: + dependency: transitive + description: + name: leak_tracker_flutter_testing + sha256: "9491a714cca3667b60b5c420da8217e6de0d1ba7a5ec322fab01758f6998f379" + url: "https://pub.dev" + source: hosted + version: "3.0.8" + leak_tracker_testing: + dependency: transitive + description: + name: leak_tracker_testing + sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" + url: "https://pub.dev" + source: hosted + version: "3.0.1" lints: dependency: transitive description: @@ -236,42 +260,42 @@ packages: dependency: transitive description: name: matcher - sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb url: "https://pub.dev" source: hosted - version: "0.12.16" + version: "0.12.16+1" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec url: "https://pub.dev" source: hosted - version: "0.5.0" + version: "0.11.1" meta: dependency: transitive description: name: meta - sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e + sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 url: "https://pub.dev" source: hosted - version: "1.10.0" + version: "1.15.0" mime: dependency: transitive description: name: mime - sha256: "801fd0b26f14a4a58ccb09d5892c3fbdeff209594300a542492cf13fba9d247a" + sha256: "41a20518f0cb1256669420fdba0cd90d21561e560ac240f26ef8322e45bb7ed6" url: "https://pub.dev" source: hosted - version: "1.0.6" + version: "2.0.0" path: dependency: transitive description: name: path - sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" url: "https://pub.dev" source: hosted - version: "1.8.3" + version: "1.9.0" plugin_platform_interface: dependency: transitive description: @@ -284,7 +308,7 @@ packages: dependency: transitive description: flutter source: sdk - version: "0.0.99" + version: "0.0.0" source_span: dependency: transitive description: @@ -297,10 +321,10 @@ packages: dependency: transitive description: name: stack_trace - sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + sha256: "9f47fd3630d76be3ab26f0ee06d213679aa425996925ff3feffdec504931c377" url: "https://pub.dev" source: hosted - version: "1.11.1" + version: "1.12.0" stream_channel: dependency: transitive description: @@ -313,10 +337,10 @@ packages: dependency: transitive description: name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + sha256: "688af5ed3402a4bde5b3a6c15fd768dbf2621a614950b17f04626c431ab3c4c3" url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "1.3.0" term_glyph: dependency: transitive description: @@ -329,18 +353,18 @@ packages: dependency: transitive description: name: test_api - sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + sha256: "664d3a9a64782fcdeb83ce9c6b39e78fd2971d4e37827b9b06c3aa1edc5e760c" url: "https://pub.dev" source: hosted - version: "0.6.1" + version: "0.7.3" typed_data: dependency: transitive description: name: typed_data - sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c + sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006 url: "https://pub.dev" source: hosted - version: "1.3.2" + version: "1.4.0" vector_math: dependency: transitive description: @@ -349,14 +373,22 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.4" + vm_service: + dependency: transitive + description: + name: vm_service + sha256: f6be3ed8bd01289b34d679c2b62226f63c0e69f9fd2e50a6b3c1c729a961041b + url: "https://pub.dev" + source: hosted + version: "14.3.0" web: dependency: transitive description: name: web - sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152 + sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb url: "https://pub.dev" source: hosted - version: "0.3.0" + version: "1.1.0" sdks: - dart: ">=3.2.6 <4.0.0" - flutter: ">=3.16.6" + dart: ">=3.5.0 <4.0.0" + flutter: ">=3.24.0" diff --git a/tdesign-component/pubspec.yaml b/tdesign-component/pubspec.yaml index 7c96ea876..044d4948a 100644 --- a/tdesign-component/pubspec.yaml +++ b/tdesign-component/pubspec.yaml @@ -21,7 +21,7 @@ dependencies: flutter_slidable: 3.1.2 # 相册选择组件 - image_picker: 1.0.8 + image_picker: 1.1.2 dev_dependencies: flutter_lints: ^1.0.4