|
|
@@ -177,41 +177,46 @@ class _NewsState extends State<News> with SingleTickerProviderStateMixin {
|
|
|
title: Image.asset(
|
|
|
'img/icon_logo.png',
|
|
|
width: 217,
|
|
|
- alignment: Alignment.center,
|
|
|
+ alignment: Alignment.bottomCenter,
|
|
|
),
|
|
|
centerTitle: true,
|
|
|
bottom: PreferredSize(
|
|
|
- child: Container(
|
|
|
- height: 40,
|
|
|
- width: double.infinity,
|
|
|
- color: Colors.white,
|
|
|
- child: TabBar(
|
|
|
- isScrollable: true,
|
|
|
- indicatorSize: TabBarIndicatorSize.label,
|
|
|
- indicatorColor: Color(0xFFEA2D2F),
|
|
|
- labelColor: COLOR_PRIMARY,
|
|
|
- unselectedLabelColor: Color(0xFF939599),
|
|
|
- labelStyle: TextStyle(fontWeight: FontWeight.bold, fontSize: 18),
|
|
|
- unselectedLabelStyle: TextStyle(fontWeight: FontWeight.normal, fontSize: 14),
|
|
|
- tabs: [
|
|
|
- Container(
|
|
|
- width: 80,
|
|
|
- child: Tab(text: '通知公告'),
|
|
|
- ),
|
|
|
- Container(
|
|
|
- width: 80,
|
|
|
- child: Tab(text: '政策法规'),
|
|
|
- ),
|
|
|
- ],
|
|
|
- controller: _tabController,
|
|
|
- onTap: (index) {
|
|
|
- setState(() {
|
|
|
- _tabIndex = index;
|
|
|
- });
|
|
|
- },
|
|
|
+ child: SizedOverflowBox(
|
|
|
+ size: Size(double.infinity, 40),
|
|
|
+ alignment: Alignment.center,
|
|
|
+ child: Container(
|
|
|
+ height: 42,
|
|
|
+ width: double.infinity,
|
|
|
+ alignment: Alignment.centerLeft,
|
|
|
+ color: Colors.white,
|
|
|
+ child: TabBar(
|
|
|
+ isScrollable: true,
|
|
|
+ indicatorSize: TabBarIndicatorSize.label,
|
|
|
+ indicatorColor: Color(0xFFEA2D2F),
|
|
|
+ labelColor: COLOR_PRIMARY,
|
|
|
+ unselectedLabelColor: Color(0xFF939599),
|
|
|
+ labelStyle: TextStyle(fontWeight: FontWeight.bold, fontSize: 18),
|
|
|
+ unselectedLabelStyle: TextStyle(fontWeight: FontWeight.normal, fontSize: 14),
|
|
|
+ tabs: [
|
|
|
+ Container(
|
|
|
+ width: 80,
|
|
|
+ child: Tab(text: '通知公告'),
|
|
|
+ ),
|
|
|
+ Container(
|
|
|
+ width: 80,
|
|
|
+ child: Tab(text: '政策法规'),
|
|
|
+ ),
|
|
|
+ ],
|
|
|
+ controller: _tabController,
|
|
|
+ onTap: (index) {
|
|
|
+ setState(() {
|
|
|
+ _tabIndex = index;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ ),
|
|
|
),
|
|
|
),
|
|
|
- preferredSize: Size.fromHeight(50),
|
|
|
+ preferredSize: Size(double.infinity, 40),
|
|
|
),
|
|
|
),
|
|
|
// SliverToBoxAdapter(
|