优化样式

This commit is contained in:
jyuesong
2022-01-19 15:29:11 +08:00
parent 1981edfafe
commit 0bdf267b36

View File

@@ -71,17 +71,18 @@ class _DependcyPageState extends State<DependencyPage> with TickerProviderStateM
), ),
], ],
), ),
body: SizedBox( body: Column(
width: MediaQuery.of(context).size.width, crossAxisAlignment: CrossAxisAlignment.start,
child: Column(
mainAxisSize: MainAxisSize.max, mainAxisSize: MainAxisSize.max,
children: [ children: [
TabBar( TabBar(
controller: _tabController, controller: _tabController,
tabs: types tabs: types
.map((e) => Tab( .map(
(e) => Tab(
text: e.name, text: e.name,
)) ),
)
.toList(), .toList(),
isScrollable: true, isScrollable: true,
indicator: AbsUnderlineTabIndicator( indicator: AbsUnderlineTabIndicator(
@@ -133,7 +134,6 @@ class _DependcyPageState extends State<DependencyPage> with TickerProviderStateM
), ),
], ],
), ),
),
); );
} }
} }