移除商城,更新首页样式

hmxc
小赖 4 years ago
parent ed3623c392
commit 45f9a6dcfe

@ -56,7 +56,7 @@ class _HomePageState extends State<HomePage>
int page = 1; int page = 1;
List<GridButton> _gridList = [ List<GridButton> _gridList = [
GridButton('一键开门', R.ASSETS_ICONS_TOOL_YJKM_PNG, () { GridButton('一键开门', R.ASSETS_ICONS_TOOL_YJKM_PNG, () {
Get.to(OpenDoorPage()); Get.to(OpenDoorPage());
}), }),
@ -147,45 +147,50 @@ class _HomePageState extends State<HomePage>
super.build(context); super.build(context);
ScreenUtil.init(context, ScreenUtil.init(context,
designSize: Size(750, 1334), allowFontScaling: true); designSize: Size(750, 1334), allowFontScaling: true);
return BeeScaffold( return Scaffold(
title: 'TEST', extendBodyBehindAppBar: true,
bgColor: BaseStyle.colorffd000, appBar: AppBar(
leading: Container( title: 'TEST'.text.make(),
margin: EdgeInsets.only(left: 32.w), backgroundColor: Colors.transparent,
child: Column( elevation: 0,
mainAxisAlignment: MainAxisAlignment.center, centerTitle: true,
crossAxisAlignment: CrossAxisAlignment.start, leading: Container(
children: [ margin: EdgeInsets.only(left: 32.w),
Text( child: Column(
'深圳', mainAxisAlignment: MainAxisAlignment.center,
style: TextStyle( crossAxisAlignment: CrossAxisAlignment.start,
fontWeight: FontWeight.w600, children: [
fontSize: 24.sp, Text(
color: Color(0xff333333), '深圳',
style: TextStyle(
fontWeight: FontWeight.w600,
fontSize: 24.sp,
color: Color(0xff333333),
),
), ),
), Text(
Text( '阴 27℃',
'阴 27℃', style: TextStyle(
style: TextStyle( fontSize: 20.sp,
fontSize: 20.sp, color: Color(0xff333333),
color: Color(0xff333333), ),
), )
) ]),
]),
),
actions: [
_buildColButton(
icon: AntDesign.scan1,
title: '扫一扫',
onTap: () => Get.to(ScanPage()),
),
_buildColButton(
icon: AntDesign.bells,
title: '消息',
onTap: () => Get.to(MessageCenterPage()),
), ),
16.wb, actions: [
], _buildColButton(
icon: AntDesign.scan1,
title: '扫一扫',
onTap: () => Get.to(ScanPage()),
),
_buildColButton(
icon: AntDesign.bells,
title: '消息',
onTap: () => Get.to(MessageCenterPage()),
),
16.wb,
],
),
body: RefreshConfiguration( body: RefreshConfiguration(
child: SmartRefresher( child: SmartRefresher(
controller: _refreshController, controller: _refreshController,
@ -211,7 +216,7 @@ class _HomePageState extends State<HomePage>
), ),
), ),
SingleAdSpace( SingleAdSpace(
imagePath: 'assets/example/guanggao2.png', imagePath: R.ASSETS_EXAMPLE_GUANGGAO2_PNG,
), ),
HomeTagBar( HomeTagBar(
title: '物业收费标准请查收~', title: '物业收费标准请查收~',
@ -225,7 +230,9 @@ class _HomePageState extends State<HomePage>
tag: '活动', tag: '活动',
isShowImage: false, isShowImage: false,
fun: () { fun: () {
ActivitiesPage(bundle: Bundle()..putBool('isVote', false),).to; ActivitiesPage(
bundle: Bundle()..putBool('isVote', false),
).to;
}, },
), ),
HomeCard( HomeCard(

@ -23,7 +23,7 @@ class _HomeSearchState extends State<HomeSearch> {
), ),
), ),
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: 9.w, top: 127.w + ScreenUtil().statusBarHeight,
left: 32.w, left: 32.w,
right: 32.w, right: 32.w,
bottom: 17.w, bottom: 17.w,
@ -42,8 +42,7 @@ class _HomeSearchState extends State<HomeSearch> {
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
borderRadius: borderRadius: BorderRadius.all(Radius.circular(36.w)),
BorderRadius.all(Radius.circular(36.w)),
), ),
child: Row(children: [ child: Row(children: [
Icon( Icon(

@ -31,7 +31,7 @@ class TotalApplicationsPage extends StatefulWidget {
class _TotalApplicationsPageState extends State<TotalApplicationsPage> { class _TotalApplicationsPageState extends State<TotalApplicationsPage> {
int _currentIndex = 0; int _currentIndex = 0;
bool isEdit = false; bool isEdit = false;
List<String> _leftNav = ['为您推荐', '智慧管家', '商城购物']; List<String> _leftNav = ['为您推荐', '智慧管家'];
Widget _myApp() { Widget _myApp() {
return Container( return Container(
@ -324,7 +324,7 @@ class _TotalApplicationsPageState extends State<TotalApplicationsPage> {
width: 172.w, width: 172.w,
child: ListView.builder( child: ListView.builder(
shrinkWrap: true, shrinkWrap: true,
itemCount: 3, itemCount: _leftNav.length,
itemBuilder: (BuildContext context, int index) { itemBuilder: (BuildContext context, int index) {
return _leftInkWellNav(index); return _leftInkWellNav(index);
}), }),

Loading…
Cancel
Save