移除商城,更新首页样式

hmxc
小赖 4 years ago
parent ed3623c392
commit 45f9a6dcfe

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

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

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

Loading…
Cancel
Save