-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from Tencent/auto_md
Auto md
- Loading branch information
Showing
45 changed files
with
1,583 additions
and
4,043 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.13.0 | ||
3.10.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
tdesign-component/example/assets/code/image._imageFitWidth.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
Widget _imageFitWidth(BuildContext context) { | ||
return Padding( | ||
padding: const EdgeInsets.only(top: 24), | ||
child: Row( | ||
children: [ | ||
const SizedBox( | ||
width: 16, | ||
), | ||
Column( | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
children: [ | ||
Padding( | ||
padding: const EdgeInsets.only(bottom: 16), | ||
child: TDText( | ||
'适应宽', | ||
font: TDTheme.of(context).fontBodyMedium, | ||
textColor: TDTheme.of(context).fontGyColor2.withOpacity(0.6), | ||
), | ||
), | ||
Container( | ||
width: 72, | ||
height: 89, | ||
color: Colors.black, | ||
child: const TDImage( | ||
assetUrl: 'assets/img/image.png', | ||
type: TDImageType.fitWidth, | ||
), | ||
), | ||
], | ||
), | ||
], | ||
), | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
tdesign-component/example/assets/code/swiper._buildVerticalDotsBarSwiper.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
Widget _buildVerticalDotsBarSwiper(BuildContext context) { | ||
return Swiper( | ||
autoplay: true, | ||
itemCount: 6, | ||
loop: true, | ||
scrollDirection:Axis.vertical, | ||
pagination: const SwiperPagination( | ||
alignment: Alignment.bottomRight, | ||
builder: TDSwiperPagination.dotsBar), | ||
itemBuilder: (BuildContext context, int index) { | ||
return const TDImage(assetUrl: 'assets/img/image.png',); | ||
}, | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tdesign-component/example/assets/code/text._buildVerticalCenterText.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
|
||
Widget _buildVerticalCenterText(BuildContext context) { | ||
return const TDText( | ||
return TDText( | ||
'中华人民共和国腾讯科技', | ||
// font: Font(size: 100, lineHeight: 100), | ||
forceVerticalCenter: true, | ||
backgroundColor: Colors.orange, | ||
backgroundColor: TDTheme.of(context).brandHoverColor, | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.