|
|
@@ -1,4 +1,3 @@ |
|
|
|
import 'package:flutter/cupertino.dart'; |
|
|
|
import 'package:zhiying_base_widget/pages/goods_details_page/goods_details_page.dart'; |
|
|
|
import 'package:zhiying_base_widget/pages/home_page/home_page.dart'; |
|
|
|
import 'package:zhiying_base_widget/pages/main_page/main_page.dart'; |
|
|
@@ -18,7 +17,6 @@ import 'package:zhiying_base_widget/widgets/home/home_banner/home_banner_creater |
|
|
|
import 'package:zhiying_base_widget/widgets/home/home_banner/home_banner_widget.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/home/home_goods/home_goods_creater.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/home/home_notice/home_notice_widget.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/home/home_notice/model/home_notice_model.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/home/home_slide_banner/home_slide_banner_creater.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/home/home_sreach/home_sreach_creater.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/home/home_sreach/home_sreach_widget.dart'; |
|
|
@@ -54,18 +52,18 @@ class BaseWidgetRegister { |
|
|
|
PageFactory.regist('profile', (model) => MainPage(model)); |
|
|
|
PageFactory.regist('category', (model) => WalletPage()); |
|
|
|
PageFactory.regist('goods_details', (model) => GoodsDetailsPage(model)); |
|
|
|
PageFactory.regist('sreach', (model) => SreachPage() ); |
|
|
|
PageFactory.regist('sreach_result', (model) => SreachResultPage() ); |
|
|
|
PageFactory.regist('sreach', (model) => SreachPage()); |
|
|
|
PageFactory.regist('sreach_result', (model) => SreachResultPage()); |
|
|
|
// PageFactory.regist('login', (model) => LoginPage(model)); |
|
|
|
// PageFactory.regist('login_quick', (model) => LoginQuickPage(model)); |
|
|
|
// PageFactory.regist('login_account', (model) => LoginAccountPage(model)); |
|
|
|
// PageFactory.regist('login_invite', (model) => LoginInvitePage()); |
|
|
|
|
|
|
|
PageFactory.regist('pub.flutter.profile_settings', (model) => MineDetailPage()); |
|
|
|
PageFactory.regist( |
|
|
|
'pub.flutter.profile_settings', (model) => MineDetailPage()); |
|
|
|
PageFactory.regist('pub.flutter.settings', (model) => SettingPage(model)); |
|
|
|
|
|
|
|
PageFactory.regist('pub.flutter.my_orders', (model) => OrdersPage(model)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// 注册控件 |
|
|
@@ -78,16 +76,20 @@ class BaseWidgetRegister { |
|
|
|
// WidgetFactory.regist('index_title', NormalNavCreater()); |
|
|
|
/// 首页搜索栏 |
|
|
|
// WidgetFactory.regist('index_search', HomeSreachCreater()); |
|
|
|
WidgetFactory.regist('index_search', DefaultWidgetCreater((model) => HomeSreachWidget(model))); |
|
|
|
WidgetFactory.regist('index_search', |
|
|
|
DefaultWidgetCreater((model) => HomeSreachWidget(model))); |
|
|
|
|
|
|
|
/// 可滚动banner |
|
|
|
WidgetFactory.regist('index_carousel', HomeSlideBannerCreater()); |
|
|
|
WidgetFactory.regist('index_recommend_list', GoodsListCreater()); |
|
|
|
|
|
|
|
/// 首页快速入口 |
|
|
|
WidgetFactory.regist('multi_nav', DefaultWidgetCreater((model) => HomeQuickEntry(model))); |
|
|
|
WidgetFactory.regist( |
|
|
|
'multi_nav', DefaultWidgetCreater((model) => HomeQuickEntry(model))); |
|
|
|
|
|
|
|
/// 滚动公告 |
|
|
|
WidgetFactory.regist('index_placard', DefaultWidgetCreater((model) => HomeNoticeWidget(model))); |
|
|
|
WidgetFactory.regist('index_placard', |
|
|
|
DefaultWidgetCreater((model) => HomeNoticeWidget(model))); |
|
|
|
|
|
|
|
/// 不可以滚动banner |
|
|
|
WidgetFactory.regist('index_banner_one', HomeBannerCreater()); |
|
|
@@ -96,35 +98,50 @@ class BaseWidgetRegister { |
|
|
|
|
|
|
|
/// ==================== 商品详情 ==================== /// |
|
|
|
// 商品详情轮播图 |
|
|
|
WidgetFactory.regist('product_detail_carousel', DefaultWidgetCreater((model) => GoodsDetailsSlideBannerWidget(model))); |
|
|
|
WidgetFactory.regist('product_detail_carousel', |
|
|
|
DefaultWidgetCreater((model) => GoodsDetailsSlideBannerWidget(model))); |
|
|
|
// 商品详情下载APP提示 |
|
|
|
WidgetFactory.regist('product_detail_download_tips', DefaultWidgetCreater((model) => UpgradeTipWidget(model))); |
|
|
|
WidgetFactory.regist('product_detail_download_tips', |
|
|
|
DefaultWidgetCreater((model) => UpgradeTipWidget(model))); |
|
|
|
// 商品详情价格显示 |
|
|
|
WidgetFactory.regist('product_detail_price', DefaultWidgetCreater((model) => GoodsDetailsPriceWidget(model))); |
|
|
|
WidgetFactory.regist('product_detail_price', |
|
|
|
DefaultWidgetCreater((model) => GoodsDetailsPriceWidget(model))); |
|
|
|
// 商品详情标题 |
|
|
|
WidgetFactory.regist('product_detail_title', DefaultWidgetCreater((model) => GoodsDetailsTitleWidget(model))); |
|
|
|
WidgetFactory.regist('product_detail_title', |
|
|
|
DefaultWidgetCreater((model) => GoodsDetailsTitleWidget(model))); |
|
|
|
// 商品详情优惠劵 |
|
|
|
WidgetFactory.regist('product_detail_coupon', DefaultWidgetCreater((model) => CounponWidget(model))); |
|
|
|
WidgetFactory.regist('product_detail_coupon', |
|
|
|
DefaultWidgetCreater((model) => CounponWidget(model))); |
|
|
|
// 商品详情店铺 |
|
|
|
WidgetFactory.regist('product_detail_shop', DefaultWidgetCreater((model) => StoreWidget(model))); |
|
|
|
WidgetFactory.regist('product_detail_shop', |
|
|
|
DefaultWidgetCreater((model) => StoreWidget(model))); |
|
|
|
// 商品详情宝贝评价 |
|
|
|
WidgetFactory.regist('product_detail_comment', DefaultWidgetCreater((model) => GoodsDetailsEvaluateWidget(model))); |
|
|
|
WidgetFactory.regist('product_detail_comment', |
|
|
|
DefaultWidgetCreater((model) => GoodsDetailsEvaluateWidget(model))); |
|
|
|
// 商品详情图片 |
|
|
|
WidgetFactory.regist('product_detail_img_list', DefaultWidgetCreater((model) => GoodsDetailsImgWidget(model))); |
|
|
|
WidgetFactory.regist('product_detail_img_list', |
|
|
|
DefaultWidgetCreater((model) => GoodsDetailsImgWidget(model))); |
|
|
|
// 商品详情底部推荐列表 |
|
|
|
WidgetFactory.regist('product_detail_bottom_rec', DefaultWidgetCreater((model) => GoodsListWidget(model))); |
|
|
|
WidgetFactory.regist('product_detail_bottom_rec', |
|
|
|
DefaultWidgetCreater((model) => GoodsListWidget(model))); |
|
|
|
// 商品详情底部 |
|
|
|
WidgetFactory.regist('product_detail_bottom', DefaultWidgetCreater((model) => GoodsDetailsFooterWidget(model))); |
|
|
|
|
|
|
|
WidgetFactory.regist('product_detail_bottom', |
|
|
|
DefaultWidgetCreater((model) => GoodsDetailsFooterWidget(model))); |
|
|
|
|
|
|
|
// ==================== 个人中心 |
|
|
|
WidgetFactory.regist('profile_appbar', MineNavCreater()); |
|
|
|
WidgetFactory.regist('profile_background', DefaultWidgetCreater((model) => MineNavBg(model))); |
|
|
|
WidgetFactory.regist('profile_header', DefaultWidgetCreater((model) => MineHeader(model))); |
|
|
|
WidgetFactory.regist('profile_earning', DefaultWidgetCreater((model) => MineData(model))); |
|
|
|
WidgetFactory.regist('profile_functions', DefaultWidgetCreater((model) => MineQuickEntry(model))); |
|
|
|
WidgetFactory.regist('profile_my_functions', DefaultWidgetCreater((model) => MineQuickEntry(model))); |
|
|
|
WidgetFactory.regist('profile_carousel', DefaultWidgetCreater((model) => HomeBannerWidget(model))); |
|
|
|
WidgetFactory.regist('profile_background', |
|
|
|
DefaultWidgetCreater((model) => MineNavBg(model))); |
|
|
|
WidgetFactory.regist( |
|
|
|
'profile_header', DefaultWidgetCreater((model) => MineHeader(model))); |
|
|
|
WidgetFactory.regist( |
|
|
|
'profile_earning', DefaultWidgetCreater((model) => MineData(model))); |
|
|
|
WidgetFactory.regist('profile_functions', |
|
|
|
DefaultWidgetCreater((model) => MineQuickEntry(model))); |
|
|
|
WidgetFactory.regist('profile_my_functions', |
|
|
|
DefaultWidgetCreater((model) => MineQuickEntry(model))); |
|
|
|
WidgetFactory.regist('profile_carousel', |
|
|
|
DefaultWidgetCreater((model) => HomeBannerWidget(model))); |
|
|
|
|
|
|
|
// ==================== 钱包 |
|
|
|
WidgetFactory.regist( |
|
|
@@ -132,9 +149,12 @@ class BaseWidgetRegister { |
|
|
|
// WidgetFactory.regist( |
|
|
|
// 'wallet_detail', DefaultWidgetCreater((model) => WalletDetail())); |
|
|
|
// WidgetFactory.regist('wallet_detail', HomeAuthCreater()); |
|
|
|
WidgetFactory.regist('wallet_data', DefaultWidgetCreater((model) => WalletData())); |
|
|
|
WidgetFactory.regist('wallet_detail', DefaultWidgetCreater((model) => WalletDetail())); |
|
|
|
WidgetFactory.regist( |
|
|
|
'wallet_data', DefaultWidgetCreater((model) => WalletData())); |
|
|
|
WidgetFactory.regist( |
|
|
|
'wallet_detail', DefaultWidgetCreater((model) => WalletDetail())); |
|
|
|
|
|
|
|
WidgetFactory.regist('wallet_income', DefaultWidgetCreater((model) => WalletIncome())); |
|
|
|
WidgetFactory.regist( |
|
|
|
'wallet_income', DefaultWidgetCreater((model) => WalletIncome())); |
|
|
|
} |
|
|
|
} |