Skip to content

Commit

Permalink
Merge branch 'release/0.1.8' of https://github.com/Tencent/tdesign-fl…
Browse files Browse the repository at this point in the history
…utter into release/0.1.8
  • Loading branch information
Luozf12345 committed Dec 26, 2024
2 parents c706c63 + 0910ef9 commit df40121
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

Widget _iconTextTypeTabBarOverflow(BuildContext context) {
final selectedIcon = Icon(
TDIcons.app,
color: TDTheme.of(context).brandNormalColor,
);
final unSelectedIcon = Icon(
TDIcons.app,
color: TDTheme.of(context).brandNormalColor,
);
return TDBottomTabBar(TDBottomTabBarBasicType.iconText, useVerticalDivider: false, navigationTabs: [
TDBottomTabBarTabConfig(
tabText: '标签',
selectedIcon: selectedIcon,
unselectedIcon: unSelectedIcon,
onTap: () {
onTapTab(context, '标签1');
},
),
TDBottomTabBarTabConfig(
tabText: '标签',
selectedIcon: selectedIcon,
unselectedIcon: unSelectedIcon,
onTap: () {
onTapTab(context, '标签2');
},
),
TDBottomTabBarTabConfig(
tabText: '标签',
selectedIcon: selectedIcon,
unselectedIcon: unSelectedIcon,
onTap: () {
onTapTab(context, '标签3');
},
),
]);
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
return TDButton(
onTap: () {
TDToast.showText('轻提示文字内容',
context: context, preventTap: true);
context: context,
preventTap: true,
backgroundColor: Colors.black.withOpacity(0.7));
},
size: TDButtonSize.large,
type: TDButtonType.outline,
Expand Down
14 changes: 7 additions & 7 deletions tdesign-site/src/toast/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,13 +309,13 @@ import 'package:tdesign_flutter/tdesign_flutter.dart';

| 名称 | 返回类型 | 参数 | 说明 |
| --- | --- | --- | --- |
| showText | | required String? text, required BuildContext context, Duration duration, int? maxLines, BoxConstraints? constraints, bool? preventTap, | 普通文本Toast |
| showIconText | | required String? text, IconData? icon, IconTextDirection direction, required BuildContext context, Duration duration, bool? preventTap, | 带图标的Toast |
| showSuccess | | required String? text, IconTextDirection direction, required BuildContext context, Duration duration, bool? preventTap, | 成功提示Toast |
| showWarning | | required String? text, IconTextDirection direction, required BuildContext context, Duration duration, bool? preventTap, | 警告Toast |
| showFail | | required String? text, IconTextDirection direction, required BuildContext context, Duration duration, bool? preventTap, | 失败提示Toast |
| showLoading | | required BuildContext context, String? text, Duration duration, bool? preventTap, | 带文案的加载Toast |
| showLoadingWithoutText | | required BuildContext context, String? text, Duration duration, bool? preventTap, | 不带文案的加载Toast |
| showText | | required String? text, required BuildContext context, Duration duration, int? maxLines, BoxConstraints? constraints, bool? preventTap, Color? backgroundColor, | 普通文本Toast |
| showIconText | | required String? text, IconData? icon, IconTextDirection direction, required BuildContext context, Duration duration, bool? preventTap, Color? backgroundColor, | 带图标的Toast |
| showSuccess | | required String? text, IconTextDirection direction, required BuildContext context, Duration duration, bool? preventTap, Color? backgroundColor, | 成功提示Toast |
| showWarning | | required String? text, IconTextDirection direction, required BuildContext context, Duration duration, bool? preventTap, Color? backgroundColor, | 警告Toast |
| showFail | | required String? text, IconTextDirection direction, required BuildContext context, Duration duration, bool? preventTap, Color? backgroundColor, | 失败提示Toast |
| showLoading | | required BuildContext context, String? text, Duration duration, bool? preventTap, Color? backgroundColor, | 带文案的加载Toast |
| showLoadingWithoutText | | required BuildContext context, String? text, Duration duration, bool? preventTap, Color? backgroundColor, | 不带文案的加载Toast |
| dismissLoading | | | 关闭加载Toast |


Expand Down

0 comments on commit df40121

Please sign in to comment.