Skip to content

Commit 596c2d8

Browse files
committed
feat: 修改样式
1 parent 8e9837a commit 596c2d8

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

lib/widgets/Category/CategoryContent.dart

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import 'package:flutter/material.dart';
22
import 'package:flutter_book/widgets/common/SearchInputBox.dart';
3+
import 'package:flutter_book/helpers/constants.dart';
34

45
class CategoryContent extends StatefulWidget {
56
const CategoryContent({Key key}) : super(key: key);
@@ -22,17 +23,23 @@ class _CategoryContentState extends State<CategoryContent>
2223
Widget build(BuildContext context) {
2324
return ListView(
2425
children: <Widget>[
25-
SearchInputBox(),
26+
Container(
27+
margin: EdgeInsets.only(top: 10.0, left: Constants.pageMargin, right: Constants.pageMargin),
28+
child: SearchInputBox(),
29+
),
2630
Container(
2731
height: 600.0,
2832
child: DefaultTabController(
2933
length: myTabs.length,
3034
child: Scaffold(
3135
appBar: AppBar(
32-
leading: Text(""),
36+
leading: Text(''),
3337
bottom: TabBar(
3438
tabs: myTabs,
39+
indicatorWeight: 3.0,
3540
isScrollable: true,
41+
indicatorColor: Color(AppColors.mainColor),
42+
unselectedLabelColor: Color(AppColors.fontColorGray),
3643
),
3744
),
3845
body: TabBarView(

0 commit comments

Comments
 (0)