|
|
@ -58,48 +58,48 @@ class _DatingPageState extends State<DatingPage> |
|
|
super.build(context); |
|
|
super.build(context); |
|
|
return Column( |
|
|
return Column( |
|
|
children: [ |
|
|
children: [ |
|
|
TDTabBar( |
|
|
|
|
|
tabs: [ |
|
|
|
|
|
TDTab( |
|
|
|
|
|
child: Padding( |
|
|
|
|
|
padding: EdgeInsets.only(right: 16, left: 16), |
|
|
|
|
|
child: Text('全部'), |
|
|
|
|
|
), |
|
|
|
|
|
), |
|
|
|
|
|
TDTab( |
|
|
|
|
|
child: Padding( |
|
|
|
|
|
padding: EdgeInsets.only(right: 16, left: 16), |
|
|
|
|
|
child: Text('同城'), |
|
|
|
|
|
), |
|
|
|
|
|
), |
|
|
|
|
|
TDTab( |
|
|
|
|
|
child: Padding( |
|
|
|
|
|
padding: EdgeInsets.only(right: 12, left: 12), |
|
|
|
|
|
child: Text('相亲视频'), |
|
|
|
|
|
), |
|
|
|
|
|
), |
|
|
|
|
|
TDTab( |
|
|
|
|
|
child: Padding( |
|
|
|
|
|
padding: EdgeInsets.only(right: 12, left: 12), |
|
|
|
|
|
child: Text('相亲语音'), |
|
|
|
|
|
), |
|
|
|
|
|
), |
|
|
|
|
|
], |
|
|
|
|
|
backgroundColor: Colors.transparent, |
|
|
|
|
|
labelPadding: const EdgeInsets.only(right: 4, top: 10, bottom: 10, left: 4), |
|
|
|
|
|
selectedBgColor: const Color.fromRGBO(108, 105, 244, 1), |
|
|
|
|
|
unSelectedBgColor: Colors.transparent, |
|
|
|
|
|
labelColor: Colors.white, |
|
|
|
|
|
dividerHeight: 0, |
|
|
|
|
|
tabAlignment: TabAlignment.start, |
|
|
|
|
|
outlineType: TDTabBarOutlineType.capsule, |
|
|
|
|
|
controller: _tabController, |
|
|
|
|
|
showIndicator: false, |
|
|
|
|
|
isScrollable: true, |
|
|
|
|
|
onTap: (index) { |
|
|
|
|
|
print('相亲页面 Tab: $index'); |
|
|
|
|
|
}, |
|
|
|
|
|
), |
|
|
|
|
|
|
|
|
// TDTabBar( |
|
|
|
|
|
// tabs: [ |
|
|
|
|
|
// TDTab( |
|
|
|
|
|
// child: Padding( |
|
|
|
|
|
// padding: EdgeInsets.only(right: 16, left: 16), |
|
|
|
|
|
// child: Text('全部'), |
|
|
|
|
|
// ), |
|
|
|
|
|
// ), |
|
|
|
|
|
// TDTab( |
|
|
|
|
|
// child: Padding( |
|
|
|
|
|
// padding: EdgeInsets.only(right: 16, left: 16), |
|
|
|
|
|
// child: Text('同城'), |
|
|
|
|
|
// ), |
|
|
|
|
|
// ), |
|
|
|
|
|
// TDTab( |
|
|
|
|
|
// child: Padding( |
|
|
|
|
|
// padding: EdgeInsets.only(right: 12, left: 12), |
|
|
|
|
|
// child: Text('相亲视频'), |
|
|
|
|
|
// ), |
|
|
|
|
|
// ), |
|
|
|
|
|
// TDTab( |
|
|
|
|
|
// child: Padding( |
|
|
|
|
|
// padding: EdgeInsets.only(right: 12, left: 12), |
|
|
|
|
|
// child: Text('相亲语音'), |
|
|
|
|
|
// ), |
|
|
|
|
|
// ), |
|
|
|
|
|
// ], |
|
|
|
|
|
// backgroundColor: Colors.transparent, |
|
|
|
|
|
// labelPadding: const EdgeInsets.only(right: 4, top: 10, bottom: 10, left: 4), |
|
|
|
|
|
// selectedBgColor: const Color.fromRGBO(108, 105, 244, 1), |
|
|
|
|
|
// unSelectedBgColor: Colors.transparent, |
|
|
|
|
|
// labelColor: Colors.white, |
|
|
|
|
|
// dividerHeight: 0, |
|
|
|
|
|
// tabAlignment: TabAlignment.start, |
|
|
|
|
|
// outlineType: TDTabBarOutlineType.capsule, |
|
|
|
|
|
// controller: _tabController, |
|
|
|
|
|
// showIndicator: false, |
|
|
|
|
|
// isScrollable: true, |
|
|
|
|
|
// onTap: (index) { |
|
|
|
|
|
// print('相亲页面 Tab: $index'); |
|
|
|
|
|
// }, |
|
|
|
|
|
// ), |
|
|
Expanded( |
|
|
Expanded( |
|
|
child: Obx(() { |
|
|
child: Obx(() { |
|
|
print('DatingPage Obx 触发,列表长度: ${discoverController.rtcChannelList.length}'); |
|
|
print('DatingPage Obx 触发,列表长度: ${discoverController.rtcChannelList.length}'); |
|
|
|