|
|
@@ -1,11 +1,16 @@ |
|
|
|
import 'package:zhiying_base_widget/pages/home_page/home_page.dart'; |
|
|
|
import 'package:zhiying_base_widget/pages/login_page/login_page.dart'; |
|
|
|
import 'package:zhiying_base_widget/pages/main_page/main_page.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/home_banner/home_banner_creater.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/home_goods/home_goods_creater.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/home_quick_entry/home_quick_entry_creater.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/home_slide_banner/home_slide_banner_creater.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/mine_header/mine_header_creater.dart'; |
|
|
|
import 'package:zhiying_base_widget/pages/wallet_page/wallet_page.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/home/home_banner/home_banner_creater.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/home/home_goods/home_goods_creater.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/home/home_quick_entry/home_quick_entry_creater.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/home/home_slide_banner/home_slide_banner_creater.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/mine/mine_header/mine_header.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/others/normal_nav/normal_nav_creater.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/wallet/wallet_data/wallet_data.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/wallet/wallet_detail/wallet_detail.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/wallet/wallet_income/wallet_income.dart'; |
|
|
|
import 'package:zhiying_comm/zhiying_comm.dart'; |
|
|
|
|
|
|
|
class BaseWidgetRegister { |
|
|
@@ -20,10 +25,15 @@ class BaseWidgetRegister { |
|
|
|
PageFactory.regist('homePage', (model) => HomePage()); |
|
|
|
PageFactory.regist('index', (model) => MainPage(model)); |
|
|
|
PageFactory.regist('login', (model) => LoginPage(model)); |
|
|
|
PageFactory.regist('category', (model) => WalletPage()); |
|
|
|
} |
|
|
|
|
|
|
|
// 注册控件 |
|
|
|
static void registWidgets() { |
|
|
|
// ==================== 通用组件 |
|
|
|
// 导航栏 |
|
|
|
WidgetFactory.regist('normal_nav', NormalNavCreater()); |
|
|
|
|
|
|
|
// ==================== 首页 |
|
|
|
/// 可滚动banner |
|
|
|
WidgetFactory.regist('index_carousel', HomeSlideBannerCreater()); |
|
|
@@ -39,8 +49,16 @@ class BaseWidgetRegister { |
|
|
|
WidgetFactory.regist('index_banner_two', HomeBannerCreater()); |
|
|
|
|
|
|
|
// ==================== 个人中心 |
|
|
|
WidgetFactory.regist('index_title', MineHeaderCreater()); |
|
|
|
// WidgetFactory.regist('index_search', MineHeaderBgCreater()); |
|
|
|
// WidgetFactory.regist('index_search', MineQuickEntryCreater()); |
|
|
|
WidgetFactory.regist( |
|
|
|
'index_title', DefaultWidgetCreater((model) => MineHeader())); |
|
|
|
|
|
|
|
// ==================== 钱包 |
|
|
|
WidgetFactory.regist( |
|
|
|
'wallet_data', DefaultWidgetCreater((model) => WalletData())); |
|
|
|
WidgetFactory.regist( |
|
|
|
'wallet_detail', DefaultWidgetCreater((model) => WalletDetail())); |
|
|
|
|
|
|
|
WidgetFactory.regist( |
|
|
|
'wallet_income', DefaultWidgetCreater((model) => WalletIncome())); |
|
|
|
} |
|
|
|
} |