fix(solve conflict):

This commit is contained in:
sanfan.hx
2019-01-14 14:48:32 +08:00

View File

@ -12,6 +12,7 @@ import 'common/provider.dart';
import 'model/widget.dart';
import './widgets/index.dart';
import 'package:flutter_go/components/search_input.dart';
const int ThemeColor = 0xFFC91B3A;
class MyApp extends StatelessWidget {
@ -128,8 +129,7 @@ class _MyHomePageState extends State<MyHomePage>
} else {
return null;
}
}, (value) {
}, () {});
}, (value) {}, () {});
}
@override
@ -142,14 +142,15 @@ class _MyHomePageState extends State<MyHomePage>
new CollectionPage(),
new FourthPage()
]),
bottomNavigationBar: new Material(
bottomNavigationBar: Material(
color: const Color(0xFFF0EEEF), //底部导航栏主题颜色
child: new Container(
child: SafeArea(
child: Container(
height: 65.0,
decoration: BoxDecoration(
color: const Color(0xFFF0F0F0),
boxShadow: <BoxShadow>[
new BoxShadow(
BoxShadow(
color: const Color(0xFFd0d0d0),
blurRadius: 3.0,
spreadRadius: 2.0,
@ -157,20 +158,24 @@ class _MyHomePageState extends State<MyHomePage>
),
],
),
child: new TabBar(
child: TabBar(
controller: controller,
indicatorColor:
Theme.of(context).primaryColor, //tab标签的下划线颜色
indicatorColor: Theme.of(context).primaryColor, //tab标签的下划线颜色
// labelColor: const Color(0xFF000000),
indicatorWeight: 3.0,
labelColor: Theme.of(context).primaryColor,
unselectedLabelColor: const Color(0xFF8E8E8E),
tabs: <Tab>[
new Tab(text: '业界动态', icon: new Icon(Icons.language)),
new Tab(text: '组件', icon: new Icon(Icons.extension)),
new Tab(text: '组件收藏', icon: new Icon(Icons.star)),
new Tab(text: '关于手册', icon: new Icon(Icons.favorite)),
]))));
Tab(text: '业界动态', icon: Icon(Icons.language)),
Tab(text: '组件', icon: Icon(Icons.extension)),
Tab(text: '组件收藏', icon: Icon(Icons.star)),
Tab(text: '关于手册', icon: Icon(Icons.favorite)),
],
),
),
),
),
);
}
void _onTabChange() {