Browse Source

no message

ios
ZHR007 3 months ago
parent
commit
1ed7e83ae8
2 changed files with 43 additions and 44 deletions
  1. 3
      lib/components/home_appbar.dart
  2. 84
      lib/pages/discover/dating_page.dart

3
lib/components/home_appbar.dart

@ -29,8 +29,7 @@ class _HomeAppbarState extends State<HomeAppbar> {
children: [ children: [
Container( Container(
height: ScreenUtil().setWidth(54), height: ScreenUtil().setWidth(54),
padding: EdgeInsets.symmetric(
horizontal: ScreenUtil().setWidth(17)),
padding: EdgeInsets.symmetric(horizontal: ScreenUtil().setWidth(17)),
child: Stack( child: Stack(
children: [ children: [
Row( Row(

84
lib/pages/discover/dating_page.dart

@ -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}');

Loading…
Cancel
Save