优化样式

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