-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a436b95
commit 704dc2d
Showing
23 changed files
with
2,789 additions
and
3,155 deletions.
There are no files selected for viewing
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
38 changes: 18 additions & 20 deletions
38
tdesign-component/example/assets/code/bottomTabBar._iconTextTypeTabBar.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,23 +1,21 @@ | ||
|
||
Widget _iconTextTypeTabBar(BuildContext context) { | ||
|
||
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'); | ||
}, | ||
), | ||
]); | ||
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'); | ||
}, | ||
), | ||
]); | ||
} |
51 changes: 26 additions & 25 deletions
51
tdesign-component/example/assets/code/bottomTabBar._iconTextTypeTabBar3tabs.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,28 +1,29 @@ | ||
|
||
Widget _iconTextTypeTabBar3tabs(BuildContext context) { | ||
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, '标签2'); | ||
}, | ||
), | ||
]); | ||
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, '标签2'); | ||
}, | ||
), | ||
]); | ||
} |
66 changes: 34 additions & 32 deletions
66
tdesign-component/example/assets/code/bottomTabBar._iconTextTypeTabBar4tabs.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,35 +1,37 @@ | ||
|
||
Widget _iconTextTypeTabBar4tabs(BuildContext context) { | ||
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, '标签2'); | ||
}, | ||
), | ||
TDBottomTabBarTabConfig( tabText: '标签', | ||
selectedIcon: _selectedIcon, | ||
unselectedIcon: _unSelectedIcon, | ||
onTap: () { | ||
onTapTab(context, '标签2'); | ||
}, | ||
), | ||
]); | ||
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, '标签2'); | ||
}, | ||
), | ||
TDBottomTabBarTabConfig( | ||
tabText: '标签', | ||
selectedIcon: _selectedIcon, | ||
unselectedIcon: _unSelectedIcon, | ||
onTap: () { | ||
onTapTab(context, '标签2'); | ||
}, | ||
), | ||
]); | ||
} |
81 changes: 42 additions & 39 deletions
81
tdesign-component/example/assets/code/bottomTabBar._iconTextTypeTabBar5tabs.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,42 +1,45 @@ | ||
|
||
Widget _iconTextTypeTabBar5tabs(BuildContext context) { | ||
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, '标签2'); | ||
}, | ||
), | ||
TDBottomTabBarTabConfig( tabText: '标签', | ||
selectedIcon: _selectedIcon, | ||
unselectedIcon: _unSelectedIcon, | ||
onTap: () { | ||
onTapTab(context, '标签2'); | ||
}, | ||
), | ||
TDBottomTabBarTabConfig( tabText: '标签', | ||
selectedIcon: _selectedIcon, | ||
unselectedIcon: _unSelectedIcon, | ||
onTap: () { | ||
onTapTab(context, '标签2'); | ||
}, | ||
), | ||
]); | ||
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, '标签2'); | ||
}, | ||
), | ||
TDBottomTabBarTabConfig( | ||
tabText: '标签', | ||
selectedIcon: _selectedIcon, | ||
unselectedIcon: _unSelectedIcon, | ||
onTap: () { | ||
onTapTab(context, '标签2'); | ||
}, | ||
), | ||
TDBottomTabBarTabConfig( | ||
tabText: '标签', | ||
selectedIcon: _selectedIcon, | ||
unselectedIcon: _unSelectedIcon, | ||
onTap: () { | ||
onTapTab(context, '标签2'); | ||
}, | ||
), | ||
]); | ||
} |
31 changes: 14 additions & 17 deletions
31
tdesign-component/example/assets/code/bottomTabBar._iconTypeTabBar.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,20 +1,17 @@ | ||
|
||
Widget _iconTypeTabBar(BuildContext context) { | ||
return TDBottomTabBar(TDBottomTabBarBasicType.icon, | ||
useVerticalDivider: true, | ||
navigationTabs: [ | ||
TDBottomTabBarTabConfig( | ||
selectedIcon: _selectedIcon, | ||
unselectedIcon: _unSelectedIcon, | ||
onTap: () { | ||
onTapTab(context, '标签1'); | ||
}), | ||
TDBottomTabBarTabConfig( | ||
|
||
selectedIcon: _selectedIcon, | ||
unselectedIcon: _unSelectedIcon, | ||
onTap: () { | ||
onTapTab(context, '标签2'); | ||
}) | ||
]); | ||
return TDBottomTabBar(TDBottomTabBarBasicType.icon, useVerticalDivider: true, navigationTabs: [ | ||
TDBottomTabBarTabConfig( | ||
selectedIcon: _selectedIcon, | ||
unselectedIcon: _unSelectedIcon, | ||
onTap: () { | ||
onTapTab(context, '标签1'); | ||
}), | ||
TDBottomTabBarTabConfig( | ||
selectedIcon: _selectedIcon, | ||
unselectedIcon: _unSelectedIcon, | ||
onTap: () { | ||
onTapTab(context, '标签2'); | ||
}) | ||
]); | ||
} |
Oops, something went wrong.