Skip to content

Commit

Permalink
支持显示图片标题
Browse files Browse the repository at this point in the history
  • Loading branch information
ccXxx1aoBai committed Dec 18, 2024
1 parent a4ca903 commit c45fc19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tdesign-component/example/lib/page/td_image_viewer_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class _TDImageViewerPageState extends State<TDImageViewerPage> {
ExampleItem(desc: '长按图片', builder: _longPressImageViewer),
ExampleItem(desc: '图片超宽情况', builder: _ultraWidthImageViewer),
ExampleItem(desc: '图片超高情况', builder: _ultraHeightImageViewer),
ExampleItem(desc: '带图片描述', builder: _descImageViewer),
ExampleItem(desc: '带图片标题', builder: _descImageViewer),
],
);
}
Expand Down Expand Up @@ -157,13 +157,13 @@ class _TDImageViewerPageState extends State<TDImageViewerPage> {
'https://tdesign.gtimg.com/mobile/demos/swiper1.png',
'https://tdesign.gtimg.com/mobile/demos/swiper2.png',
];
var labels = ['图片描述1', '图片描述2'];
var labels = ['图片标题1', '图片标题2'];
return TDButton(
type: TDButtonType.ghost,
theme: TDButtonTheme.primary,
isBlock: true,
size: TDButtonSize.large,
text: '带图片描述',
text: '带图片标题',
onTap: () {
TDImageViewer.showImageViewer(
context: context,
Expand Down

0 comments on commit c45fc19

Please sign in to comment.