|
|
@@ -1,7 +1,6 @@ |
|
|
|
import 'package:sharesdk_plugin/sharesdk_plugin.dart'; |
|
|
|
import 'package:zhiying_base_widget/pages/bil_detail_page/bil_detail_page.dart'; |
|
|
|
import 'package:zhiying_base_widget/pages/favorite_page/favorite_page.dart'; |
|
|
|
import 'package:flutter/cupertino.dart'; |
|
|
|
import 'package:zhiying_base_widget/pages/goods_details_page/goods_details_page.dart'; |
|
|
|
import 'package:zhiying_base_widget/pages/invited_friends/invited_friends.dart'; |
|
|
|
import 'package:zhiying_base_widget/pages/launch_page/launch_page.dart'; |
|
|
@@ -10,14 +9,12 @@ import 'package:zhiying_base_widget/pages/mine_detail_page/mine_detail_page.dart |
|
|
|
import 'package:zhiying_base_widget/pages/orders_page/orders_page.dart'; |
|
|
|
import 'package:zhiying_base_widget/pages/search_page/item/search_item_page.dart'; |
|
|
|
import 'package:zhiying_base_widget/pages/search_result_page/item/search_result_item_page.dart'; |
|
|
|
import 'package:zhiying_base_widget/pages/search_think_page/search_think_page.dart'; |
|
|
|
import 'package:zhiying_base_widget/pages/search_result_page/search_result_page.dart'; |
|
|
|
import 'package:zhiying_base_widget/pages/security_page/security_bind_alipay/security_bind_alipay_page.dart'; |
|
|
|
import 'package:zhiying_base_widget/pages/security_page/security_mobile/security_mobile.dart'; |
|
|
|
import 'package:zhiying_base_widget/pages/security_page/security_page.dart'; |
|
|
|
import 'package:zhiying_base_widget/pages/security_page/security_password/security_password.dart'; |
|
|
|
import 'package:zhiying_base_widget/pages/setting_page/setting_page.dart'; |
|
|
|
import 'package:zhiying_base_widget/pages/search_result_page/search_result_page.dart'; |
|
|
|
import 'package:zhiying_base_widget/pages/wallet_page/wallet_page.dart'; |
|
|
|
import 'package:zhiying_base_widget/pages/webview/base_webview.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/goods_details/footer/goods_details_footer_widget.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/goods_details/price/goods_details_price_widget.dart'; |
|
|
@@ -36,11 +33,9 @@ import 'package:zhiying_base_widget/widgets/mine/mine_nav/mine_nav_bg.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/mine/mine_nav/mine_nav_creater.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/mine/mine_quick_entry/mine_quick_entry.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/others/normal_nav/normal_nav_creater.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/search/tabbar/search_tab_creater.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/search_result/sort/search_result_sort_widget.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/search_result/tarbar/search_result_tab_creater.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/search/appbar/search_appbar_creater.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/search/input/search_input_creater.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/search/tabbar/search_tab_creater.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/wallet/wallet_appbar/wallet_appbar.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/wallet/wallet_bil/wallet_bil.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/wallet/wallet_data/wallet_data.dart'; |
|
|
@@ -57,18 +52,13 @@ import 'widgets/goods_details/recommend/goods_detail_commend_creater.dart'; |
|
|
|
import 'widgets/goods_details/title/goods_details_title_widget.dart'; |
|
|
|
import 'widgets/home/home_quick_entry/home_quick_entry.dart'; |
|
|
|
import 'widgets/home/home_sreach/home_sreach_creater.dart'; |
|
|
|
import 'widgets/search/appbar/search_appbar_creater.dart'; |
|
|
|
import 'widgets/search/appbar/search_appbar_widget.dart'; |
|
|
|
import 'widgets/search/history_tag/search_history_tag.dart'; |
|
|
|
import 'widgets/search/hot_tag/search_hot_tag_widget.dart'; |
|
|
|
import 'widgets/search/input/search_input_creater.dart'; |
|
|
|
import 'widgets/search/input/search_input_widget.dart'; |
|
|
|
import 'widgets/search/tabbar/search_tab_creater.dart'; |
|
|
|
import 'widgets/search/tabbar/search_tab_widget.dart'; |
|
|
|
import 'widgets/search_result/goods_list/search_result_goods_list_widget.dart'; |
|
|
|
import 'widgets/search_result/search_input/search_result_input.dart'; |
|
|
|
|
|
|
|
|
|
|
|
class BaseWidgetRegister { |
|
|
|
/// 初始化方法 |
|
|
|
static void init() { |
|
|
@@ -106,7 +96,8 @@ class BaseWidgetRegister { |
|
|
|
PageFactory.regist('search', (model) => SearchPage(model)); |
|
|
|
PageFactory.regist('search_item_page', (model) => SearchItemPage(model)); |
|
|
|
PageFactory.regist('search_result', (model) => SearchResultPage(model)); |
|
|
|
PageFactory.regist('search_result_item', (model) => SearchResultItemPage(model)); |
|
|
|
PageFactory.regist( |
|
|
|
'search_result_item', (model) => SearchResultItemPage(model)); |
|
|
|
// PageFactory.regist('search_think_page', (model) => SearchThinkPage(model)); |
|
|
|
// PageFactory.regist('login', (model) => LoginPage(model)); |
|
|
|
// PageFactory.regist('login_quick', (model) => LoginQuickPage(model)); |
|
|
@@ -155,10 +146,12 @@ class BaseWidgetRegister { |
|
|
|
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()); |
|
|
@@ -169,81 +162,112 @@ class BaseWidgetRegister { |
|
|
|
// 搜索标题 |
|
|
|
// WidgetFactory.regist('search_index_app_bar', DefaultWidgetCreater((model) => SearchAppbarWidget(model))); |
|
|
|
// 搜索输入框 |
|
|
|
WidgetFactory.regist('search_index_input', DefaultWidgetCreater((model) => SearchInputWidget(model))); |
|
|
|
WidgetFactory.regist('search_index_input', |
|
|
|
DefaultWidgetCreater((model) => SearchInputWidget(model))); |
|
|
|
// // 搜索tabBar |
|
|
|
WidgetFactory.regist('search_index_icon_list', SearcchTabCreater()); |
|
|
|
// WidgetFactory.regist('search_index_icon_list', DefaultWidgetCreater((model) => SearchTabWidget(model))); |
|
|
|
// // 热门搜索标签 |
|
|
|
WidgetFactory.regist('search_index_host_keyword', DefaultWidgetCreater((model) => SearchHotTagWidget(model))); |
|
|
|
WidgetFactory.regist('search_index_host_keyword', |
|
|
|
DefaultWidgetCreater((model) => SearchHotTagWidget(model))); |
|
|
|
// // 历史搜索标签 |
|
|
|
WidgetFactory.regist('search_index_history', DefaultWidgetCreater((model) => SearchHistoryTagWidget(model))); |
|
|
|
WidgetFactory.regist('search_index_history', |
|
|
|
DefaultWidgetCreater((model) => SearchHistoryTagWidget(model))); |
|
|
|
|
|
|
|
/// ==================== 搜索结果页面 ==================== /// |
|
|
|
// 输入框 |
|
|
|
WidgetFactory.regist('search_result_input', DefaultWidgetCreater((model) => SearchResultInputWidget(model))); |
|
|
|
WidgetFactory.regist('search_result_input', |
|
|
|
DefaultWidgetCreater((model) => SearchResultInputWidget(model))); |
|
|
|
// tabbar |
|
|
|
WidgetFactory.regist('search_result_icon_list', SearchResultTabCreater()); |
|
|
|
|
|
|
|
// 搜索结果页筛选widget 淘宝 |
|
|
|
WidgetFactory.regist('search_result_taobao_sort', DefaultWidgetCreater((model) => SearchResultSortWidget(model))); |
|
|
|
WidgetFactory.regist('search_result_taobao_sort', |
|
|
|
DefaultWidgetCreater((model) => SearchResultSortWidget(model))); |
|
|
|
// 搜索结果的商品列表 淘宝 |
|
|
|
WidgetFactory.regist('search_result_taobao_item', DefaultWidgetCreater((model) => SearchResultGoodsListWidget(model))); |
|
|
|
WidgetFactory.regist('search_result_taobao_item', |
|
|
|
DefaultWidgetCreater((model) => SearchResultGoodsListWidget(model))); |
|
|
|
|
|
|
|
// 搜索结果页筛选widget 京东 |
|
|
|
WidgetFactory.regist('search_result_jd_sort', DefaultWidgetCreater((model) => SearchResultSortWidget(model))); |
|
|
|
WidgetFactory.regist('search_result_jd_sort', |
|
|
|
DefaultWidgetCreater((model) => SearchResultSortWidget(model))); |
|
|
|
// 搜索结果的商品列表 京东 |
|
|
|
WidgetFactory.regist('search_result_jd_item', DefaultWidgetCreater((model) => SearchResultGoodsListWidget(model))); |
|
|
|
WidgetFactory.regist('search_result_jd_item', |
|
|
|
DefaultWidgetCreater((model) => SearchResultGoodsListWidget(model))); |
|
|
|
|
|
|
|
// 搜索结果页筛选widget 苏宁 |
|
|
|
WidgetFactory.regist('search_result_suning_sort', DefaultWidgetCreater((model) => SearchResultSortWidget(model))); |
|
|
|
WidgetFactory.regist('search_result_suning_sort', |
|
|
|
DefaultWidgetCreater((model) => SearchResultSortWidget(model))); |
|
|
|
// 搜索结果的商品列表 苏宁 |
|
|
|
WidgetFactory.regist('search_result_suning_item', DefaultWidgetCreater((model) => SearchResultGoodsListWidget(model))); |
|
|
|
WidgetFactory.regist('search_result_suning_item', |
|
|
|
DefaultWidgetCreater((model) => SearchResultGoodsListWidget(model))); |
|
|
|
|
|
|
|
// 搜索结果页筛选widget 拼多多 |
|
|
|
WidgetFactory.regist('search_result_pdd_sort', DefaultWidgetCreater((model) => SearchResultSortWidget(model))); |
|
|
|
WidgetFactory.regist('search_result_pdd_sort', |
|
|
|
DefaultWidgetCreater((model) => SearchResultSortWidget(model))); |
|
|
|
// 搜索结果的商品列表 拼多多 |
|
|
|
WidgetFactory.regist('search_result_pdd_item', DefaultWidgetCreater((model) => SearchResultGoodsListWidget(model))); |
|
|
|
WidgetFactory.regist('search_result_pdd_item', |
|
|
|
DefaultWidgetCreater((model) => SearchResultGoodsListWidget(model))); |
|
|
|
|
|
|
|
// 搜索结果页筛选widget 唯品会 |
|
|
|
WidgetFactory.regist('search_result_vip', DefaultWidgetCreater((model) => SearchResultSortWidget(model))); |
|
|
|
WidgetFactory.regist('search_result_vip', |
|
|
|
DefaultWidgetCreater((model) => SearchResultSortWidget(model))); |
|
|
|
// 搜索结果的商品列表 唯品会 |
|
|
|
WidgetFactory.regist('search_result_vip_item', DefaultWidgetCreater((model) => SearchResultGoodsListWidget(model))); |
|
|
|
WidgetFactory.regist('search_result_vip_item', |
|
|
|
DefaultWidgetCreater((model) => SearchResultGoodsListWidget(model))); |
|
|
|
|
|
|
|
// 搜索结果页筛选widget 考拉 |
|
|
|
WidgetFactory.regist('search_result_kaola', DefaultWidgetCreater((model) => SearchResultSortWidget(model))); |
|
|
|
WidgetFactory.regist('search_result_kaola', |
|
|
|
DefaultWidgetCreater((model) => SearchResultSortWidget(model))); |
|
|
|
// 搜索结果的商品列表 考拉 |
|
|
|
WidgetFactory.regist('search_result_kaola_item', DefaultWidgetCreater((model) => SearchResultGoodsListWidget(model))); |
|
|
|
WidgetFactory.regist('search_result_kaola_item', |
|
|
|
DefaultWidgetCreater((model) => SearchResultGoodsListWidget(model))); |
|
|
|
|
|
|
|
/// ==================== 商品详情 ==================== /// |
|
|
|
// 商品详情轮播图 |
|
|
|
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', GoodsDetailCommendCreater()); |
|
|
|
WidgetFactory.regist( |
|
|
|
'product_detail_bottom_rec', GoodsDetailCommendCreater()); |
|
|
|
// 商品详情底部 |
|
|
|
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( |
|
|
|