|
|
|
@ -18,12 +18,11 @@ class GoodsListTempPage extends StatefulWidget {
|
|
|
|
|
final Map arguments;
|
|
|
|
|
|
|
|
|
|
const GoodsListTempPage({Key key, this.arguments}) : super(key: key);
|
|
|
|
|
static setArguments({String title, GoodsListTempType type=GoodsListTempType.recookMake}){
|
|
|
|
|
return {
|
|
|
|
|
"title": title,
|
|
|
|
|
"type": type
|
|
|
|
|
};
|
|
|
|
|
static setArguments(
|
|
|
|
|
{String title, GoodsListTempType type = GoodsListTempType.recookMake}) {
|
|
|
|
|
return {"title": title, "type": type};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
State<StatefulWidget> createState() {
|
|
|
|
|
return _GoodsListTempPageState();
|
|
|
|
@ -64,6 +63,7 @@ class _GoodsListTempPageState extends BaseStoreState<GoodsListTempPage> {
|
|
|
|
|
child: scaffold,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
_bodyWidget() {
|
|
|
|
|
return Container(
|
|
|
|
|
child: Stack(
|
|
|
|
@ -85,6 +85,7 @@ class _GoodsListTempPageState extends BaseStoreState<GoodsListTempPage> {
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
_titleWidget() {
|
|
|
|
|
//1125 603
|
|
|
|
|
double width = MediaQuery.of(context).size.width;
|
|
|
|
@ -96,24 +97,24 @@ class _GoodsListTempPageState extends BaseStoreState<GoodsListTempPage> {
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Image.asset(
|
|
|
|
|
_goodsListTempType == GoodsListTempType.recookMake
|
|
|
|
|
? "assets/listtemp_recookmaketitle_bg.png"
|
|
|
|
|
? R.ASSETS_LIST_TEMP_MARKET_TITLE_BG_WEBP
|
|
|
|
|
: _goodsListTempType == GoodsListTempType.homeAppliances
|
|
|
|
|
? "assets/listtemp_homeappliancestitle_bg.png"
|
|
|
|
|
: "assets/listtemp_homelifetitle_bg.png",
|
|
|
|
|
? R.ASSETS_LIST_TEMP_HOME_APP_BG_WEBP
|
|
|
|
|
: R.ASSETS_LIST_TEMP_HOME_LIFE_TITLE_WEBP,
|
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
|
),
|
|
|
|
|
Positioned(
|
|
|
|
|
top: ScreenUtil.statusBarHeight + (kToolbarHeight - 24) / 2,
|
|
|
|
|
left: (ScreenUtil.screenWidthDp - 117) / 2,
|
|
|
|
|
child: Container(
|
|
|
|
|
width: 117, height: 24,
|
|
|
|
|
width: 117,
|
|
|
|
|
height: 24,
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
_goodsListTempType == GoodsListTempType.recookMake
|
|
|
|
|
? "assets/listtemp_recookmaketitle.png"
|
|
|
|
|
: _goodsListTempType == GoodsListTempType.homeAppliances
|
|
|
|
|
? "assets/listtemp_homeappliances.png"
|
|
|
|
|
: "assets/listtemp_homelifetitle.png"
|
|
|
|
|
),
|
|
|
|
|
: "assets/listtemp_homelifetitle.png"),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Positioned(
|
|
|
|
@ -169,7 +170,9 @@ class _GoodsListTempPageState extends BaseStoreState<GoodsListTempPage> {
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
GoodsItemWidget.hotList(
|
|
|
|
|
onBrandClick: () {
|
|
|
|
|
AppRouter.push(context, RouteName.BRANDGOODS_LIST_PAGE, arguments: BrandGoodsListPage.setArguments(data.brandId, data.brandName));
|
|
|
|
|
AppRouter.push(context, RouteName.BRANDGOODS_LIST_PAGE,
|
|
|
|
|
arguments: BrandGoodsListPage.setArguments(
|
|
|
|
|
data.brandId, data.brandName));
|
|
|
|
|
},
|
|
|
|
|
buildCtx: context,
|
|
|
|
|
data: data,
|
|
|
|
|