├── linux ├── .gitignore ├── main.cc ├── flutter │ ├── generated_plugin_registrant.h │ ├── generated_plugin_registrant.cc │ └── generated_plugins.cmake └── my_application.h ├── lib ├── pages │ ├── cart │ │ ├── buy_now │ │ │ ├── widgets │ │ │ │ ├── index.dart │ │ │ │ └── price_line.dart │ │ │ └── index.dart │ │ ├── buy_done │ │ │ ├── index.dart │ │ │ └── controller.dart │ │ ├── cart_index │ │ │ ├── index.dart │ │ │ └── widgets │ │ │ │ └── index.dart │ │ └── apply_promo_code │ │ │ ├── index.dart │ │ │ └── controller.dart │ ├── my │ │ ├── order_list │ │ │ ├── widgets │ │ │ │ └── index.dart │ │ │ └── index.dart │ │ ├── theme │ │ │ ├── index.dart │ │ │ ├── controller.dart │ │ │ └── view.dart │ │ ├── language │ │ │ ├── index.dart │ │ │ ├── controller.dart │ │ │ └── view.dart │ │ ├── my_index │ │ │ ├── index.dart │ │ │ ├── widgets │ │ │ │ ├── index.dart │ │ │ │ └── bar_item.dart │ │ │ └── controller.dart │ │ ├── my_address │ │ │ └── index.dart │ │ ├── order_details │ │ │ ├── index.dart │ │ │ ├── widgets │ │ │ │ ├── index.dart │ │ │ │ └── total_item.dart │ │ │ └── controller.dart │ │ └── profile_edit │ │ │ └── index.dart │ ├── goods │ │ ├── home │ │ │ ├── widgets │ │ │ │ └── index.dart │ │ │ └── index.dart │ │ ├── category │ │ │ └── index.dart │ │ ├── product_list │ │ │ └── index.dart │ │ └── product_details │ │ │ ├── index.dart │ │ │ └── widgets │ │ │ └── index.dart │ ├── search │ │ ├── search_filter │ │ │ ├── widgets │ │ │ │ └── index.dart │ │ │ └── index.dart │ │ └── search_index │ │ │ └── index.dart │ ├── styles │ │ ├── icon │ │ │ ├── index.dart │ │ │ └── controller.dart │ │ ├── text │ │ │ ├── index.dart │ │ │ └── controller.dart │ │ ├── image │ │ │ ├── index.dart │ │ │ └── controller.dart │ │ ├── inputs │ │ │ ├── index.dart │ │ │ └── controller.dart │ │ ├── other │ │ │ ├── index.dart │ │ │ ├── controller.dart │ │ │ └── view.dart │ │ ├── buttons │ │ │ ├── index.dart │ │ │ └── controller.dart │ │ ├── carousel │ │ │ ├── index.dart │ │ │ ├── controller.dart │ │ │ └── view.dart │ │ ├── text_form │ │ │ ├── index.dart │ │ │ └── controller.dart │ │ ├── components │ │ │ ├── index.dart │ │ │ ├── controller.dart │ │ │ └── view.dart │ │ ├── group_list │ │ │ ├── index.dart │ │ │ ├── controller.dart │ │ │ └── view.dart │ │ ├── bottom_sheet │ │ │ ├── index.dart │ │ │ ├── controller.dart │ │ │ └── view.dart │ │ └── styles_index │ │ │ └── index.dart │ ├── system │ │ ├── login │ │ │ └── index.dart │ │ ├── splash │ │ │ ├── index.dart │ │ │ └── view.dart │ │ ├── register │ │ │ └── index.dart │ │ ├── welcome │ │ │ └── index.dart │ │ ├── login_quick │ │ │ ├── index.dart │ │ │ └── controller.dart │ │ ├── register_pin │ │ │ └── index.dart │ │ ├── user_agreement │ │ │ ├── index.dart │ │ │ ├── controller.dart │ │ │ └── view.dart │ │ └── main │ │ │ ├── index.dart │ │ │ └── binding.dart │ └── msg │ │ └── msg_index │ │ ├── index.dart │ │ ├── controller.dart │ │ └── view.dart └── common │ ├── style │ ├── icon │ │ ├── index.dart │ │ ├── controller.dart │ │ └── view.dart │ ├── text │ │ ├── index.dart │ │ ├── controller.dart │ │ └── view.dart │ ├── image │ │ ├── index.dart │ │ ├── controller.dart │ │ └── view.dart │ ├── inputs │ │ ├── index.dart │ │ ├── controller.dart │ │ └── view.dart │ ├── other │ │ ├── index.dart │ │ ├── controller.dart │ │ └── view.dart │ ├── buttons │ │ ├── index.dart │ │ ├── controller.dart │ │ └── view.dart │ ├── carousel │ │ ├── index.dart │ │ ├── controller.dart │ │ └── view.dart │ ├── text_form │ │ ├── index.dart │ │ ├── controller.dart │ │ └── view.dart │ ├── components │ │ ├── index.dart │ │ ├── controller.dart │ │ └── view.dart │ ├── group_list │ │ ├── index.dart │ │ ├── controller.dart │ │ └── view.dart │ ├── bottom_sheet │ │ ├── index.dart │ │ ├── controller.dart │ │ └── view.dart │ ├── styles_index │ │ ├── index.dart │ │ └── controller.dart │ ├── index.dart │ ├── radius.dart │ └── space.dart │ ├── values │ ├── index.dart │ └── images.dart │ ├── routers │ └── index.dart │ ├── services │ └── index.dart │ ├── api │ ├── index.dart │ ├── coupon.dart │ └── system.dart │ ├── i18n │ ├── index.dart │ └── translation.dart │ ├── extension │ ├── index.dart │ ├── ex_datetime.dart │ ├── ex_icon.dart │ └── ex_color.dart │ ├── utils │ ├── index.dart │ ├── validators.dart │ ├── convert.dart │ └── encrypt.dart │ ├── models │ ├── woo │ │ ├── review_model │ │ │ ├── up.dart │ │ │ ├── self.dart │ │ │ ├── collection.dart │ │ │ └── links.dart │ │ ├── category_model │ │ │ ├── self.dart │ │ │ ├── collection.dart │ │ │ └── links.dart │ │ ├── coupons_model │ │ │ ├── self.dart │ │ │ ├── collection.dart │ │ │ └── links.dart │ │ ├── order_model │ │ │ ├── self.dart │ │ │ ├── customer.dart │ │ │ ├── collection.dart │ │ │ ├── tag.dart │ │ │ ├── category.dart │ │ │ ├── meta_datum.dart │ │ │ ├── dimensions.dart │ │ │ ├── links.dart │ │ │ └── attribute.dart │ │ ├── product_model │ │ │ ├── self.dart │ │ │ ├── collection.dart │ │ │ ├── tag.dart │ │ │ ├── category.dart │ │ │ ├── meta_datum.dart │ │ │ ├── dimensions.dart │ │ │ ├── links.dart │ │ │ └── attribute.dart │ │ ├── tags_model │ │ │ ├── self.dart │ │ │ ├── collection.dart │ │ │ ├── links.dart │ │ │ └── tags_model.dart │ │ ├── attribute_model │ │ │ ├── self.dart │ │ │ ├── collection.dart │ │ │ └── links.dart │ │ ├── continents_model │ │ │ ├── self.dart │ │ │ ├── collection.dart │ │ │ ├── state.dart │ │ │ ├── links.dart │ │ │ └── continents_model.dart │ │ └── user_profile_model │ │ │ ├── self.dart │ │ │ ├── collection.dart │ │ │ ├── meta_datum.dart │ │ │ └── links.dart │ ├── request │ │ ├── order.dart │ │ ├── user_register_req.dart │ │ └── user_login_req.dart │ ├── user_token_model.dart │ ├── kv.dart │ ├── welcome_model.dart │ └── error_message_model.dart │ ├── widgets │ └── index.dart │ ├── index.dart │ └── components │ ├── placeholder.dart │ ├── index.dart │ ├── page_title.dart │ └── refresher.dart ├── web ├── favicon.png ├── icons │ ├── Icon-192.png │ ├── Icon-512.png │ ├── Icon-maskable-192.png │ └── Icon-maskable-512.png └── splash │ ├── img │ ├── dark-1x.png │ ├── dark-2x.png │ ├── dark-3x.png │ ├── dark-4x.png │ ├── light-1x.png │ ├── light-2x.png │ ├── light-3x.png │ └── light-4x.png │ └── splash.js ├── dartdoc_options.yaml ├── android ├── gradle.properties ├── app │ └── src │ │ ├── main │ │ ├── res │ │ │ ├── drawable-hdpi │ │ │ │ └── splash.png │ │ │ ├── drawable-mdpi │ │ │ │ └── splash.png │ │ │ ├── drawable-xhdpi │ │ │ │ └── splash.png │ │ │ ├── drawable │ │ │ │ ├── background.png │ │ │ │ └── launch_background.xml │ │ │ ├── drawable-v21 │ │ │ │ ├── background.png │ │ │ │ └── launch_background.xml │ │ │ ├── drawable-xxhdpi │ │ │ │ └── splash.png │ │ │ ├── drawable-xxxhdpi │ │ │ │ └── splash.png │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ └── values-v31 │ │ │ │ └── styles.xml │ │ └── java │ │ │ └── com │ │ │ └── ducafecat │ │ │ └── woo_commerce │ │ │ └── flutter_woo_commerce_getx_learn │ │ │ └── MainActivity.java │ │ ├── debug │ │ └── AndroidManifest.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── .gitignore ├── settings.gradle └── build.gradle ├── assets ├── images │ ├── logo.png │ ├── default.png │ ├── p-cash.png │ ├── p-visa.png │ ├── splash.jpg │ ├── welcome.png │ ├── 2.0x │ │ ├── logo.png │ │ ├── default.png │ │ ├── p-cash.png │ │ ├── p-visa.png │ │ ├── splash.jpg │ │ ├── welcome.png │ │ ├── p-paypal.png │ │ ├── welcome_1.png │ │ ├── welcome_2.png │ │ ├── welcome_3.png │ │ ├── logo_quick.png │ │ ├── p-mastercard.png │ │ ├── home_placeholder.png │ │ └── order-confirmed.png │ ├── 3.0x │ │ ├── logo.png │ │ ├── default.png │ │ ├── p-cash.png │ │ ├── p-visa.png │ │ ├── splash.jpg │ │ ├── welcome.png │ │ ├── p-paypal.png │ │ ├── welcome_1.png │ │ ├── welcome_2.png │ │ ├── welcome_3.png │ │ ├── logo_quick.png │ │ ├── p-mastercard.png │ │ ├── home_placeholder.png │ │ └── order-confirmed.png │ ├── p-paypal.png │ ├── welcome_1.png │ ├── welcome_2.png │ ├── welcome_3.png │ ├── logo_quick.png │ ├── p-mastercard.png │ ├── home_placeholder.png │ ├── order-confirmed.png │ └── files.txt ├── icons │ ├── launcher_ios.png │ ├── launcher_android.png │ └── launcher_android_background.png ├── fonts │ └── Montserrat │ │ ├── Montserrat-Bold.ttf │ │ ├── Montserrat-Light.ttf │ │ ├── Montserrat-Medium.ttf │ │ └── Montserrat-Regular.ttf └── svgs │ ├── i-star.svg │ ├── i-subtract.svg │ ├── profile-header-background.svg │ ├── i-arrow-down.svg │ ├── p-theme.svg │ ├── i-close.svg │ ├── i-add.svg │ ├── i-arrow-back.svg │ ├── i-like.svg │ ├── i-arrow-right.svg │ ├── p-notifications.svg │ ├── i-arrow-bottom.svg │ ├── i-indicators.svg │ ├── i-arrow-left-up.svg │ ├── i-search.svg │ ├── i-add-friend.svg │ ├── facebook.svg │ ├── i-notifications.svg │ └── p-home.svg ├── macos ├── Runner │ ├── Configs │ │ ├── Debug.xcconfig │ │ ├── Release.xcconfig │ │ ├── Warnings.xcconfig │ │ └── AppInfo.xcconfig │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ ├── app_icon_1024.png │ │ │ ├── app_icon_128.png │ │ │ ├── app_icon_16.png │ │ │ ├── app_icon_256.png │ │ │ ├── app_icon_32.png │ │ │ ├── app_icon_512.png │ │ │ └── app_icon_64.png │ ├── AppDelegate.swift │ ├── Release.entitlements │ ├── DebugProfile.entitlements │ └── MainFlutterWindow.swift ├── .gitignore ├── Flutter │ ├── Flutter-Debug.xcconfig │ ├── Flutter-Release.xcconfig │ └── GeneratedPluginRegistrant.swift ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── Runner.xcodeproj │ └── project.xcworkspace │ └── xcshareddata │ └── IDEWorkspaceChecks.plist ├── test_proj ├── test_proj_read.txt ├── 04-1-screenutil:flutter_application_screen.rar ├── 09-08-refresh:pull_to_refresh-2.0.0太旧,编译有许多警告.txt ├── 16-1-form:GET 订单 测试-OK │ ├── 16-1-form:GET 订单 测试-OK.txt │ └── Scrshot │ │ └── 2022-08-27_222759.png ├── 18-5-done:POST 订单 创建-OK │ ├── 18-5-done:POST 订单 创建-OK.txt │ └── Scrshot │ │ └── 2022-08-29_002013.png ├── 16-3-country:GET 数据 - 洲国省-OK │ ├── Scrshot │ │ ├── 2022-08-27_232019.png │ │ └── 2022-08-27_232308.png │ └── 16-3-country:GET 数据 - 洲国省-OK.txt ├── 19-1-orders:GET 订单 翻页列表 测试-OK │ ├── Scrshot │ │ ├── 2022-08-29_154757.png │ │ ├── 2022-08-29_155735.png │ │ ├── 2022-08-29_155742.png │ │ ├── 2022-08-29_160126.png │ │ ├── 2022-08-29_160135.png │ │ ├── 2022-08-29_160206.png │ │ └── 2022-08-29_160859.png │ ├── 19-1-orders:POST用户-登录 测试-OK.txt │ └── 19-1-orders:GET 订单 翻页列表 测试-OK.txt ├── 13-2-tags:GET 商品 - tags 列表 测试-OK │ ├── Scrshot │ │ ├── 2022-08-27_155315.png │ │ └── 2022-08-27_155715.png │ └── 13-2-tags:GET 商品 - tags 列表 测试-OK.txt ├── 14-9-products:GET 商品 翻页列表 测试-OK │ ├── Scrshot │ │ └── 2022-08-27_210614.png │ └── 14-9-products:GET 商品 翻页列表 测试-OK.txt ├── 12-10-reviews:GET 商品 评论 翻页列表 测试-OK │ ├── Scrshot │ │ ├── 2022-08-27_083831.png │ │ ├── 2022-08-27_084048.png │ │ └── 2022-08-27_084056.png │ └── 12-10-reviews-GET 商品 评论 翻页列表 测试-OK.txt ├── 17-5-coupons:GET 优惠券 coupons 列表-OK │ ├── Scrshot │ │ ├── 2022-08-28_113123.png │ │ └── 2022-08-28_113201.png │ └── 17-5-coupons:GET 优惠券 coupons 列表-OK.txt ├── 09-04-model:Get products categories测试-OK │ ├── Get products 翻页列表测试-OK.txt │ ├── Scrshot │ │ ├── 2022-08-26_150441.png │ │ ├── 2022-08-26_150609.png │ │ ├── 2022-08-26_150619.png │ │ ├── 2022-08-26_151111.png │ │ ├── 2022-08-26_153348.png │ │ └── 2022-08-26_153714.png │ ├── Get products categories测试-OK.txt │ └── 注意:Json to Dart Model转换时,后面统一在VSCode下面进行.txt ├── 07-2-login-api:POST用户-登录在线测试、GET用户-Profile测试说明-OK │ ├── 1、POST用户-登录在线测试成功.png │ ├── 1、POST用户-登录在线测试环境.jpg │ ├── 2022-08-25_233915.png │ ├── 1、POST用户-登录在线测试成功-OK.txt │ ├── 2、GET用户-Profile在线测试成功.png │ ├── 2、GET用户-Profile在线测试地址修改.png │ ├── 2、GET用户-Profile在线测试成功-OK.txt │ └── JSON to Dart-Android Studio │ │ ├── 2022-08-25_225316.png │ │ ├── 2022-08-25_225333.png │ │ ├── 2022-08-25_225552.png │ │ ├── 2022-08-25_225601.png │ │ ├── 2022-08-25_225806.png │ │ └── 2022-08-25_225908.png └── 12-06-colors:Get 属性 attributes - 详情terms 测试-OK │ ├── Scrshot │ ├── 2022-08-26_225315.png │ ├── 2022-08-26_225410.png │ ├── 2022-08-26_225427.png │ ├── 2022-08-26_225437.png │ ├── 2022-08-26_225442.png │ ├── 2022-08-26_225452.png │ └── 2022-08-26_225501.png │ └── Get 属性 attributes - 详情terms 测试-OK.txt ├── Scrshot ├── 2022-08-22_153258.png ├── 2022-08-22_153327.png ├── 2022-08-22_153528.png ├── 2022-08-22_153535.png ├── 2022-08-22_161201.png ├── 2022-08-22_162111.png ├── 2022-08-22_162950.png ├── 2022-08-22_163025.png ├── 2022-08-22_165256.png ├── 2022-08-24_170800.png ├── 2022-08-24_232325.png ├── 2022-08-25_175437.png ├── 2022-08-25_200641.png ├── 2022-08-26_003253.png ├── 2022-08-26_110824.png ├── 2022-08-27_095513.png ├── 2022-08-28_093537.png ├── 2022-08-28_095750.png ├── 2022-08-28_111013.png ├── 2022-08-28_115851.png ├── 2022-08-28_115908.png ├── 2022-08-29_001503.png ├── 2022-08-29_003956.png ├── 2022-08-29_162709.png ├── 2022-08-29_164614.png ├── 2022-08-29_180851.png ├── 2022-08-29_205001.png ├── 2022-08-29_210036.png └── 2022-08-29_210926.png ├── ios ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner │ ├── AppDelegate.h │ ├── Assets.xcassets │ │ ├── LaunchImage.imageset │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ ├── README.md │ │ │ └── Contents.json │ │ ├── AppIcon.appiconset │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-50x50@1x.png │ │ │ ├── Icon-App-50x50@2x.png │ │ │ ├── Icon-App-57x57@1x.png │ │ │ ├── Icon-App-57x57@2x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-72x72@1x.png │ │ │ ├── Icon-App-72x72@2x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ └── Icon-App-83.5x83.5@2x.png │ │ └── LaunchBackground.imageset │ │ │ ├── background.png │ │ │ └── Contents.json │ ├── main.m │ └── AppDelegate.m ├── Runner.xcodeproj │ └── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ ├── WorkspaceSettings.xcsettings │ │ └── IDEWorkspaceChecks.plist ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── WorkspaceSettings.xcsettings │ │ └── IDEWorkspaceChecks.plist ├── .gitignore └── Podfile.lock ├── windows ├── runner │ ├── resources │ │ └── app_icon.ico │ ├── resource.h │ ├── utils.h │ ├── runner.exe.manifest │ └── flutter_window.h ├── .gitignore └── flutter │ ├── generated_plugin_registrant.h │ ├── generated_plugin_registrant.cc │ └── generated_plugins.cmake ├── README.md └── .gitignore /linux/.gitignore: -------------------------------------------------------------------------------- 1 | flutter/ephemeral 2 | -------------------------------------------------------------------------------- /lib/pages/cart/buy_now/widgets/index.dart: -------------------------------------------------------------------------------- 1 | library widgets; 2 | 3 | export 'price_line.dart'; -------------------------------------------------------------------------------- /lib/pages/my/order_list/widgets/index.dart: -------------------------------------------------------------------------------- 1 | library widgets; 2 | 3 | export 'list_item.dart'; -------------------------------------------------------------------------------- /lib/pages/goods/home/widgets/index.dart: -------------------------------------------------------------------------------- 1 | library widgets; 2 | 3 | export 'list_title.dart'; 4 | -------------------------------------------------------------------------------- /lib/pages/search/search_filter/widgets/index.dart: -------------------------------------------------------------------------------- 1 | library widgets; 2 | 3 | export 'filter_view.dart'; 4 | -------------------------------------------------------------------------------- /web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/web/favicon.png -------------------------------------------------------------------------------- /lib/common/style/icon/index.dart: -------------------------------------------------------------------------------- 1 | library icon; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/common/style/text/index.dart: -------------------------------------------------------------------------------- 1 | library text; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/my/theme/index.dart: -------------------------------------------------------------------------------- 1 | library theme; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/styles/icon/index.dart: -------------------------------------------------------------------------------- 1 | library icon; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/styles/text/index.dart: -------------------------------------------------------------------------------- 1 | library text; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /dartdoc_options.yaml: -------------------------------------------------------------------------------- 1 | dartdoc: 2 | nodoc: ["lib/pages/**/*.dart"] 3 | # 这里排除了 pages 目录,我们只要 common 生成定义文件就行 4 | -------------------------------------------------------------------------------- /lib/common/style/image/index.dart: -------------------------------------------------------------------------------- 1 | library image; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/common/style/inputs/index.dart: -------------------------------------------------------------------------------- 1 | library inputs; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/common/style/other/index.dart: -------------------------------------------------------------------------------- 1 | library other; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/cart/buy_now/index.dart: -------------------------------------------------------------------------------- 1 | library buy_now; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/my/language/index.dart: -------------------------------------------------------------------------------- 1 | library language; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/my/my_index/index.dart: -------------------------------------------------------------------------------- 1 | library my_index; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/styles/image/index.dart: -------------------------------------------------------------------------------- 1 | library image; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/styles/inputs/index.dart: -------------------------------------------------------------------------------- 1 | library inputs; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/styles/other/index.dart: -------------------------------------------------------------------------------- 1 | library other; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/system/login/index.dart: -------------------------------------------------------------------------------- 1 | library login; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/system/splash/index.dart: -------------------------------------------------------------------------------- 1 | library splash; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /assets/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/logo.png -------------------------------------------------------------------------------- /lib/common/style/buttons/index.dart: -------------------------------------------------------------------------------- 1 | library buttons; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/common/style/carousel/index.dart: -------------------------------------------------------------------------------- 1 | library carousel; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/common/style/text_form/index.dart: -------------------------------------------------------------------------------- 1 | library text_form; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/cart/buy_done/index.dart: -------------------------------------------------------------------------------- 1 | library buy_done; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/cart/cart_index/index.dart: -------------------------------------------------------------------------------- 1 | library cart_index; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/goods/category/index.dart: -------------------------------------------------------------------------------- 1 | library category; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/msg/msg_index/index.dart: -------------------------------------------------------------------------------- 1 | library msg_index; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/my/my_address/index.dart: -------------------------------------------------------------------------------- 1 | library my_address; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/my/order_list/index.dart: -------------------------------------------------------------------------------- 1 | library order_list; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/styles/buttons/index.dart: -------------------------------------------------------------------------------- 1 | library buttons; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/styles/carousel/index.dart: -------------------------------------------------------------------------------- 1 | library carousel; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/styles/text_form/index.dart: -------------------------------------------------------------------------------- 1 | library text_form; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/system/register/index.dart: -------------------------------------------------------------------------------- 1 | library register; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/system/welcome/index.dart: -------------------------------------------------------------------------------- 1 | library welcome; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /macos/Runner/Configs/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Debug.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/web/icons/Icon-192.png -------------------------------------------------------------------------------- /web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/web/icons/Icon-512.png -------------------------------------------------------------------------------- /assets/images/default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/default.png -------------------------------------------------------------------------------- /assets/images/p-cash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/p-cash.png -------------------------------------------------------------------------------- /assets/images/p-visa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/p-visa.png -------------------------------------------------------------------------------- /assets/images/splash.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/splash.jpg -------------------------------------------------------------------------------- /assets/images/welcome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/welcome.png -------------------------------------------------------------------------------- /lib/common/style/components/index.dart: -------------------------------------------------------------------------------- 1 | library components; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/common/style/group_list/index.dart: -------------------------------------------------------------------------------- 1 | library group_list; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/goods/product_list/index.dart: -------------------------------------------------------------------------------- 1 | library product_list; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/my/my_index/widgets/index.dart: -------------------------------------------------------------------------------- 1 | library widgets; 2 | 3 | export 'bar_item.dart'; 4 | export 'button_item.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/my/order_details/index.dart: -------------------------------------------------------------------------------- 1 | library order_details; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/my/profile_edit/index.dart: -------------------------------------------------------------------------------- 1 | library profile_edit; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/styles/components/index.dart: -------------------------------------------------------------------------------- 1 | library components; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/styles/group_list/index.dart: -------------------------------------------------------------------------------- 1 | library group_list; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/system/login_quick/index.dart: -------------------------------------------------------------------------------- 1 | library login_quick; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /macos/Runner/Configs/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Release.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /assets/images/2.0x/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/2.0x/logo.png -------------------------------------------------------------------------------- /assets/images/3.0x/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/3.0x/logo.png -------------------------------------------------------------------------------- /assets/images/p-paypal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/p-paypal.png -------------------------------------------------------------------------------- /assets/images/welcome_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/welcome_1.png -------------------------------------------------------------------------------- /assets/images/welcome_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/welcome_2.png -------------------------------------------------------------------------------- /assets/images/welcome_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/welcome_3.png -------------------------------------------------------------------------------- /lib/common/style/bottom_sheet/index.dart: -------------------------------------------------------------------------------- 1 | library bottom_sheet; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/common/style/styles_index/index.dart: -------------------------------------------------------------------------------- 1 | library styles_index; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/common/values/index.dart: -------------------------------------------------------------------------------- 1 | library values; 2 | 3 | export 'constants.dart'; 4 | export 'images.dart'; 5 | export 'svgs.dart'; 6 | -------------------------------------------------------------------------------- /lib/pages/cart/cart_index/widgets/index.dart: -------------------------------------------------------------------------------- 1 | library widgets; 2 | 3 | export 'cart_item.dart'; 4 | export 'action_bar.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/search/search_filter/index.dart: -------------------------------------------------------------------------------- 1 | library search_filter; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/search/search_index/index.dart: -------------------------------------------------------------------------------- 1 | library search_index; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/styles/bottom_sheet/index.dart: -------------------------------------------------------------------------------- 1 | library bottom_sheet; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/styles/styles_index/index.dart: -------------------------------------------------------------------------------- 1 | library styles_index; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/system/register_pin/index.dart: -------------------------------------------------------------------------------- 1 | library register_pin; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/system/user_agreement/index.dart: -------------------------------------------------------------------------------- 1 | library user_agreement; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /macos/.gitignore: -------------------------------------------------------------------------------- 1 | # Flutter-related 2 | **/Flutter/ephemeral/ 3 | **/Pods/ 4 | 5 | # Xcode-related 6 | **/dgph 7 | **/xcuserdata/ 8 | -------------------------------------------------------------------------------- /test_proj/test_proj_read.txt: -------------------------------------------------------------------------------- 1 | 说明: 2 | 此目录 test_proj 下面的文件只是测试项目代码,不属于主项目代码,可以拷贝到其他位置单独使用。 3 | 用户可以删除此目录下面的所有文件,删除后不会影响主项目代码。 4 | -------------------------------------------------------------------------------- /web/splash/img/dark-1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/web/splash/img/dark-1x.png -------------------------------------------------------------------------------- /web/splash/img/dark-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/web/splash/img/dark-2x.png -------------------------------------------------------------------------------- /web/splash/img/dark-3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/web/splash/img/dark-3x.png -------------------------------------------------------------------------------- /web/splash/img/dark-4x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/web/splash/img/dark-4x.png -------------------------------------------------------------------------------- /web/splash/img/light-1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/web/splash/img/light-1x.png -------------------------------------------------------------------------------- /web/splash/img/light-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/web/splash/img/light-2x.png -------------------------------------------------------------------------------- /web/splash/img/light-3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/web/splash/img/light-3x.png -------------------------------------------------------------------------------- /web/splash/img/light-4x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/web/splash/img/light-4x.png -------------------------------------------------------------------------------- /Scrshot/2022-08-22_153258.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/Scrshot/2022-08-22_153258.png -------------------------------------------------------------------------------- /Scrshot/2022-08-22_153327.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/Scrshot/2022-08-22_153327.png -------------------------------------------------------------------------------- /Scrshot/2022-08-22_153528.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/Scrshot/2022-08-22_153528.png -------------------------------------------------------------------------------- /Scrshot/2022-08-22_153535.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/Scrshot/2022-08-22_153535.png -------------------------------------------------------------------------------- /Scrshot/2022-08-22_161201.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/Scrshot/2022-08-22_161201.png -------------------------------------------------------------------------------- /Scrshot/2022-08-22_162111.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/Scrshot/2022-08-22_162111.png -------------------------------------------------------------------------------- /Scrshot/2022-08-22_162950.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/Scrshot/2022-08-22_162950.png -------------------------------------------------------------------------------- /Scrshot/2022-08-22_163025.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/Scrshot/2022-08-22_163025.png -------------------------------------------------------------------------------- /Scrshot/2022-08-22_165256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/Scrshot/2022-08-22_165256.png -------------------------------------------------------------------------------- /Scrshot/2022-08-24_170800.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/Scrshot/2022-08-24_170800.png -------------------------------------------------------------------------------- /Scrshot/2022-08-24_232325.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/Scrshot/2022-08-24_232325.png -------------------------------------------------------------------------------- /Scrshot/2022-08-25_175437.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/Scrshot/2022-08-25_175437.png -------------------------------------------------------------------------------- /Scrshot/2022-08-25_200641.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/Scrshot/2022-08-25_200641.png -------------------------------------------------------------------------------- /Scrshot/2022-08-26_003253.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/Scrshot/2022-08-26_003253.png -------------------------------------------------------------------------------- /Scrshot/2022-08-26_110824.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/Scrshot/2022-08-26_110824.png -------------------------------------------------------------------------------- /Scrshot/2022-08-27_095513.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/Scrshot/2022-08-27_095513.png -------------------------------------------------------------------------------- /Scrshot/2022-08-28_093537.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/Scrshot/2022-08-28_093537.png -------------------------------------------------------------------------------- /Scrshot/2022-08-28_095750.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/Scrshot/2022-08-28_095750.png -------------------------------------------------------------------------------- /Scrshot/2022-08-28_111013.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/Scrshot/2022-08-28_111013.png -------------------------------------------------------------------------------- /Scrshot/2022-08-28_115851.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/Scrshot/2022-08-28_115851.png -------------------------------------------------------------------------------- /Scrshot/2022-08-28_115908.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/Scrshot/2022-08-28_115908.png -------------------------------------------------------------------------------- /Scrshot/2022-08-29_001503.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/Scrshot/2022-08-29_001503.png -------------------------------------------------------------------------------- /Scrshot/2022-08-29_003956.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/Scrshot/2022-08-29_003956.png -------------------------------------------------------------------------------- /Scrshot/2022-08-29_162709.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/Scrshot/2022-08-29_162709.png -------------------------------------------------------------------------------- /Scrshot/2022-08-29_164614.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/Scrshot/2022-08-29_164614.png -------------------------------------------------------------------------------- /Scrshot/2022-08-29_180851.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/Scrshot/2022-08-29_180851.png -------------------------------------------------------------------------------- /Scrshot/2022-08-29_205001.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/Scrshot/2022-08-29_205001.png -------------------------------------------------------------------------------- /Scrshot/2022-08-29_210036.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/Scrshot/2022-08-29_210036.png -------------------------------------------------------------------------------- /Scrshot/2022-08-29_210926.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/Scrshot/2022-08-29_210926.png -------------------------------------------------------------------------------- /assets/icons/launcher_ios.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/icons/launcher_ios.png -------------------------------------------------------------------------------- /assets/images/2.0x/default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/2.0x/default.png -------------------------------------------------------------------------------- /assets/images/2.0x/p-cash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/2.0x/p-cash.png -------------------------------------------------------------------------------- /assets/images/2.0x/p-visa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/2.0x/p-visa.png -------------------------------------------------------------------------------- /assets/images/2.0x/splash.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/2.0x/splash.jpg -------------------------------------------------------------------------------- /assets/images/2.0x/welcome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/2.0x/welcome.png -------------------------------------------------------------------------------- /assets/images/3.0x/default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/3.0x/default.png -------------------------------------------------------------------------------- /assets/images/3.0x/p-cash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/3.0x/p-cash.png -------------------------------------------------------------------------------- /assets/images/3.0x/p-visa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/3.0x/p-visa.png -------------------------------------------------------------------------------- /assets/images/3.0x/splash.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/3.0x/splash.jpg -------------------------------------------------------------------------------- /assets/images/3.0x/welcome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/3.0x/welcome.png -------------------------------------------------------------------------------- /assets/images/logo_quick.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/logo_quick.png -------------------------------------------------------------------------------- /assets/images/p-mastercard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/p-mastercard.png -------------------------------------------------------------------------------- /lib/common/routers/index.dart: -------------------------------------------------------------------------------- 1 | library routers; 2 | 3 | export 'names.dart'; 4 | export 'pages.dart'; 5 | export 'observers.dart'; 6 | -------------------------------------------------------------------------------- /lib/pages/cart/apply_promo_code/index.dart: -------------------------------------------------------------------------------- 1 | library apply_promo_code; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /lib/pages/goods/product_details/index.dart: -------------------------------------------------------------------------------- 1 | library product_details; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | -------------------------------------------------------------------------------- /assets/images/2.0x/p-paypal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/2.0x/p-paypal.png -------------------------------------------------------------------------------- /assets/images/2.0x/welcome_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/2.0x/welcome_1.png -------------------------------------------------------------------------------- /assets/images/2.0x/welcome_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/2.0x/welcome_2.png -------------------------------------------------------------------------------- /assets/images/2.0x/welcome_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/2.0x/welcome_3.png -------------------------------------------------------------------------------- /assets/images/3.0x/p-paypal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/3.0x/p-paypal.png -------------------------------------------------------------------------------- /assets/images/3.0x/welcome_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/3.0x/welcome_1.png -------------------------------------------------------------------------------- /assets/images/3.0x/welcome_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/3.0x/welcome_2.png -------------------------------------------------------------------------------- /assets/images/3.0x/welcome_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/3.0x/welcome_3.png -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /lib/pages/system/main/index.dart: -------------------------------------------------------------------------------- 1 | library main; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | export './binding.dart'; 6 | -------------------------------------------------------------------------------- /web/icons/Icon-maskable-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/web/icons/Icon-maskable-192.png -------------------------------------------------------------------------------- /web/icons/Icon-maskable-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/web/icons/Icon-maskable-512.png -------------------------------------------------------------------------------- /assets/icons/launcher_android.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/icons/launcher_android.png -------------------------------------------------------------------------------- /assets/images/2.0x/logo_quick.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/2.0x/logo_quick.png -------------------------------------------------------------------------------- /assets/images/2.0x/p-mastercard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/2.0x/p-mastercard.png -------------------------------------------------------------------------------- /assets/images/3.0x/logo_quick.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/3.0x/logo_quick.png -------------------------------------------------------------------------------- /assets/images/3.0x/p-mastercard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/3.0x/p-mastercard.png -------------------------------------------------------------------------------- /assets/images/home_placeholder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/home_placeholder.png -------------------------------------------------------------------------------- /assets/images/order-confirmed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/order-confirmed.png -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /lib/pages/goods/home/index.dart: -------------------------------------------------------------------------------- 1 | library home; 2 | 3 | export './controller.dart'; 4 | export './view.dart'; 5 | export './widgets/index.dart'; 6 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : FlutterAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /windows/runner/resources/app_icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/windows/runner/resources/app_icon.ico -------------------------------------------------------------------------------- /assets/images/2.0x/home_placeholder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/2.0x/home_placeholder.png -------------------------------------------------------------------------------- /assets/images/2.0x/order-confirmed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/2.0x/order-confirmed.png -------------------------------------------------------------------------------- /assets/images/3.0x/home_placeholder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/3.0x/home_placeholder.png -------------------------------------------------------------------------------- /assets/images/3.0x/order-confirmed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/images/3.0x/order-confirmed.png -------------------------------------------------------------------------------- /lib/common/services/index.dart: -------------------------------------------------------------------------------- 1 | library services; 2 | 3 | export 'config.dart'; 4 | export 'wp_http.dart'; 5 | export 'user.dart'; 6 | export 'cart.dart'; 7 | -------------------------------------------------------------------------------- /lib/pages/my/order_details/widgets/index.dart: -------------------------------------------------------------------------------- 1 | library widgets; 2 | 3 | export 'bill_address.dart'; 4 | export 'products_list.dart'; 5 | export 'total_item.dart'; -------------------------------------------------------------------------------- /assets/fonts/Montserrat/Montserrat-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/fonts/Montserrat/Montserrat-Bold.ttf -------------------------------------------------------------------------------- /assets/fonts/Montserrat/Montserrat-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/fonts/Montserrat/Montserrat-Light.ttf -------------------------------------------------------------------------------- /assets/fonts/Montserrat/Montserrat-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/fonts/Montserrat/Montserrat-Medium.ttf -------------------------------------------------------------------------------- /assets/icons/launcher_android_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/icons/launcher_android_background.png -------------------------------------------------------------------------------- /lib/pages/goods/product_details/widgets/index.dart: -------------------------------------------------------------------------------- 1 | library widgets; 2 | 3 | export 'tab_product.dart'; 4 | export 'tab_detail.dart'; 5 | export 'tab_reviews.dart'; 6 | -------------------------------------------------------------------------------- /assets/fonts/Montserrat/Montserrat-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/assets/fonts/Montserrat/Montserrat-Regular.ttf -------------------------------------------------------------------------------- /macos/Flutter/Flutter-Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "ephemeral/Flutter-Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /macos/Flutter/Flutter-Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "ephemeral/Flutter-Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-hdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/android/app/src/main/res/drawable-hdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/android/app/src/main/res/drawable-mdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/android/app/src/main/res/drawable-xhdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/android/app/src/main/res/drawable/background.png -------------------------------------------------------------------------------- /lib/common/api/index.dart: -------------------------------------------------------------------------------- 1 | library api; 2 | 3 | export 'user.dart'; 4 | export 'system.dart'; 5 | export 'product.dart'; 6 | export 'coupon.dart'; 7 | export 'order.dart'; 8 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/android/app/src/main/res/drawable-v21/background.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xxhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/android/app/src/main/res/drawable-xxhdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xxxhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/android/app/src/main/res/drawable-xxxhdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /lib/common/i18n/index.dart: -------------------------------------------------------------------------------- 1 | library i18n; 2 | 3 | export 'locale_keys.dart'; 4 | export 'translation.dart'; 5 | export 'locales/locale_en.dart'; 6 | export 'locales/locale_zh.dart'; 7 | -------------------------------------------------------------------------------- /test_proj/04-1-screenutil:flutter_application_screen.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/04-1-screenutil:flutter_application_screen.rar -------------------------------------------------------------------------------- /test_proj/09-08-refresh:pull_to_refresh-2.0.0太旧,编译有许多警告.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/09-08-refresh:pull_to_refresh-2.0.0太旧,编译有许多警告.txt -------------------------------------------------------------------------------- /test_proj/16-1-form:GET 订单 测试-OK/16-1-form:GET 订单 测试-OK.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/16-1-form:GET 订单 测试-OK/16-1-form:GET 订单 测试-OK.txt -------------------------------------------------------------------------------- /test_proj/16-1-form:GET 订单 测试-OK/Scrshot/2022-08-27_222759.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/16-1-form:GET 订单 测试-OK/Scrshot/2022-08-27_222759.png -------------------------------------------------------------------------------- /test_proj/18-5-done:POST 订单 创建-OK/18-5-done:POST 订单 创建-OK.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/18-5-done:POST 订单 创建-OK/18-5-done:POST 订单 创建-OK.txt -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png -------------------------------------------------------------------------------- /test_proj/18-5-done:POST 订单 创建-OK/Scrshot/2022-08-29_002013.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/18-5-done:POST 订单 创建-OK/Scrshot/2022-08-29_002013.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /lib/common/style/index.dart: -------------------------------------------------------------------------------- 1 | library style; 2 | 3 | export 'color_schemes.g.dart'; 4 | export 'theme.dart'; 5 | export 'text.dart'; 6 | export 'space.dart'; 7 | export 'colors.dart'; 8 | export 'radius.dart'; 9 | -------------------------------------------------------------------------------- /linux/main.cc: -------------------------------------------------------------------------------- 1 | #include "my_application.h" 2 | 3 | int main(int argc, char** argv) { 4 | g_autoptr(MyApplication) app = my_application_new(); 5 | return g_application_run(G_APPLICATION(app), argc, argv); 6 | } 7 | -------------------------------------------------------------------------------- /test_proj/16-3-country:GET 数据 - 洲国省-OK/Scrshot/2022-08-27_232019.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/16-3-country:GET 数据 - 洲国省-OK/Scrshot/2022-08-27_232019.png -------------------------------------------------------------------------------- /test_proj/16-3-country:GET 数据 - 洲国省-OK/Scrshot/2022-08-27_232308.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/16-3-country:GET 数据 - 洲国省-OK/Scrshot/2022-08-27_232308.png -------------------------------------------------------------------------------- /test_proj/19-1-orders:GET 订单 翻页列表 测试-OK/Scrshot/2022-08-29_154757.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/19-1-orders:GET 订单 翻页列表 测试-OK/Scrshot/2022-08-29_154757.png -------------------------------------------------------------------------------- /test_proj/19-1-orders:GET 订单 翻页列表 测试-OK/Scrshot/2022-08-29_155735.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/19-1-orders:GET 订单 翻页列表 测试-OK/Scrshot/2022-08-29_155735.png -------------------------------------------------------------------------------- /test_proj/19-1-orders:GET 订单 翻页列表 测试-OK/Scrshot/2022-08-29_155742.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/19-1-orders:GET 订单 翻页列表 测试-OK/Scrshot/2022-08-29_155742.png -------------------------------------------------------------------------------- /test_proj/19-1-orders:GET 订单 翻页列表 测试-OK/Scrshot/2022-08-29_160126.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/19-1-orders:GET 订单 翻页列表 测试-OK/Scrshot/2022-08-29_160126.png -------------------------------------------------------------------------------- /test_proj/19-1-orders:GET 订单 翻页列表 测试-OK/Scrshot/2022-08-29_160135.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/19-1-orders:GET 订单 翻页列表 测试-OK/Scrshot/2022-08-29_160135.png -------------------------------------------------------------------------------- /test_proj/19-1-orders:GET 订单 翻页列表 测试-OK/Scrshot/2022-08-29_160206.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/19-1-orders:GET 订单 翻页列表 测试-OK/Scrshot/2022-08-29_160206.png -------------------------------------------------------------------------------- /test_proj/19-1-orders:GET 订单 翻页列表 测试-OK/Scrshot/2022-08-29_160859.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/19-1-orders:GET 订单 翻页列表 测试-OK/Scrshot/2022-08-29_160859.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /test_proj/13-2-tags:GET 商品 - tags 列表 测试-OK/Scrshot/2022-08-27_155315.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/13-2-tags:GET 商品 - tags 列表 测试-OK/Scrshot/2022-08-27_155315.png -------------------------------------------------------------------------------- /test_proj/13-2-tags:GET 商品 - tags 列表 测试-OK/Scrshot/2022-08-27_155715.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/13-2-tags:GET 商品 - tags 列表 测试-OK/Scrshot/2022-08-27_155715.png -------------------------------------------------------------------------------- /test_proj/14-9-products:GET 商品 翻页列表 测试-OK/Scrshot/2022-08-27_210614.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/14-9-products:GET 商品 翻页列表 测试-OK/Scrshot/2022-08-27_210614.png -------------------------------------------------------------------------------- /test_proj/16-3-country:GET 数据 - 洲国省-OK/16-3-country:GET 数据 - 洲国省-OK.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/16-3-country:GET 数据 - 洲国省-OK/16-3-country:GET 数据 - 洲国省-OK.txt -------------------------------------------------------------------------------- /test_proj/19-1-orders:GET 订单 翻页列表 测试-OK/19-1-orders:POST用户-登录 测试-OK.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/19-1-orders:GET 订单 翻页列表 测试-OK/19-1-orders:POST用户-登录 测试-OK.txt -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /test_proj/12-10-reviews:GET 商品 评论 翻页列表 测试-OK/Scrshot/2022-08-27_083831.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/12-10-reviews:GET 商品 评论 翻页列表 测试-OK/Scrshot/2022-08-27_083831.png -------------------------------------------------------------------------------- /test_proj/12-10-reviews:GET 商品 评论 翻页列表 测试-OK/Scrshot/2022-08-27_084048.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/12-10-reviews:GET 商品 评论 翻页列表 测试-OK/Scrshot/2022-08-27_084048.png -------------------------------------------------------------------------------- /test_proj/12-10-reviews:GET 商品 评论 翻页列表 测试-OK/Scrshot/2022-08-27_084056.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/12-10-reviews:GET 商品 评论 翻页列表 测试-OK/Scrshot/2022-08-27_084056.png -------------------------------------------------------------------------------- /test_proj/17-5-coupons:GET 优惠券 coupons 列表-OK/Scrshot/2022-08-28_113123.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/17-5-coupons:GET 优惠券 coupons 列表-OK/Scrshot/2022-08-28_113123.png -------------------------------------------------------------------------------- /test_proj/17-5-coupons:GET 优惠券 coupons 列表-OK/Scrshot/2022-08-28_113201.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/17-5-coupons:GET 优惠券 coupons 列表-OK/Scrshot/2022-08-28_113201.png -------------------------------------------------------------------------------- /test_proj/19-1-orders:GET 订单 翻页列表 测试-OK/19-1-orders:GET 订单 翻页列表 测试-OK.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/19-1-orders:GET 订单 翻页列表 测试-OK/19-1-orders:GET 订单 翻页列表 测试-OK.txt -------------------------------------------------------------------------------- /web/splash/splash.js: -------------------------------------------------------------------------------- 1 | function removeSplashFromWeb() { 2 | document.getElementById("splash")?.remove(); 3 | document.getElementById("splash-branding")?.remove(); 4 | document.body.style.background = "transparent"; 5 | } 6 | -------------------------------------------------------------------------------- /lib/common/extension/index.dart: -------------------------------------------------------------------------------- 1 | library extension; 2 | 3 | export 'ex_color.dart'; 4 | export 'ex_datetime.dart'; 5 | export 'ex_icon.dart'; 6 | export 'ex_list.dart'; 7 | export 'ex_string.dart'; 8 | export 'ex_widget.dart'; 9 | -------------------------------------------------------------------------------- /macos/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /test_proj/09-04-model:Get products categories测试-OK/Get products 翻页列表测试-OK.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/09-04-model:Get products categories测试-OK/Get products 翻页列表测试-OK.txt -------------------------------------------------------------------------------- /test_proj/14-9-products:GET 商品 翻页列表 测试-OK/14-9-products:GET 商品 翻页列表 测试-OK.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/14-9-products:GET 商品 翻页列表 测试-OK/14-9-products:GET 商品 翻页列表 测试-OK.txt -------------------------------------------------------------------------------- /test_proj/09-04-model:Get products categories测试-OK/Scrshot/2022-08-26_150441.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/09-04-model:Get products categories测试-OK/Scrshot/2022-08-26_150441.png -------------------------------------------------------------------------------- /test_proj/09-04-model:Get products categories测试-OK/Scrshot/2022-08-26_150609.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/09-04-model:Get products categories测试-OK/Scrshot/2022-08-26_150609.png -------------------------------------------------------------------------------- /test_proj/09-04-model:Get products categories测试-OK/Scrshot/2022-08-26_150619.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/09-04-model:Get products categories测试-OK/Scrshot/2022-08-26_150619.png -------------------------------------------------------------------------------- /test_proj/09-04-model:Get products categories测试-OK/Scrshot/2022-08-26_151111.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/09-04-model:Get products categories测试-OK/Scrshot/2022-08-26_151111.png -------------------------------------------------------------------------------- /test_proj/09-04-model:Get products categories测试-OK/Scrshot/2022-08-26_153348.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/09-04-model:Get products categories测试-OK/Scrshot/2022-08-26_153348.png -------------------------------------------------------------------------------- /test_proj/09-04-model:Get products categories测试-OK/Scrshot/2022-08-26_153714.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/09-04-model:Get products categories测试-OK/Scrshot/2022-08-26_153714.png -------------------------------------------------------------------------------- /test_proj/13-2-tags:GET 商品 - tags 列表 测试-OK/13-2-tags:GET 商品 - tags 列表 测试-OK.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/13-2-tags:GET 商品 - tags 列表 测试-OK/13-2-tags:GET 商品 - tags 列表 测试-OK.txt -------------------------------------------------------------------------------- /test_proj/07-2-login-api:POST用户-登录在线测试、GET用户-Profile测试说明-OK/1、POST用户-登录在线测试成功.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/07-2-login-api:POST用户-登录在线测试、GET用户-Profile测试说明-OK/1、POST用户-登录在线测试成功.png -------------------------------------------------------------------------------- /test_proj/07-2-login-api:POST用户-登录在线测试、GET用户-Profile测试说明-OK/1、POST用户-登录在线测试环境.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/07-2-login-api:POST用户-登录在线测试、GET用户-Profile测试说明-OK/1、POST用户-登录在线测试环境.jpg -------------------------------------------------------------------------------- /test_proj/07-2-login-api:POST用户-登录在线测试、GET用户-Profile测试说明-OK/2022-08-25_233915.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/07-2-login-api:POST用户-登录在线测试、GET用户-Profile测试说明-OK/2022-08-25_233915.png -------------------------------------------------------------------------------- /test_proj/07-2-login-api:POST用户-登录在线测试、GET用户-Profile测试说明-OK/1、POST用户-登录在线测试成功-OK.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/07-2-login-api:POST用户-登录在线测试、GET用户-Profile测试说明-OK/1、POST用户-登录在线测试成功-OK.txt -------------------------------------------------------------------------------- /test_proj/07-2-login-api:POST用户-登录在线测试、GET用户-Profile测试说明-OK/2、GET用户-Profile在线测试成功.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/07-2-login-api:POST用户-登录在线测试、GET用户-Profile测试说明-OK/2、GET用户-Profile在线测试成功.png -------------------------------------------------------------------------------- /test_proj/09-04-model:Get products categories测试-OK/Get products categories测试-OK.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/09-04-model:Get products categories测试-OK/Get products categories测试-OK.txt -------------------------------------------------------------------------------- /test_proj/12-10-reviews:GET 商品 评论 翻页列表 测试-OK/12-10-reviews-GET 商品 评论 翻页列表 测试-OK.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/12-10-reviews:GET 商品 评论 翻页列表 测试-OK/12-10-reviews-GET 商品 评论 翻页列表 测试-OK.txt -------------------------------------------------------------------------------- /test_proj/17-5-coupons:GET 优惠券 coupons 列表-OK/17-5-coupons:GET 优惠券 coupons 列表-OK.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/17-5-coupons:GET 优惠券 coupons 列表-OK/17-5-coupons:GET 优惠券 coupons 列表-OK.txt -------------------------------------------------------------------------------- /test_proj/07-2-login-api:POST用户-登录在线测试、GET用户-Profile测试说明-OK/2、GET用户-Profile在线测试地址修改.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/07-2-login-api:POST用户-登录在线测试、GET用户-Profile测试说明-OK/2、GET用户-Profile在线测试地址修改.png -------------------------------------------------------------------------------- /test_proj/12-06-colors:Get 属性 attributes - 详情terms 测试-OK/Scrshot/2022-08-26_225315.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/12-06-colors:Get 属性 attributes - 详情terms 测试-OK/Scrshot/2022-08-26_225315.png -------------------------------------------------------------------------------- /test_proj/12-06-colors:Get 属性 attributes - 详情terms 测试-OK/Scrshot/2022-08-26_225410.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/12-06-colors:Get 属性 attributes - 详情terms 测试-OK/Scrshot/2022-08-26_225410.png -------------------------------------------------------------------------------- /test_proj/12-06-colors:Get 属性 attributes - 详情terms 测试-OK/Scrshot/2022-08-26_225427.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/12-06-colors:Get 属性 attributes - 详情terms 测试-OK/Scrshot/2022-08-26_225427.png -------------------------------------------------------------------------------- /test_proj/12-06-colors:Get 属性 attributes - 详情terms 测试-OK/Scrshot/2022-08-26_225437.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/12-06-colors:Get 属性 attributes - 详情terms 测试-OK/Scrshot/2022-08-26_225437.png -------------------------------------------------------------------------------- /test_proj/12-06-colors:Get 属性 attributes - 详情terms 测试-OK/Scrshot/2022-08-26_225442.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/12-06-colors:Get 属性 attributes - 详情terms 测试-OK/Scrshot/2022-08-26_225442.png -------------------------------------------------------------------------------- /test_proj/12-06-colors:Get 属性 attributes - 详情terms 测试-OK/Scrshot/2022-08-26_225452.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/12-06-colors:Get 属性 attributes - 详情terms 测试-OK/Scrshot/2022-08-26_225452.png -------------------------------------------------------------------------------- /test_proj/12-06-colors:Get 属性 attributes - 详情terms 测试-OK/Scrshot/2022-08-26_225501.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/12-06-colors:Get 属性 attributes - 详情terms 测试-OK/Scrshot/2022-08-26_225501.png -------------------------------------------------------------------------------- /assets/svgs/i-star.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_proj/07-2-login-api:POST用户-登录在线测试、GET用户-Profile测试说明-OK/2、GET用户-Profile在线测试成功-OK.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/07-2-login-api:POST用户-登录在线测试、GET用户-Profile测试说明-OK/2、GET用户-Profile在线测试成功-OK.txt -------------------------------------------------------------------------------- /test_proj/09-04-model:Get products categories测试-OK/注意:Json to Dart Model转换时,后面统一在VSCode下面进行.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/09-04-model:Get products categories测试-OK/注意:Json to Dart Model转换时,后面统一在VSCode下面进行.txt -------------------------------------------------------------------------------- /test_proj/12-06-colors:Get 属性 attributes - 详情terms 测试-OK/Get 属性 attributes - 详情terms 测试-OK.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/12-06-colors:Get 属性 attributes - 详情terms 测试-OK/Get 属性 attributes - 详情terms 测试-OK.txt -------------------------------------------------------------------------------- /lib/common/extension/ex_datetime.dart: -------------------------------------------------------------------------------- 1 | import 'package:intl/intl.dart'; 2 | 3 | /// 扩展日期时间 4 | extension ExDateTime on DateTime { 5 | /// 格式化日期 yyyy-MM-dd 6 | String toDateString({String format = 'yyyy-MM-dd'}) => 7 | DateFormat(format).format(this); 8 | } 9 | -------------------------------------------------------------------------------- /ios/Runner/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char* argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /macos/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | @NSApplicationMain 5 | class AppDelegate: FlutterAppDelegate { 6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { 7 | return true 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /test_proj/07-2-login-api:POST用户-登录在线测试、GET用户-Profile测试说明-OK/JSON to Dart-Android Studio/2022-08-25_225316.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/07-2-login-api:POST用户-登录在线测试、GET用户-Profile测试说明-OK/JSON to Dart-Android Studio/2022-08-25_225316.png -------------------------------------------------------------------------------- /test_proj/07-2-login-api:POST用户-登录在线测试、GET用户-Profile测试说明-OK/JSON to Dart-Android Studio/2022-08-25_225333.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/07-2-login-api:POST用户-登录在线测试、GET用户-Profile测试说明-OK/JSON to Dart-Android Studio/2022-08-25_225333.png -------------------------------------------------------------------------------- /test_proj/07-2-login-api:POST用户-登录在线测试、GET用户-Profile测试说明-OK/JSON to Dart-Android Studio/2022-08-25_225552.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/07-2-login-api:POST用户-登录在线测试、GET用户-Profile测试说明-OK/JSON to Dart-Android Studio/2022-08-25_225552.png -------------------------------------------------------------------------------- /test_proj/07-2-login-api:POST用户-登录在线测试、GET用户-Profile测试说明-OK/JSON to Dart-Android Studio/2022-08-25_225601.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/07-2-login-api:POST用户-登录在线测试、GET用户-Profile测试说明-OK/JSON to Dart-Android Studio/2022-08-25_225601.png -------------------------------------------------------------------------------- /test_proj/07-2-login-api:POST用户-登录在线测试、GET用户-Profile测试说明-OK/JSON to Dart-Android Studio/2022-08-25_225806.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/07-2-login-api:POST用户-登录在线测试、GET用户-Profile测试说明-OK/JSON to Dart-Android Studio/2022-08-25_225806.png -------------------------------------------------------------------------------- /test_proj/07-2-login-api:POST用户-登录在线测试、GET用户-Profile测试说明-OK/JSON to Dart-Android Studio/2022-08-25_225908.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunday2146/flutter_woo_commerce_getx_learn/HEAD/test_proj/07-2-login-api:POST用户-登录在线测试、GET用户-Profile测试说明-OK/JSON to Dart-Android Studio/2022-08-25_225908.png -------------------------------------------------------------------------------- /android/app/src/main/java/com/ducafecat/woo_commerce/flutter_woo_commerce_getx_learn/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.ducafecat.woo_commerce.flutter_woo_commerce_getx_learn; 2 | 3 | import io.flutter.embedding.android.FlutterActivity; 4 | 5 | public class MainActivity extends FlutterActivity { 6 | } 7 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip 7 | -------------------------------------------------------------------------------- /macos/Runner/Release.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /lib/common/utils/index.dart: -------------------------------------------------------------------------------- 1 | library utils; 2 | 3 | export 'storage.dart'; 4 | export 'validators.dart'; 5 | export 'loading.dart'; 6 | export 'encrypt.dart'; 7 | export 'picker.dart'; 8 | export 'bottom_sheet.dart'; 9 | export 'convert.dart'; 10 | export 'privilege.dart'; 11 | export 'picker_image.dart'; 12 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /lib/common/models/woo/review_model/up.dart: -------------------------------------------------------------------------------- 1 | class Up { 2 | String? href; 3 | 4 | Up({this.href}); 5 | 6 | factory Up.fromJson(Map json) => Up( 7 | href: json['href'] as String?, 8 | ); 9 | 10 | Map toJson() => { 11 | 'href': href, 12 | }; 13 | } 14 | -------------------------------------------------------------------------------- /macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /assets/svgs/i-subtract.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /lib/common/models/woo/category_model/self.dart: -------------------------------------------------------------------------------- 1 | class Self { 2 | String? href; 3 | 4 | Self({this.href}); 5 | 6 | factory Self.fromJson(Map json) => Self( 7 | href: json['href'] as String?, 8 | ); 9 | 10 | Map toJson() => { 11 | 'href': href, 12 | }; 13 | } 14 | -------------------------------------------------------------------------------- /lib/common/models/woo/coupons_model/self.dart: -------------------------------------------------------------------------------- 1 | class Self { 2 | String? href; 3 | 4 | Self({this.href}); 5 | 6 | factory Self.fromJson(Map json) => Self( 7 | href: json['href'] as String?, 8 | ); 9 | 10 | Map toJson() => { 11 | 'href': href, 12 | }; 13 | } 14 | -------------------------------------------------------------------------------- /lib/common/models/woo/order_model/self.dart: -------------------------------------------------------------------------------- 1 | class Self { 2 | String? href; 3 | 4 | Self({this.href}); 5 | 6 | factory Self.fromJson(Map json) => Self( 7 | href: json['href'] as String?, 8 | ); 9 | 10 | Map toJson() => { 11 | 'href': href, 12 | }; 13 | } 14 | -------------------------------------------------------------------------------- /lib/common/models/woo/product_model/self.dart: -------------------------------------------------------------------------------- 1 | class Self { 2 | String? href; 3 | 4 | Self({this.href}); 5 | 6 | factory Self.fromJson(Map json) => Self( 7 | href: json['href'] as String?, 8 | ); 9 | 10 | Map toJson() => { 11 | 'href': href, 12 | }; 13 | } 14 | -------------------------------------------------------------------------------- /lib/common/models/woo/review_model/self.dart: -------------------------------------------------------------------------------- 1 | class Self { 2 | String? href; 3 | 4 | Self({this.href}); 5 | 6 | factory Self.fromJson(Map json) => Self( 7 | href: json['href'] as String?, 8 | ); 9 | 10 | Map toJson() => { 11 | 'href': href, 12 | }; 13 | } 14 | -------------------------------------------------------------------------------- /lib/common/models/woo/tags_model/self.dart: -------------------------------------------------------------------------------- 1 | class Self { 2 | String? href; 3 | 4 | Self({this.href}); 5 | 6 | factory Self.fromJson(Map json) => Self( 7 | href: json['href'] as String?, 8 | ); 9 | 10 | Map toJson() => { 11 | 'href': href, 12 | }; 13 | } 14 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /lib/common/models/request/order.dart: -------------------------------------------------------------------------------- 1 | /// 订单查询请求 2 | class OrdersReq { 3 | final int? page; 4 | final int? prePage; 5 | 6 | OrdersReq({ 7 | this.page, 8 | this.prePage, 9 | }); 10 | 11 | Map toJson() => { 12 | 'page': page ?? 1, 13 | 'pre_page': prePage ?? 10, 14 | }; 15 | } 16 | -------------------------------------------------------------------------------- /lib/common/models/woo/attribute_model/self.dart: -------------------------------------------------------------------------------- 1 | class Self { 2 | String? href; 3 | 4 | Self({this.href}); 5 | 6 | factory Self.fromJson(Map json) => Self( 7 | href: json['href'] as String?, 8 | ); 9 | 10 | Map toJson() => { 11 | 'href': href, 12 | }; 13 | } 14 | -------------------------------------------------------------------------------- /lib/common/models/woo/continents_model/self.dart: -------------------------------------------------------------------------------- 1 | class Self { 2 | String? href; 3 | 4 | Self({this.href}); 5 | 6 | factory Self.fromJson(Map json) => Self( 7 | href: json['href'] as String?, 8 | ); 9 | 10 | Map toJson() => { 11 | 'href': href, 12 | }; 13 | } 14 | -------------------------------------------------------------------------------- /lib/common/models/woo/user_profile_model/self.dart: -------------------------------------------------------------------------------- 1 | class Self { 2 | String? href; 3 | 4 | Self({this.href}); 5 | 6 | factory Self.fromJson(Map json) => Self( 7 | href: json['href'] as String?, 8 | ); 9 | 10 | Map toJson() => { 11 | 'href': href, 12 | }; 13 | } 14 | -------------------------------------------------------------------------------- /macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /assets/svgs/profile-header-background.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /lib/common/models/woo/order_model/customer.dart: -------------------------------------------------------------------------------- 1 | class Customer { 2 | String? href; 3 | 4 | Customer({this.href}); 5 | 6 | factory Customer.fromJson(Map json) => Customer( 7 | href: json['href'] as String?, 8 | ); 9 | 10 | Map toJson() => { 11 | 'href': href, 12 | }; 13 | } 14 | -------------------------------------------------------------------------------- /lib/common/widgets/index.dart: -------------------------------------------------------------------------------- 1 | library widgets; 2 | 3 | export 'text.dart'; 4 | export 'icon.dart'; 5 | export 'image.dart'; 6 | export 'button.dart'; 7 | export 'input.dart'; 8 | export 'text_form.dart'; 9 | export 'navigation.dart'; 10 | export 'icon_text.dart'; 11 | export 'list_tile.dart'; 12 | export 'checkbox.dart'; 13 | export 'dialog.dart'; 14 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | **/*.keystore 13 | **/*.jks 14 | -------------------------------------------------------------------------------- /assets/svgs/i-arrow-down.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/common/models/woo/category_model/collection.dart: -------------------------------------------------------------------------------- 1 | class Collection { 2 | String? href; 3 | 4 | Collection({this.href}); 5 | 6 | factory Collection.fromJson(Map json) => Collection( 7 | href: json['href'] as String?, 8 | ); 9 | 10 | Map toJson() => { 11 | 'href': href, 12 | }; 13 | } 14 | -------------------------------------------------------------------------------- /lib/common/models/woo/coupons_model/collection.dart: -------------------------------------------------------------------------------- 1 | class Collection { 2 | String? href; 3 | 4 | Collection({this.href}); 5 | 6 | factory Collection.fromJson(Map json) => Collection( 7 | href: json['href'] as String?, 8 | ); 9 | 10 | Map toJson() => { 11 | 'href': href, 12 | }; 13 | } 14 | -------------------------------------------------------------------------------- /lib/common/models/woo/order_model/collection.dart: -------------------------------------------------------------------------------- 1 | class Collection { 2 | String? href; 3 | 4 | Collection({this.href}); 5 | 6 | factory Collection.fromJson(Map json) => Collection( 7 | href: json['href'] as String?, 8 | ); 9 | 10 | Map toJson() => { 11 | 'href': href, 12 | }; 13 | } 14 | -------------------------------------------------------------------------------- /lib/common/models/woo/product_model/collection.dart: -------------------------------------------------------------------------------- 1 | class Collection { 2 | String? href; 3 | 4 | Collection({this.href}); 5 | 6 | factory Collection.fromJson(Map json) => Collection( 7 | href: json['href'] as String?, 8 | ); 9 | 10 | Map toJson() => { 11 | 'href': href, 12 | }; 13 | } 14 | -------------------------------------------------------------------------------- /lib/common/models/woo/review_model/collection.dart: -------------------------------------------------------------------------------- 1 | class Collection { 2 | String? href; 3 | 4 | Collection({this.href}); 5 | 6 | factory Collection.fromJson(Map json) => Collection( 7 | href: json['href'] as String?, 8 | ); 9 | 10 | Map toJson() => { 11 | 'href': href, 12 | }; 13 | } 14 | -------------------------------------------------------------------------------- /lib/common/models/woo/tags_model/collection.dart: -------------------------------------------------------------------------------- 1 | class Collection { 2 | String? href; 3 | 4 | Collection({this.href}); 5 | 6 | factory Collection.fromJson(Map json) => Collection( 7 | href: json['href'] as String?, 8 | ); 9 | 10 | Map toJson() => { 11 | 'href': href, 12 | }; 13 | } 14 | -------------------------------------------------------------------------------- /assets/svgs/p-theme.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /lib/common/models/woo/attribute_model/collection.dart: -------------------------------------------------------------------------------- 1 | class Collection { 2 | String? href; 3 | 4 | Collection({this.href}); 5 | 6 | factory Collection.fromJson(Map json) => Collection( 7 | href: json['href'] as String?, 8 | ); 9 | 10 | Map toJson() => { 11 | 'href': href, 12 | }; 13 | } 14 | -------------------------------------------------------------------------------- /lib/common/models/woo/continents_model/collection.dart: -------------------------------------------------------------------------------- 1 | class Collection { 2 | String? href; 3 | 4 | Collection({this.href}); 5 | 6 | factory Collection.fromJson(Map json) => Collection( 7 | href: json['href'] as String?, 8 | ); 9 | 10 | Map toJson() => { 11 | 'href': href, 12 | }; 13 | } 14 | -------------------------------------------------------------------------------- /lib/common/models/woo/user_profile_model/collection.dart: -------------------------------------------------------------------------------- 1 | class Collection { 2 | String? href; 3 | 4 | Collection({this.href}); 5 | 6 | factory Collection.fromJson(Map json) => Collection( 7 | href: json['href'] as String?, 8 | ); 9 | 10 | Map toJson() => { 11 | 'href': href, 12 | }; 13 | } 14 | -------------------------------------------------------------------------------- /assets/svgs/i-close.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /windows/.gitignore: -------------------------------------------------------------------------------- 1 | flutter/ephemeral/ 2 | 3 | # Visual Studio user-specific files. 4 | *.suo 5 | *.user 6 | *.userosscache 7 | *.sln.docstates 8 | 9 | # Visual Studio build-related files. 10 | x64/ 11 | x86/ 12 | 13 | # Visual Studio cache files 14 | # files ending in .cache can be ignored 15 | *.[Cc]ache 16 | # but keep track of directories ending in .cache 17 | !*.[Cc]ache/ 18 | -------------------------------------------------------------------------------- /lib/common/models/user_token_model.dart: -------------------------------------------------------------------------------- 1 | class UserTokenModel { 2 | String? token; 3 | 4 | UserTokenModel({this.token}); 5 | 6 | factory UserTokenModel.fromJson(Map json) { 7 | return UserTokenModel( 8 | token: json['token'] as String?, 9 | ); 10 | } 11 | 12 | Map toJson() => { 13 | 'token': token, 14 | }; 15 | } 16 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /lib/common/index.dart: -------------------------------------------------------------------------------- 1 | library common; 2 | 3 | export 'api/index.dart'; 4 | export 'components/index.dart'; 5 | export 'extension/index.dart'; 6 | export 'i18n/index.dart'; 7 | export 'models/index.dart'; 8 | export 'routers/index.dart'; 9 | export 'services/index.dart'; 10 | export 'style/index.dart'; 11 | export 'utils/index.dart'; 12 | export 'values/index.dart'; 13 | export 'widgets/index.dart'; 14 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /linux/flutter/generated_plugin_registrant.h: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #ifndef GENERATED_PLUGIN_REGISTRANT_ 8 | #define GENERATED_PLUGIN_REGISTRANT_ 9 | 10 | #include 11 | 12 | // Registers Flutter plugins. 13 | void fl_register_plugins(FlPluginRegistry* registry); 14 | 15 | #endif // GENERATED_PLUGIN_REGISTRANT_ 16 | -------------------------------------------------------------------------------- /windows/flutter/generated_plugin_registrant.h: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #ifndef GENERATED_PLUGIN_REGISTRANT_ 8 | #define GENERATED_PLUGIN_REGISTRANT_ 9 | 10 | #include 11 | 12 | // Registers Flutter plugins. 13 | void RegisterPlugins(flutter::PluginRegistry* registry); 14 | 15 | #endif // GENERATED_PLUGIN_REGISTRANT_ 16 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /lib/common/style/radius.dart: -------------------------------------------------------------------------------- 1 | /// 圆角定义 2 | class AppRadius { 3 | /// 按钮圆角 4 | static double get button => 6; 5 | 6 | /// 按钮 文字填充圆角 7 | static double get buttonTextFilled => 3; 8 | 9 | /// 卡片圆角 10 | static double get card => 10; 11 | 12 | /// sheet圆角 13 | static double get sheet => 20; 14 | 15 | /// 输入框圆角 16 | static double get input => 5; 17 | 18 | /// 图片圆角 19 | static double get image => 6; 20 | } 21 | -------------------------------------------------------------------------------- /macos/Runner/DebugProfile.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.cs.allow-jit 8 | 9 | com.apple.security.network.server 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /lib/common/models/woo/continents_model/state.dart: -------------------------------------------------------------------------------- 1 | class State { 2 | String? code; 3 | String? name; 4 | 5 | State({ 6 | this.code, 7 | this.name, 8 | }); 9 | 10 | factory State.fromJson(Map json) => State( 11 | code: "${json['code']}", 12 | name: "${json['name']}", 13 | ); 14 | 15 | Map toJson() => { 16 | 'code': code, 17 | 'name': name, 18 | }; 19 | } 20 | -------------------------------------------------------------------------------- /assets/svgs/i-add.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "background.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /linux/my_application.h: -------------------------------------------------------------------------------- 1 | #ifndef FLUTTER_MY_APPLICATION_H_ 2 | #define FLUTTER_MY_APPLICATION_H_ 3 | 4 | #include 5 | 6 | G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION, 7 | GtkApplication) 8 | 9 | /** 10 | * my_application_new: 11 | * 12 | * Creates a new Flutter-based application. 13 | * 14 | * Returns: a new #MyApplication. 15 | */ 16 | MyApplication* my_application_new(); 17 | 18 | #endif // FLUTTER_MY_APPLICATION_H_ 19 | -------------------------------------------------------------------------------- /lib/common/utils/validators.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | /// 表单验证 4 | class Validators { 5 | /// Validatorless.password(6, 20, 'password must have between 6 and 20 digits') 6 | static FormFieldValidator password(int min, int max, String m) => 7 | (v) { 8 | if (v?.isEmpty ?? true) return null; 9 | if ((v?.length ?? 0) < min) return m; 10 | if ((v?.length ?? 0) > max) return m; 11 | return null; 12 | }; 13 | } 14 | -------------------------------------------------------------------------------- /macos/Runner/MainFlutterWindow.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | class MainFlutterWindow: NSWindow { 5 | override func awakeFromNib() { 6 | let flutterViewController = FlutterViewController.init() 7 | let windowFrame = self.frame 8 | self.contentViewController = flutterViewController 9 | self.setFrame(windowFrame, display: true) 10 | 11 | RegisterGeneratedPlugins(registry: flutterViewController) 12 | 13 | super.awakeFromNib() 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #import "AppDelegate.h" 2 | #import "GeneratedPluginRegistrant.h" 3 | 4 | @implementation AppDelegate 5 | 6 | - (BOOL)application:(UIApplication *)application 7 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 8 | [GeneratedPluginRegistrant registerWithRegistry:self]; 9 | // Override point for customization after application launch. 10 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 11 | } 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /lib/common/utils/convert.dart: -------------------------------------------------------------------------------- 1 | /// 转换 2 | class Convert { 3 | // 阿里图片尺寸调整 4 | static String aliImageResize( 5 | String url, { 6 | double width = 300, 7 | double? maxHeight, 8 | }) { 9 | var crop = ''; 10 | int _width = width.toInt(); 11 | int? _maxHeight = maxHeight?.toInt(); 12 | 13 | if (maxHeight != null) { 14 | crop = '/crop,h_$_maxHeight,g_center'; 15 | } 16 | return url + '?x-oss-process=image/resize,w_$_width,m_lfit$crop'; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /lib/common/models/woo/order_model/tag.dart: -------------------------------------------------------------------------------- 1 | class Tag { 2 | int? id; 3 | String? name; 4 | String? slug; 5 | 6 | Tag({this.id, this.name, this.slug}); 7 | 8 | factory Tag.fromJson(Map json) => Tag( 9 | id: json['id'] as int?, 10 | name: json['name'] as String?, 11 | slug: json['slug'] as String?, 12 | ); 13 | 14 | Map toJson() => { 15 | 'id': id, 16 | 'name': name, 17 | 'slug': slug, 18 | }; 19 | } 20 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /lib/common/models/woo/product_model/tag.dart: -------------------------------------------------------------------------------- 1 | class Tag { 2 | int? id; 3 | String? name; 4 | String? slug; 5 | 6 | Tag({this.id, this.name, this.slug}); 7 | 8 | factory Tag.fromJson(Map json) => Tag( 9 | id: json['id'] as int?, 10 | name: json['name'] as String?, 11 | slug: json['slug'] as String?, 12 | ); 13 | 14 | Map toJson() => { 15 | 'id': id, 16 | 'name': name, 17 | 'slug': slug, 18 | }; 19 | } 20 | -------------------------------------------------------------------------------- /linux/flutter/generated_plugin_registrant.cc: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #include "generated_plugin_registrant.h" 8 | 9 | #include 10 | 11 | void fl_register_plugins(FlPluginRegistry* registry) { 12 | g_autoptr(FlPluginRegistrar) smart_auth_registrar = 13 | fl_plugin_registry_get_registrar_for_plugin(registry, "SmartAuthPlugin"); 14 | smart_auth_plugin_register_with_registrar(smart_auth_registrar); 15 | } 16 | -------------------------------------------------------------------------------- /windows/runner/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by Runner.rc 4 | // 5 | #define IDI_APP_ICON 101 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 102 12 | #define _APS_NEXT_COMMAND_VALUE 40001 13 | #define _APS_NEXT_CONTROL_VALUE 1001 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /assets/svgs/i-arrow-back.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/common/models/woo/order_model/category.dart: -------------------------------------------------------------------------------- 1 | class Category { 2 | int? id; 3 | String? name; 4 | String? slug; 5 | 6 | Category({this.id, this.name, this.slug}); 7 | 8 | factory Category.fromJson(Map json) => Category( 9 | id: json['id'] as int?, 10 | name: json['name'] as String?, 11 | slug: json['slug'] as String?, 12 | ); 13 | 14 | Map toJson() => { 15 | 'id': id, 16 | 'name': name, 17 | 'slug': slug, 18 | }; 19 | } 20 | -------------------------------------------------------------------------------- /lib/common/style/icon/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class IconController extends GetxController { 4 | IconController(); 5 | 6 | _initData() { 7 | update(["icon"]); 8 | } 9 | 10 | void onTap() {} 11 | 12 | // @override 13 | // void onInit() { 14 | // super.onInit(); 15 | // } 16 | 17 | @override 18 | void onReady() { 19 | super.onReady(); 20 | _initData(); 21 | } 22 | 23 | // @override 24 | // void onClose() { 25 | // super.onClose(); 26 | // } 27 | } 28 | -------------------------------------------------------------------------------- /lib/common/style/text/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class TextController extends GetxController { 4 | TextController(); 5 | 6 | _initData() { 7 | update(["text"]); 8 | } 9 | 10 | void onTap() {} 11 | 12 | // @override 13 | // void onInit() { 14 | // super.onInit(); 15 | // } 16 | 17 | @override 18 | void onReady() { 19 | super.onReady(); 20 | _initData(); 21 | } 22 | 23 | // @override 24 | // void onClose() { 25 | // super.onClose(); 26 | // } 27 | } 28 | -------------------------------------------------------------------------------- /lib/pages/my/theme/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class ThemeController extends GetxController { 4 | ThemeController(); 5 | 6 | _initData() { 7 | update(["theme"]); 8 | } 9 | 10 | void onTap() {} 11 | 12 | // @override 13 | // void onInit() { 14 | // super.onInit(); 15 | // } 16 | 17 | @override 18 | void onReady() { 19 | super.onReady(); 20 | _initData(); 21 | } 22 | 23 | // @override 24 | // void onClose() { 25 | // super.onClose(); 26 | // } 27 | } 28 | -------------------------------------------------------------------------------- /lib/pages/styles/icon/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class IconController extends GetxController { 4 | IconController(); 5 | 6 | _initData() { 7 | update(["icon"]); 8 | } 9 | 10 | void onTap() {} 11 | 12 | // @override 13 | // void onInit() { 14 | // super.onInit(); 15 | // } 16 | 17 | @override 18 | void onReady() { 19 | super.onReady(); 20 | _initData(); 21 | } 22 | 23 | // @override 24 | // void onClose() { 25 | // super.onClose(); 26 | // } 27 | } 28 | -------------------------------------------------------------------------------- /lib/pages/styles/text/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class TextController extends GetxController { 4 | TextController(); 5 | 6 | _initData() { 7 | update(["text"]); 8 | } 9 | 10 | void onTap() {} 11 | 12 | // @override 13 | // void onInit() { 14 | // super.onInit(); 15 | // } 16 | 17 | @override 18 | void onReady() { 19 | super.onReady(); 20 | _initData(); 21 | } 22 | 23 | // @override 24 | // void onClose() { 25 | // super.onClose(); 26 | // } 27 | } 28 | -------------------------------------------------------------------------------- /lib/common/api/coupon.dart: -------------------------------------------------------------------------------- 1 | import '../index.dart'; 2 | 3 | // 优惠券 4 | class CouponApi { 5 | /// 优惠券详情 6 | static Future couponDetail(String code) async { 7 | var res = await WPHttpService.to.get( 8 | '/coupons', 9 | params: { 10 | "code": code, 11 | }, 12 | ); 13 | 14 | List coupons = []; 15 | for (var item in res.data) { 16 | coupons.add(CouponsModel.fromJson(item)); 17 | } 18 | return coupons.isNotEmpty ? coupons.first : null; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /lib/common/models/woo/product_model/category.dart: -------------------------------------------------------------------------------- 1 | class Category { 2 | int? id; 3 | String? name; 4 | String? slug; 5 | 6 | Category({this.id, this.name, this.slug}); 7 | 8 | factory Category.fromJson(Map json) => Category( 9 | id: json['id'] as int?, 10 | name: json['name'] as String?, 11 | slug: json['slug'] as String?, 12 | ); 13 | 14 | Map toJson() => { 15 | 'id': id, 16 | 'name': name, 17 | 'slug': slug, 18 | }; 19 | } 20 | -------------------------------------------------------------------------------- /lib/common/style/image/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class ImageController extends GetxController { 4 | ImageController(); 5 | 6 | _initData() { 7 | update(["image"]); 8 | } 9 | 10 | void onTap() {} 11 | 12 | // @override 13 | // void onInit() { 14 | // super.onInit(); 15 | // } 16 | 17 | @override 18 | void onReady() { 19 | super.onReady(); 20 | _initData(); 21 | } 22 | 23 | // @override 24 | // void onClose() { 25 | // super.onClose(); 26 | // } 27 | } 28 | -------------------------------------------------------------------------------- /lib/common/style/inputs/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class InputsController extends GetxController { 4 | InputsController(); 5 | 6 | _initData() { 7 | update(["inputs"]); 8 | } 9 | 10 | void onTap() {} 11 | 12 | // @override 13 | // void onInit() { 14 | // super.onInit(); 15 | // } 16 | 17 | @override 18 | void onReady() { 19 | super.onReady(); 20 | _initData(); 21 | } 22 | 23 | // @override 24 | // void onClose() { 25 | // super.onClose(); 26 | // } 27 | } 28 | -------------------------------------------------------------------------------- /lib/common/style/other/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class OtherController extends GetxController { 4 | OtherController(); 5 | 6 | _initData() { 7 | update(["other"]); 8 | } 9 | 10 | void onTap() {} 11 | 12 | // @override 13 | // void onInit() { 14 | // super.onInit(); 15 | // } 16 | 17 | @override 18 | void onReady() { 19 | super.onReady(); 20 | _initData(); 21 | } 22 | 23 | // @override 24 | // void onClose() { 25 | // super.onClose(); 26 | // } 27 | } 28 | -------------------------------------------------------------------------------- /lib/pages/styles/image/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class ImageController extends GetxController { 4 | ImageController(); 5 | 6 | _initData() { 7 | update(["image"]); 8 | } 9 | 10 | void onTap() {} 11 | 12 | // @override 13 | // void onInit() { 14 | // super.onInit(); 15 | // } 16 | 17 | @override 18 | void onReady() { 19 | super.onReady(); 20 | _initData(); 21 | } 22 | 23 | // @override 24 | // void onClose() { 25 | // super.onClose(); 26 | // } 27 | } 28 | -------------------------------------------------------------------------------- /lib/pages/styles/other/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class OtherController extends GetxController { 4 | OtherController(); 5 | 6 | _initData() { 7 | update(["other"]); 8 | } 9 | 10 | void onTap() {} 11 | 12 | // @override 13 | // void onInit() { 14 | // super.onInit(); 15 | // } 16 | 17 | @override 18 | void onReady() { 19 | super.onReady(); 20 | _initData(); 21 | } 22 | 23 | // @override 24 | // void onClose() { 25 | // super.onClose(); 26 | // } 27 | } 28 | -------------------------------------------------------------------------------- /assets/svgs/i-like.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/common/models/woo/order_model/meta_datum.dart: -------------------------------------------------------------------------------- 1 | class MetaDatum { 2 | int? id; 3 | String? key; 4 | String? value; 5 | 6 | MetaDatum({this.id, this.key, this.value}); 7 | 8 | factory MetaDatum.fromJson(Map json) => MetaDatum( 9 | id: json['id'] as int?, 10 | key: json['key'] as String?, 11 | value: json['value'] as String?, 12 | ); 13 | 14 | Map toJson() => { 15 | 'id': id, 16 | 'key': key, 17 | 'value': value, 18 | }; 19 | } 20 | -------------------------------------------------------------------------------- /lib/common/models/woo/product_model/meta_datum.dart: -------------------------------------------------------------------------------- 1 | class MetaDatum { 2 | int? id; 3 | String? key; 4 | String? value; 5 | 6 | MetaDatum({this.id, this.key, this.value}); 7 | 8 | factory MetaDatum.fromJson(Map json) => MetaDatum( 9 | id: json['id'] as int?, 10 | key: json['key'] as String?, 11 | value: json['value'] as String?, 12 | ); 13 | 14 | Map toJson() => { 15 | 'id': id, 16 | 'key': key, 17 | 'value': value, 18 | }; 19 | } 20 | -------------------------------------------------------------------------------- /lib/common/style/buttons/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class ButtonsController extends GetxController { 4 | ButtonsController(); 5 | 6 | _initData() { 7 | update(["buttons"]); 8 | } 9 | 10 | void onTap() {} 11 | 12 | // @override 13 | // void onInit() { 14 | // super.onInit(); 15 | // } 16 | 17 | @override 18 | void onReady() { 19 | super.onReady(); 20 | _initData(); 21 | } 22 | 23 | // @override 24 | // void onClose() { 25 | // super.onClose(); 26 | // } 27 | } 28 | -------------------------------------------------------------------------------- /lib/pages/cart/buy_done/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class BuyDoneController extends GetxController { 4 | BuyDoneController(); 5 | 6 | _initData() { 7 | update(["buy_done"]); 8 | } 9 | 10 | void onTap() {} 11 | 12 | // @override 13 | // void onInit() { 14 | // super.onInit(); 15 | // } 16 | 17 | @override 18 | void onReady() { 19 | super.onReady(); 20 | _initData(); 21 | } 22 | 23 | // @override 24 | // void onClose() { 25 | // super.onClose(); 26 | // } 27 | } 28 | -------------------------------------------------------------------------------- /lib/pages/my/language/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class LanguageController extends GetxController { 4 | LanguageController(); 5 | 6 | _initData() { 7 | update(["language"]); 8 | } 9 | 10 | void onTap() {} 11 | 12 | // @override 13 | // void onInit() { 14 | // super.onInit(); 15 | // } 16 | 17 | @override 18 | void onReady() { 19 | super.onReady(); 20 | _initData(); 21 | } 22 | 23 | // @override 24 | // void onClose() { 25 | // super.onClose(); 26 | // } 27 | } 28 | -------------------------------------------------------------------------------- /lib/pages/styles/buttons/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class ButtonsController extends GetxController { 4 | ButtonsController(); 5 | 6 | _initData() { 7 | update(["buttons"]); 8 | } 9 | 10 | void onTap() {} 11 | 12 | // @override 13 | // void onInit() { 14 | // super.onInit(); 15 | // } 16 | 17 | @override 18 | void onReady() { 19 | super.onReady(); 20 | _initData(); 21 | } 22 | 23 | // @override 24 | // void onClose() { 25 | // super.onClose(); 26 | // } 27 | } 28 | -------------------------------------------------------------------------------- /lib/common/models/woo/user_profile_model/meta_datum.dart: -------------------------------------------------------------------------------- 1 | class MetaDatum { 2 | int? id; 3 | String? key; 4 | String? value; 5 | 6 | MetaDatum({this.id, this.key, this.value}); 7 | 8 | factory MetaDatum.fromJson(Map json) => MetaDatum( 9 | id: json['id'] as int?, 10 | key: json['key'] as String?, 11 | value: json['value'] as String?, 12 | ); 13 | 14 | Map toJson() => { 15 | 'id': id, 16 | 'key': key, 17 | 'value': value, 18 | }; 19 | } 20 | -------------------------------------------------------------------------------- /lib/common/style/carousel/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class CarouselController extends GetxController { 4 | CarouselController(); 5 | 6 | _initData() { 7 | update(["carousel"]); 8 | } 9 | 10 | void onTap() {} 11 | 12 | // @override 13 | // void onInit() { 14 | // super.onInit(); 15 | // } 16 | 17 | @override 18 | void onReady() { 19 | super.onReady(); 20 | _initData(); 21 | } 22 | 23 | // @override 24 | // void onClose() { 25 | // super.onClose(); 26 | // } 27 | } 28 | -------------------------------------------------------------------------------- /lib/common/style/text_form/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class TextFormController extends GetxController { 4 | TextFormController(); 5 | 6 | _initData() { 7 | update(["text_form"]); 8 | } 9 | 10 | void onTap() {} 11 | 12 | // @override 13 | // void onInit() { 14 | // super.onInit(); 15 | // } 16 | 17 | @override 18 | void onReady() { 19 | super.onReady(); 20 | _initData(); 21 | } 22 | 23 | // @override 24 | // void onClose() { 25 | // super.onClose(); 26 | // } 27 | } 28 | -------------------------------------------------------------------------------- /lib/pages/msg/msg_index/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class MsgIndexController extends GetxController { 4 | MsgIndexController(); 5 | 6 | _initData() { 7 | update(["msg_index"]); 8 | } 9 | 10 | void onTap() {} 11 | 12 | // @override 13 | // void onInit() { 14 | // super.onInit(); 15 | // } 16 | 17 | @override 18 | void onReady() { 19 | super.onReady(); 20 | _initData(); 21 | } 22 | 23 | // @override 24 | // void onClose() { 25 | // super.onClose(); 26 | // } 27 | } 28 | -------------------------------------------------------------------------------- /lib/pages/styles/carousel/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class CarouselController extends GetxController { 4 | CarouselController(); 5 | 6 | _initData() { 7 | update(["carousel"]); 8 | } 9 | 10 | void onTap() {} 11 | 12 | // @override 13 | // void onInit() { 14 | // super.onInit(); 15 | // } 16 | 17 | @override 18 | void onReady() { 19 | super.onReady(); 20 | _initData(); 21 | } 22 | 23 | // @override 24 | // void onClose() { 25 | // super.onClose(); 26 | // } 27 | } 28 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "LaunchImage.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "LaunchImage@2x.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "LaunchImage@3x.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /lib/common/style/group_list/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class GroupListController extends GetxController { 4 | GroupListController(); 5 | 6 | _initData() { 7 | update(["group_list"]); 8 | } 9 | 10 | void onTap() {} 11 | 12 | // @override 13 | // void onInit() { 14 | // super.onInit(); 15 | // } 16 | 17 | @override 18 | void onReady() { 19 | super.onReady(); 20 | _initData(); 21 | } 22 | 23 | // @override 24 | // void onClose() { 25 | // super.onClose(); 26 | // } 27 | } 28 | -------------------------------------------------------------------------------- /lib/pages/styles/group_list/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class GroupListController extends GetxController { 4 | GroupListController(); 5 | 6 | _initData() { 7 | update(["group_list"]); 8 | } 9 | 10 | void onTap() {} 11 | 12 | // @override 13 | // void onInit() { 14 | // super.onInit(); 15 | // } 16 | 17 | @override 18 | void onReady() { 19 | super.onReady(); 20 | _initData(); 21 | } 22 | 23 | // @override 24 | // void onClose() { 25 | // super.onClose(); 26 | // } 27 | } 28 | -------------------------------------------------------------------------------- /assets/svgs/i-arrow-right.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/common/style/components/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class ComponentsController extends GetxController { 4 | ComponentsController(); 5 | 6 | _initData() { 7 | update(["components"]); 8 | } 9 | 10 | void onTap() {} 11 | 12 | // @override 13 | // void onInit() { 14 | // super.onInit(); 15 | // } 16 | 17 | @override 18 | void onReady() { 19 | super.onReady(); 20 | _initData(); 21 | } 22 | 23 | // @override 24 | // void onClose() { 25 | // super.onClose(); 26 | // } 27 | } 28 | -------------------------------------------------------------------------------- /lib/pages/styles/components/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class ComponentsController extends GetxController { 4 | ComponentsController(); 5 | 6 | _initData() { 7 | update(["components"]); 8 | } 9 | 10 | void onTap() {} 11 | 12 | // @override 13 | // void onInit() { 14 | // super.onInit(); 15 | // } 16 | 17 | @override 18 | void onReady() { 19 | super.onReady(); 20 | _initData(); 21 | } 22 | 23 | // @override 24 | // void onClose() { 25 | // super.onClose(); 26 | // } 27 | } 28 | -------------------------------------------------------------------------------- /lib/pages/system/login_quick/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class LoginQuickController extends GetxController { 4 | LoginQuickController(); 5 | 6 | _initData() { 7 | update(["login_quick"]); 8 | } 9 | 10 | void onTap() {} 11 | 12 | // @override 13 | // void onInit() { 14 | // super.onInit(); 15 | // } 16 | 17 | @override 18 | void onReady() { 19 | super.onReady(); 20 | _initData(); 21 | } 22 | 23 | // @override 24 | // void onClose() { 25 | // super.onClose(); 26 | // } 27 | } 28 | -------------------------------------------------------------------------------- /lib/common/style/bottom_sheet/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class BottomSheetController extends GetxController { 4 | BottomSheetController(); 5 | 6 | _initData() { 7 | update(["bottom_sheet"]); 8 | } 9 | 10 | void onTap() {} 11 | 12 | // @override 13 | // void onInit() { 14 | // super.onInit(); 15 | // } 16 | 17 | @override 18 | void onReady() { 19 | super.onReady(); 20 | _initData(); 21 | } 22 | 23 | // @override 24 | // void onClose() { 25 | // super.onClose(); 26 | // } 27 | } 28 | -------------------------------------------------------------------------------- /lib/pages/styles/bottom_sheet/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class BottomSheetController extends GetxController { 4 | BottomSheetController(); 5 | 6 | _initData() { 7 | update(["bottom_sheet"]); 8 | } 9 | 10 | void onTap() {} 11 | 12 | // @override 13 | // void onInit() { 14 | // super.onInit(); 15 | // } 16 | 17 | @override 18 | void onReady() { 19 | super.onReady(); 20 | _initData(); 21 | } 22 | 23 | // @override 24 | // void onClose() { 25 | // super.onClose(); 26 | // } 27 | } 28 | -------------------------------------------------------------------------------- /assets/svgs/p-notifications.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/pages/system/user_agreement/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class UserAgreementController extends GetxController { 4 | UserAgreementController(); 5 | 6 | _initData() { 7 | update(["user_agreement"]); 8 | } 9 | 10 | void onTap() {} 11 | 12 | // @override 13 | // void onInit() { 14 | // super.onInit(); 15 | // } 16 | 17 | @override 18 | void onReady() { 19 | super.onReady(); 20 | _initData(); 21 | } 22 | 23 | // @override 24 | // void onClose() { 25 | // super.onClose(); 26 | // } 27 | } 28 | -------------------------------------------------------------------------------- /assets/svgs/i-arrow-bottom.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/common/models/kv.dart: -------------------------------------------------------------------------------- 1 | /// key value 键值对 2 | class KeyValueModel { 3 | String key; 4 | T value; 5 | 6 | KeyValueModel({required this.key, required this.value}); 7 | 8 | factory KeyValueModel.fromJson(Map json) { 9 | return KeyValueModel( 10 | key: json['key'] as String, 11 | value: json['value'] as T, 12 | ); 13 | } 14 | 15 | Map toJson() => { 16 | 'key': key, 17 | 'value': value, 18 | }; 19 | 20 | @override 21 | String toString() { 22 | return "$value"; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /assets/svgs/i-indicators.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/common/components/placeholder.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import '../index.dart'; 4 | 5 | /// 占位图组件 6 | class PlaceholdWidget extends StatelessWidget { 7 | // 资源图片地址 8 | final String? assetImagePath; 9 | 10 | const PlaceholdWidget({ 11 | Key? key, 12 | this.assetImagePath, 13 | }) : super(key: key); 14 | 15 | @override 16 | Widget build(BuildContext context) { 17 | return ImageWidget.asset(assetImagePath ?? AssetsImages.homePlaceholderPng) 18 | .paddingHorizontal(AppSpace.page) 19 | .center(); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /lib/common/models/woo/order_model/dimensions.dart: -------------------------------------------------------------------------------- 1 | class Dimensions { 2 | String? length; 3 | String? width; 4 | String? height; 5 | 6 | Dimensions({this.length, this.width, this.height}); 7 | 8 | factory Dimensions.fromJson(Map json) => Dimensions( 9 | length: json['length'] as String?, 10 | width: json['width'] as String?, 11 | height: json['height'] as String?, 12 | ); 13 | 14 | Map toJson() => { 15 | 'length': length, 16 | 'width': width, 17 | 'height': height, 18 | }; 19 | } 20 | -------------------------------------------------------------------------------- /lib/common/models/woo/product_model/dimensions.dart: -------------------------------------------------------------------------------- 1 | class Dimensions { 2 | String? length; 3 | String? width; 4 | String? height; 5 | 6 | Dimensions({this.length, this.width, this.height}); 7 | 8 | factory Dimensions.fromJson(Map json) => Dimensions( 9 | length: json['length'] as String?, 10 | width: json['width'] as String?, 11 | height: json['height'] as String?, 12 | ); 13 | 14 | Map toJson() => { 15 | 'length': length, 16 | 'width': width, 17 | 'height': height, 18 | }; 19 | } 20 | -------------------------------------------------------------------------------- /lib/pages/system/main/binding.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_woo_commerce_getx_learn/pages/index.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | /// 主界面依赖 5 | class MainBinding implements Bindings { 6 | @override 7 | void dependencies() { 8 | Get.lazyPut(() => HomeController()); 9 | Get.lazyPut(() => CartIndexController()); 10 | Get.lazyPut(() => MsgIndexController()); 11 | Get.lazyPut(() => MyIndexController()); 12 | Get.lazyPut(() => MainController()); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /lib/common/components/index.dart: -------------------------------------------------------------------------------- 1 | library components; 2 | 3 | export 'welcome_slider.dart'; 4 | export 'slider_indicator.dart'; 5 | export 'page_title.dart'; 6 | export 'pin.dart'; 7 | export 'carousel.dart'; 8 | export 'category_item.dart'; 9 | export 'product_item.dart'; 10 | export 'refresher.dart'; 11 | export 'placeholder.dart'; 12 | export 'appbar.dart'; 13 | export 'gallery.dart'; 14 | export 'colors_list.dart'; 15 | export 'tags_list.dart'; 16 | export 'stars_list.dart'; 17 | export 'dropdown.dart'; 18 | export 'price_range.dart'; 19 | export 'quantity.dart'; 20 | export 'steps.dart'; 21 | -------------------------------------------------------------------------------- /lib/common/models/welcome_model.dart: -------------------------------------------------------------------------------- 1 | /// 欢迎数据 Model 2 | class WelcomeModel { 3 | /// 图片url 4 | String? image; 5 | 6 | /// 标题 7 | String? title; 8 | 9 | /// 说明 10 | String? desc; 11 | 12 | WelcomeModel({this.image, this.title, this.desc}); 13 | 14 | WelcomeModel.fromJson(dynamic json) { 15 | image = json["image"]; 16 | title = json["title"]; 17 | desc = json["desc"]; 18 | } 19 | 20 | Map toJson() { 21 | var map = {}; 22 | map["image"] = image; 23 | map["title"] = title; 24 | map["desc"] = desc; 25 | return map; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /windows/flutter/generated_plugin_registrant.cc: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #include "generated_plugin_registrant.h" 8 | 9 | #include 10 | #include 11 | 12 | void RegisterPlugins(flutter::PluginRegistry* registry) { 13 | PermissionHandlerWindowsPluginRegisterWithRegistrar( 14 | registry->GetRegistrarForPlugin("PermissionHandlerWindowsPlugin")); 15 | SmartAuthPluginRegisterWithRegistrar( 16 | registry->GetRegistrarForPlugin("SmartAuthPlugin")); 17 | } 18 | -------------------------------------------------------------------------------- /lib/pages/styles/inputs/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class InputsController extends GetxController { 4 | InputsController(); 5 | 6 | bool checkVal = true; 7 | 8 | _initData() { 9 | update(["inputs"]); 10 | } 11 | 12 | void onCheckBox(bool val) { 13 | checkVal = val; 14 | update(["inputs"]); 15 | } 16 | 17 | // @override 18 | // void onInit() { 19 | // super.onInit(); 20 | // } 21 | 22 | @override 23 | void onReady() { 24 | super.onReady(); 25 | _initData(); 26 | } 27 | 28 | // @override 29 | // void onClose() { 30 | // super.onClose(); 31 | // } 32 | } 33 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # flutter_woo_commerce_getx_learn 2 | 3 | A new Flutter project. 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Flutter application. 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) 13 | 14 | For help getting started with Flutter development, view the 15 | [online documentation](https://docs.flutter.dev/), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | -------------------------------------------------------------------------------- /assets/svgs/i-arrow-left-up.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/svgs/i-search.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/common/models/error_message_model.dart: -------------------------------------------------------------------------------- 1 | /// 错误体信息 2 | class ErrorMessageModel { 3 | int? statusCode; 4 | String? error; 5 | String? message; 6 | 7 | ErrorMessageModel({this.statusCode, this.error, this.message}); 8 | 9 | factory ErrorMessageModel.fromJson(Map json) { 10 | return ErrorMessageModel( 11 | statusCode: json['statusCode'] as int?, 12 | error: json['error'] as String?, 13 | message: json['message'] as String?, 14 | ); 15 | } 16 | 17 | Map toJson() => { 18 | 'statusCode': statusCode, 19 | 'error': error, 20 | 'message': message, 21 | }; 22 | } 23 | -------------------------------------------------------------------------------- /macos/Runner/Configs/Warnings.xcconfig: -------------------------------------------------------------------------------- 1 | WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings 2 | GCC_WARN_UNDECLARED_SELECTOR = YES 3 | CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES 4 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE 5 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES 6 | CLANG_WARN_PRAGMA_PACK = YES 7 | CLANG_WARN_STRICT_PROTOTYPES = YES 8 | CLANG_WARN_COMMA = YES 9 | GCC_WARN_STRICT_SELECTOR_MATCH = YES 10 | CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES 11 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES 12 | GCC_WARN_SHADOW = YES 13 | CLANG_WARN_UNREACHABLE_CODE = YES 14 | -------------------------------------------------------------------------------- /lib/common/extension/ex_icon.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | /// 扩展 Icon 4 | extension ExIcon on T { 5 | T copyWith({ 6 | double? size, 7 | Color? color, 8 | String? semanticLabel, 9 | TextDirection? textDirection, 10 | }) => 11 | Icon( 12 | icon, 13 | color: color ?? this.color, 14 | size: size ?? this.size, 15 | semanticLabel: semanticLabel ?? this.semanticLabel, 16 | textDirection: textDirection ?? this.textDirection, 17 | ) as T; 18 | 19 | /// 尺寸 20 | T iconSize(double size) => copyWith(size: size); 21 | 22 | /// 颜色 23 | T iconColor(Color color) => copyWith(color: color); 24 | } 25 | -------------------------------------------------------------------------------- /lib/pages/my/order_details/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_woo_commerce_getx_learn/common/index.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | class OrderDetailsController extends GetxController { 5 | OrderDetailsController(); 6 | 7 | // 订单详情 8 | final OrderModel order = Get.arguments as OrderModel; 9 | 10 | _initData() { 11 | update(["order_details"]); 12 | } 13 | 14 | void onTap() {} 15 | 16 | // @override 17 | // void onInit() { 18 | // super.onInit(); 19 | // } 20 | 21 | @override 22 | void onReady() { 23 | super.onReady(); 24 | _initData(); 25 | } 26 | 27 | // @override 28 | // void onClose() { 29 | // super.onClose(); 30 | // } 31 | } 32 | -------------------------------------------------------------------------------- /lib/pages/cart/apply_promo_code/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | class ApplyPromoCodeController extends GetxController { 5 | ApplyPromoCodeController(); 6 | 7 | // 优惠券控制器 8 | TextEditingController couponController = TextEditingController(); 9 | 10 | _initData() { 11 | update(["apply_promo_code"]); 12 | } 13 | 14 | void onTap() {} 15 | 16 | // @override 17 | // void onInit() { 18 | // super.onInit(); 19 | // } 20 | 21 | @override 22 | void onReady() { 23 | super.onReady(); 24 | _initData(); 25 | } 26 | 27 | @override 28 | void onClose() { 29 | super.onClose(); 30 | couponController.dispose(); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.6.10' 3 | repositories { 4 | google() 5 | mavenCentral() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:7.1.2' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | mavenCentral() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /assets/svgs/i-add-friend.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/svgs/facebook.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /macos/Runner/Configs/AppInfo.xcconfig: -------------------------------------------------------------------------------- 1 | // Application-level settings for the Runner target. 2 | // 3 | // This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the 4 | // future. If not, the values below would default to using the project name when this becomes a 5 | // 'flutter create' template. 6 | 7 | // The application's name. By default this is also the title of the Flutter window. 8 | PRODUCT_NAME = flutter_woo_commerce_getx_learn 9 | 10 | // The application's bundle identifier 11 | PRODUCT_BUNDLE_IDENTIFIER = com.ducafecat.woocommerce.flutterWooCommerceGetxLearn 12 | 13 | // The copyright displayed in application information 14 | PRODUCT_COPYRIGHT = Copyright © 2022 com.ducafecat.woo_commerce. All rights reserved. 15 | -------------------------------------------------------------------------------- /windows/runner/utils.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_UTILS_H_ 2 | #define RUNNER_UTILS_H_ 3 | 4 | #include 5 | #include 6 | 7 | // Creates a console for the process, and redirects stdout and stderr to 8 | // it for both the runner and the Flutter library. 9 | void CreateAndAttachConsole(); 10 | 11 | // Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string 12 | // encoded in UTF-8. Returns an empty std::string on failure. 13 | std::string Utf8FromUtf16(const wchar_t* utf16_string); 14 | 15 | // Gets the command line arguments passed in as a std::vector, 16 | // encoded in UTF-8. Returns an empty std::vector on failure. 17 | std::vector GetCommandLineArguments(); 18 | 19 | #endif // RUNNER_UTILS_H_ 20 | -------------------------------------------------------------------------------- /lib/common/utils/encrypt.dart: -------------------------------------------------------------------------------- 1 | import 'package:encrypt/encrypt.dart'; 2 | import 'package:flutter_woo_commerce_getx_learn/common/index.dart'; 3 | 4 | /// 加密类 5 | class EncryptUtil { 6 | static final EncryptUtil _instance = EncryptUtil._internal(); 7 | 8 | factory EncryptUtil() => _instance; 9 | 10 | EncryptUtil._internal() { 11 | encrypter = Encrypter(AES( 12 | key, 13 | mode: AESMode.cbc, 14 | padding: 'PKCS7', 15 | )); 16 | } 17 | 18 | final key = Key.fromUtf8(Constants.aesKey); 19 | final iv = IV.fromUtf8(Constants.aesIV); 20 | late Encrypter encrypter; 21 | 22 | /// aes加密 23 | String aesEncode(String content) { 24 | final encrypted = encrypter.encrypt(content, iv: iv); 25 | return encrypted.base64; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /assets/svgs/i-notifications.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/common/style/icon/view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | import 'index.dart'; 5 | 6 | class IconPage extends GetView { 7 | const IconPage({Key? key}) : super(key: key); 8 | 9 | // 主视图 10 | Widget _buildView() { 11 | return const Center( 12 | child: Text("IconPage"), 13 | ); 14 | } 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return GetBuilder( 19 | init: IconController(), 20 | id: "icon", 21 | builder: (_) { 22 | return Scaffold( 23 | appBar: AppBar(title: const Text("icon")), 24 | body: SafeArea( 25 | child: _buildView(), 26 | ), 27 | ); 28 | }, 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/common/style/text/view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | import 'index.dart'; 5 | 6 | class TextPage extends GetView { 7 | const TextPage({Key? key}) : super(key: key); 8 | 9 | // 主视图 10 | Widget _buildView() { 11 | return const Center( 12 | child: Text("TextPage"), 13 | ); 14 | } 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return GetBuilder( 19 | init: TextController(), 20 | id: "text", 21 | builder: (_) { 22 | return Scaffold( 23 | appBar: AppBar(title: const Text("text")), 24 | body: SafeArea( 25 | child: _buildView(), 26 | ), 27 | ); 28 | }, 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/pages/my/theme/view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | import 'index.dart'; 5 | 6 | class ThemePage extends GetView { 7 | const ThemePage({Key? key}) : super(key: key); 8 | 9 | // 主视图 10 | Widget _buildView() { 11 | return const Center( 12 | child: Text("ThemePage"), 13 | ); 14 | } 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return GetBuilder( 19 | init: ThemeController(), 20 | id: "theme", 21 | builder: (_) { 22 | return Scaffold( 23 | appBar: AppBar(title: const Text("theme")), 24 | body: SafeArea( 25 | child: _buildView(), 26 | ), 27 | ); 28 | }, 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/common/style/image/view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | import 'index.dart'; 5 | 6 | class ImagePage extends GetView { 7 | const ImagePage({Key? key}) : super(key: key); 8 | 9 | // 主视图 10 | Widget _buildView() { 11 | return const Center( 12 | child: Text("ImagePage"), 13 | ); 14 | } 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return GetBuilder( 19 | init: ImageController(), 20 | id: "image", 21 | builder: (_) { 22 | return Scaffold( 23 | appBar: AppBar(title: const Text("image")), 24 | body: SafeArea( 25 | child: _buildView(), 26 | ), 27 | ); 28 | }, 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/common/style/other/view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | import 'index.dart'; 5 | 6 | class OtherPage extends GetView { 7 | const OtherPage({Key? key}) : super(key: key); 8 | 9 | // 主视图 10 | Widget _buildView() { 11 | return const Center( 12 | child: Text("OtherPage"), 13 | ); 14 | } 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return GetBuilder( 19 | init: OtherController(), 20 | id: "other", 21 | builder: (_) { 22 | return Scaffold( 23 | appBar: AppBar(title: const Text("other")), 24 | body: SafeArea( 25 | child: _buildView(), 26 | ), 27 | ); 28 | }, 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/pages/styles/other/view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | import 'index.dart'; 5 | 6 | class OtherPage extends GetView { 7 | const OtherPage({Key? key}) : super(key: key); 8 | 9 | // 主视图 10 | Widget _buildView() { 11 | return const Center( 12 | child: Text("OtherPage"), 13 | ); 14 | } 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return GetBuilder( 19 | init: OtherController(), 20 | id: "other", 21 | builder: (_) { 22 | return Scaffold( 23 | appBar: AppBar(title: const Text("other")), 24 | body: SafeArea( 25 | child: _buildView(), 26 | ), 27 | ); 28 | }, 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/common/style/inputs/view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | import 'index.dart'; 5 | 6 | class InputsPage extends GetView { 7 | const InputsPage({Key? key}) : super(key: key); 8 | 9 | // 主视图 10 | Widget _buildView() { 11 | return const Center( 12 | child: Text("InputsPage"), 13 | ); 14 | } 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return GetBuilder( 19 | init: InputsController(), 20 | id: "inputs", 21 | builder: (_) { 22 | return Scaffold( 23 | appBar: AppBar(title: const Text("inputs")), 24 | body: SafeArea( 25 | child: _buildView(), 26 | ), 27 | ); 28 | }, 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/common/models/woo/order_model/links.dart: -------------------------------------------------------------------------------- 1 | import 'collection.dart'; 2 | import 'self.dart'; 3 | 4 | class Links { 5 | List? self; 6 | List? collection; 7 | 8 | Links({this.self, this.collection}); 9 | 10 | factory Links.fromJson(Map json) => Links( 11 | self: (json['self'] as List?) 12 | ?.map((e) => Self.fromJson(e as Map)) 13 | .toList(), 14 | collection: (json['collection'] as List?) 15 | ?.map((e) => Collection.fromJson(e as Map)) 16 | .toList(), 17 | ); 18 | 19 | Map toJson() => { 20 | 'self': self?.map((e) => e.toJson()).toList(), 21 | 'collection': collection?.map((e) => e.toJson()).toList(), 22 | }; 23 | } 24 | -------------------------------------------------------------------------------- /lib/common/models/woo/tags_model/links.dart: -------------------------------------------------------------------------------- 1 | import 'collection.dart'; 2 | import 'self.dart'; 3 | 4 | class Links { 5 | List? self; 6 | List? collection; 7 | 8 | Links({this.self, this.collection}); 9 | 10 | factory Links.fromJson(Map json) => Links( 11 | self: (json['self'] as List?) 12 | ?.map((e) => Self.fromJson(e as Map)) 13 | .toList(), 14 | collection: (json['collection'] as List?) 15 | ?.map((e) => Collection.fromJson(e as Map)) 16 | .toList(), 17 | ); 18 | 19 | Map toJson() => { 20 | 'self': self?.map((e) => e.toJson()).toList(), 21 | 'collection': collection?.map((e) => e.toJson()).toList(), 22 | }; 23 | } 24 | -------------------------------------------------------------------------------- /lib/common/models/woo/attribute_model/links.dart: -------------------------------------------------------------------------------- 1 | import 'collection.dart'; 2 | import 'self.dart'; 3 | 4 | class Links { 5 | List? self; 6 | List? collection; 7 | 8 | Links({this.self, this.collection}); 9 | 10 | factory Links.fromJson(Map json) => Links( 11 | self: (json['self'] as List?) 12 | ?.map((e) => Self.fromJson(e as Map)) 13 | .toList(), 14 | collection: (json['collection'] as List?) 15 | ?.map((e) => Collection.fromJson(e as Map)) 16 | .toList(), 17 | ); 18 | 19 | Map toJson() => { 20 | 'self': self?.map((e) => e.toJson()).toList(), 21 | 'collection': collection?.map((e) => e.toJson()).toList(), 22 | }; 23 | } 24 | -------------------------------------------------------------------------------- /lib/common/models/woo/category_model/links.dart: -------------------------------------------------------------------------------- 1 | import 'collection.dart'; 2 | import 'self.dart'; 3 | 4 | class Links { 5 | List? self; 6 | List? collection; 7 | 8 | Links({this.self, this.collection}); 9 | 10 | factory Links.fromJson(Map json) => Links( 11 | self: (json['self'] as List?) 12 | ?.map((e) => Self.fromJson(e as Map)) 13 | .toList(), 14 | collection: (json['collection'] as List?) 15 | ?.map((e) => Collection.fromJson(e as Map)) 16 | .toList(), 17 | ); 18 | 19 | Map toJson() => { 20 | 'self': self?.map((e) => e.toJson()).toList(), 21 | 'collection': collection?.map((e) => e.toJson()).toList(), 22 | }; 23 | } 24 | -------------------------------------------------------------------------------- /lib/common/models/woo/continents_model/links.dart: -------------------------------------------------------------------------------- 1 | import 'collection.dart'; 2 | import 'self.dart'; 3 | 4 | class Links { 5 | List? self; 6 | List? collection; 7 | 8 | Links({this.self, this.collection}); 9 | 10 | factory Links.fromJson(Map json) => Links( 11 | self: (json['self'] as List?) 12 | ?.map((e) => Self.fromJson(e as Map)) 13 | .toList(), 14 | collection: (json['collection'] as List?) 15 | ?.map((e) => Collection.fromJson(e as Map)) 16 | .toList(), 17 | ); 18 | 19 | Map toJson() => { 20 | 'self': self?.map((e) => e.toJson()).toList(), 21 | 'collection': collection?.map((e) => e.toJson()).toList(), 22 | }; 23 | } 24 | -------------------------------------------------------------------------------- /lib/common/models/woo/coupons_model/links.dart: -------------------------------------------------------------------------------- 1 | import 'collection.dart'; 2 | import 'self.dart'; 3 | 4 | class Links { 5 | List? self; 6 | List? collection; 7 | 8 | Links({this.self, this.collection}); 9 | 10 | factory Links.fromJson(Map json) => Links( 11 | self: (json['self'] as List?) 12 | ?.map((e) => Self.fromJson(e as Map)) 13 | .toList(), 14 | collection: (json['collection'] as List?) 15 | ?.map((e) => Collection.fromJson(e as Map)) 16 | .toList(), 17 | ); 18 | 19 | Map toJson() => { 20 | 'self': self?.map((e) => e.toJson()).toList(), 21 | 'collection': collection?.map((e) => e.toJson()).toList(), 22 | }; 23 | } 24 | -------------------------------------------------------------------------------- /lib/common/models/woo/product_model/links.dart: -------------------------------------------------------------------------------- 1 | import 'collection.dart'; 2 | import 'self.dart'; 3 | 4 | class Links { 5 | List? self; 6 | List? collection; 7 | 8 | Links({this.self, this.collection}); 9 | 10 | factory Links.fromJson(Map json) => Links( 11 | self: (json['self'] as List?) 12 | ?.map((e) => Self.fromJson(e as Map)) 13 | .toList(), 14 | collection: (json['collection'] as List?) 15 | ?.map((e) => Collection.fromJson(e as Map)) 16 | .toList(), 17 | ); 18 | 19 | Map toJson() => { 20 | 'self': self?.map((e) => e.toJson()).toList(), 21 | 'collection': collection?.map((e) => e.toJson()).toList(), 22 | }; 23 | } 24 | -------------------------------------------------------------------------------- /lib/common/style/buttons/view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | import 'index.dart'; 5 | 6 | class ButtonsPage extends GetView { 7 | const ButtonsPage({Key? key}) : super(key: key); 8 | 9 | // 主视图 10 | Widget _buildView() { 11 | return const Center( 12 | child: Text("ButtonsPage"), 13 | ); 14 | } 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return GetBuilder( 19 | init: ButtonsController(), 20 | id: "buttons", 21 | builder: (_) { 22 | return Scaffold( 23 | appBar: AppBar(title: const Text("buttons")), 24 | body: SafeArea( 25 | child: _buildView(), 26 | ), 27 | ); 28 | }, 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/common/models/woo/user_profile_model/links.dart: -------------------------------------------------------------------------------- 1 | import 'collection.dart'; 2 | import 'self.dart'; 3 | 4 | class Links { 5 | List? self; 6 | List? collection; 7 | 8 | Links({this.self, this.collection}); 9 | 10 | factory Links.fromJson(Map json) => Links( 11 | self: (json['self'] as List?) 12 | ?.map((e) => Self.fromJson(e as Map)) 13 | .toList(), 14 | collection: (json['collection'] as List?) 15 | ?.map((e) => Collection.fromJson(e as Map)) 16 | .toList(), 17 | ); 18 | 19 | Map toJson() => { 20 | 'self': self?.map((e) => e.toJson()).toList(), 21 | 'collection': collection?.map((e) => e.toJson()).toList(), 22 | }; 23 | } 24 | -------------------------------------------------------------------------------- /lib/common/style/carousel/view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | import 'index.dart'; 5 | 6 | class CarouselPage extends GetView { 7 | const CarouselPage({Key? key}) : super(key: key); 8 | 9 | // 主视图 10 | Widget _buildView() { 11 | return const Center( 12 | child: Text("CarouselPage"), 13 | ); 14 | } 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return GetBuilder( 19 | init: CarouselController(), 20 | id: "carousel", 21 | builder: (_) { 22 | return Scaffold( 23 | appBar: AppBar(title: const Text("carousel")), 24 | body: SafeArea( 25 | child: _buildView(), 26 | ), 27 | ); 28 | }, 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/pages/msg/msg_index/view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | import 'index.dart'; 5 | 6 | class MsgIndexPage extends GetView { 7 | const MsgIndexPage({Key? key}) : super(key: key); 8 | 9 | // 主视图 10 | Widget _buildView() { 11 | return const Center( 12 | child: Text("MsgIndexPage"), 13 | ); 14 | } 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return GetBuilder( 19 | init: MsgIndexController(), 20 | id: "msg_index", 21 | builder: (_) { 22 | return Scaffold( 23 | appBar: AppBar(title: const Text("msg_index")), 24 | body: SafeArea( 25 | child: _buildView(), 26 | ), 27 | ); 28 | }, 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/pages/my/language/view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | import 'index.dart'; 5 | 6 | class LanguagePage extends GetView { 7 | const LanguagePage({Key? key}) : super(key: key); 8 | 9 | // 主视图 10 | Widget _buildView() { 11 | return const Center( 12 | child: Text("LanguagePage"), 13 | ); 14 | } 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return GetBuilder( 19 | init: LanguageController(), 20 | id: "language", 21 | builder: (_) { 22 | return Scaffold( 23 | appBar: AppBar(title: const Text("language")), 24 | body: SafeArea( 25 | child: _buildView(), 26 | ), 27 | ); 28 | }, 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/pages/styles/carousel/view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | import 'index.dart'; 5 | 6 | class CarouselPage extends GetView { 7 | const CarouselPage({Key? key}) : super(key: key); 8 | 9 | // 主视图 10 | Widget _buildView() { 11 | return const Center( 12 | child: Text("CarouselPage"), 13 | ); 14 | } 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return GetBuilder( 19 | init: CarouselController(), 20 | id: "carousel", 21 | builder: (_) { 22 | return Scaffold( 23 | appBar: AppBar(title: const Text("carousel")), 24 | body: SafeArea( 25 | child: _buildView(), 26 | ), 27 | ); 28 | }, 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/common/style/text_form/view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | import 'index.dart'; 5 | 6 | class TextFormPage extends GetView { 7 | const TextFormPage({Key? key}) : super(key: key); 8 | 9 | // 主视图 10 | Widget _buildView() { 11 | return const Center( 12 | child: Text("TextFormPage"), 13 | ); 14 | } 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return GetBuilder( 19 | init: TextFormController(), 20 | id: "text_form", 21 | builder: (_) { 22 | return Scaffold( 23 | appBar: AppBar(title: const Text("text_form")), 24 | body: SafeArea( 25 | child: _buildView(), 26 | ), 27 | ); 28 | }, 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/common/api/system.dart: -------------------------------------------------------------------------------- 1 | import '../index.dart'; 2 | 3 | /// 系统 api 4 | class SystemApi { 5 | /// Banner Ads 6 | static Future> banners() async { 7 | List bannerItems = [ 8 | KeyValueModel( 9 | key: "01", 10 | value: 11 | "https://ducafecat.oss-cn-beijing.aliyuncs.com/flutter_woo_commerce_getx_ducafecat/banner01.png"), 12 | KeyValueModel( 13 | key: "02", 14 | value: 15 | "https://ducafecat.oss-cn-beijing.aliyuncs.com/flutter_woo_commerce_getx_ducafecat/banner02.png"), 16 | KeyValueModel( 17 | key: "03", 18 | value: 19 | "https://ducafecat.oss-cn-beijing.aliyuncs.com/flutter_woo_commerce_getx_ducafecat/banner03.png"), 20 | ]; 21 | 22 | return bannerItems; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /lib/common/components/page_title.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_woo_commerce_getx_learn/common/index.dart'; 3 | 4 | // 页面标题 组件 5 | class PageTitleWidget extends StatelessWidget { 6 | /// 标题 7 | final String title; 8 | 9 | /// 说明 10 | final String desc; 11 | 12 | const PageTitleWidget({ 13 | Key? key, 14 | required this.title, 15 | required this.desc, 16 | }) : super(key: key); 17 | 18 | @override 19 | Widget build(BuildContext context) { 20 | return [ 21 | TextWidget.title1(title), 22 | TextWidget.body2(desc), 23 | ] 24 | .toColumn( 25 | crossAxisAlignment: CrossAxisAlignment.start, 26 | ) 27 | .padding( 28 | left: 10, 29 | top: 10, 30 | bottom: 30, 31 | ); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /lib/common/style/group_list/view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | import 'index.dart'; 5 | 6 | class GroupListPage extends GetView { 7 | const GroupListPage({Key? key}) : super(key: key); 8 | 9 | // 主视图 10 | Widget _buildView() { 11 | return const Center( 12 | child: Text("GroupListPage"), 13 | ); 14 | } 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return GetBuilder( 19 | init: GroupListController(), 20 | id: "group_list", 21 | builder: (_) { 22 | return Scaffold( 23 | appBar: AppBar(title: const Text("group_list")), 24 | body: SafeArea( 25 | child: _buildView(), 26 | ), 27 | ); 28 | }, 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/pages/styles/group_list/view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | import 'index.dart'; 5 | 6 | class GroupListPage extends GetView { 7 | const GroupListPage({Key? key}) : super(key: key); 8 | 9 | // 主视图 10 | Widget _buildView() { 11 | return const Center( 12 | child: Text("GroupListPage"), 13 | ); 14 | } 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return GetBuilder( 19 | init: GroupListController(), 20 | id: "group_list", 21 | builder: (_) { 22 | return Scaffold( 23 | appBar: AppBar(title: const Text("group_list")), 24 | body: SafeArea( 25 | child: _buildView(), 26 | ), 27 | ); 28 | }, 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/common/extension/ex_color.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | /// 扩展颜色 4 | extension ExColor on Color { 5 | /// 生成 MaterialColor 色阶表 6 | MaterialColor get materialColor { 7 | List strengths = [.05]; 8 | Map swatch = {}; 9 | final int r = red, g = green, b = blue; 10 | 11 | for (int i = 1; i < 10; i++) { 12 | strengths.add(0.1 * i); 13 | } 14 | for (var strength in strengths) { 15 | final double ds = 0.5 - strength; 16 | swatch[(strength * 1000).round()] = Color.fromRGBO( 17 | r + ((ds < 0 ? r : (255 - r)) * ds).round(), 18 | g + ((ds < 0 ? g : (255 - g)) * ds).round(), 19 | b + ((ds < 0 ? b : (255 - b)) * ds).round(), 20 | 1, 21 | ); 22 | } 23 | return MaterialColor(value, swatch); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /lib/common/style/components/view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | import 'index.dart'; 5 | 6 | class ComponentsPage extends GetView { 7 | const ComponentsPage({Key? key}) : super(key: key); 8 | 9 | // 主视图 10 | Widget _buildView() { 11 | return const Center( 12 | child: Text("ComponentsPage"), 13 | ); 14 | } 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return GetBuilder( 19 | init: ComponentsController(), 20 | id: "components", 21 | builder: (_) { 22 | return Scaffold( 23 | appBar: AppBar(title: const Text("components")), 24 | body: SafeArea( 25 | child: _buildView(), 26 | ), 27 | ); 28 | }, 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/pages/styles/components/view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | import 'index.dart'; 5 | 6 | class ComponentsPage extends GetView { 7 | const ComponentsPage({Key? key}) : super(key: key); 8 | 9 | // 主视图 10 | Widget _buildView() { 11 | return const Center( 12 | child: Text("ComponentsPage"), 13 | ); 14 | } 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return GetBuilder( 19 | init: ComponentsController(), 20 | id: "components", 21 | builder: (_) { 22 | return Scaffold( 23 | appBar: AppBar(title: const Text("components")), 24 | body: SafeArea( 25 | child: _buildView(), 26 | ), 27 | ); 28 | }, 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /macos/Flutter/GeneratedPluginRegistrant.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | import FlutterMacOS 6 | import Foundation 7 | 8 | import package_info_plus_macos 9 | import path_provider_macos 10 | import photo_manager 11 | import shared_preferences_macos 12 | import smart_auth 13 | 14 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { 15 | FLTPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FLTPackageInfoPlusPlugin")) 16 | PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) 17 | PhotoManagerPlugin.register(with: registry.registrar(forPlugin: "PhotoManagerPlugin")) 18 | SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) 19 | SmartAuthPlugin.register(with: registry.registrar(forPlugin: "SmartAuthPlugin")) 20 | } 21 | -------------------------------------------------------------------------------- /lib/common/style/bottom_sheet/view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | import 'index.dart'; 5 | 6 | class BottomSheetPage extends GetView { 7 | const BottomSheetPage({Key? key}) : super(key: key); 8 | 9 | // 主视图 10 | Widget _buildView() { 11 | return const Center( 12 | child: Text("BottomSheetPage"), 13 | ); 14 | } 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return GetBuilder( 19 | init: BottomSheetController(), 20 | id: "bottom_sheet", 21 | builder: (_) { 22 | return Scaffold( 23 | appBar: AppBar(title: const Text("bottom_sheet")), 24 | body: SafeArea( 25 | child: _buildView(), 26 | ), 27 | ); 28 | }, 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/pages/styles/bottom_sheet/view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | import 'index.dart'; 5 | 6 | class BottomSheetPage extends GetView { 7 | const BottomSheetPage({Key? key}) : super(key: key); 8 | 9 | // 主视图 10 | Widget _buildView() { 11 | return const Center( 12 | child: Text("BottomSheetPage"), 13 | ); 14 | } 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return GetBuilder( 19 | init: BottomSheetController(), 20 | id: "bottom_sheet", 21 | builder: (_) { 22 | return Scaffold( 23 | appBar: AppBar(title: const Text("bottom_sheet")), 24 | body: SafeArea( 25 | child: _buildView(), 26 | ), 27 | ); 28 | }, 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/pages/my/my_index/widgets/bar_item.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_screenutil/flutter_screenutil.dart'; 3 | import 'package:flutter_woo_commerce_getx_learn/common/index.dart'; 4 | 5 | /// 功能栏项 6 | class BarItemWidget extends StatelessWidget { 7 | final String title; 8 | final String svgPath; 9 | 10 | const BarItemWidget({ 11 | Key? key, 12 | required this.title, 13 | required this.svgPath, 14 | }) : super(key: key); 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return [ 19 | // 图标 20 | IconWidget.svg( 21 | svgPath, 22 | size: 24.sp, 23 | color: AppColors.primary, 24 | ).paddingBottom(AppSpace.iconTextSmail), 25 | 26 | // 标题 27 | TextWidget.body2( 28 | title, 29 | ), 30 | ].toColumn(); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /lib/pages/system/user_agreement/view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | import 'index.dart'; 5 | 6 | class UserAgreementPage extends GetView { 7 | const UserAgreementPage({Key? key}) : super(key: key); 8 | 9 | // 主视图 10 | Widget _buildView() { 11 | return const Center( 12 | child: Text("UserAgreementPage"), 13 | ); 14 | } 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return GetBuilder( 19 | init: UserAgreementController(), 20 | id: "user_agreement", 21 | builder: (_) { 22 | return Scaffold( 23 | appBar: AppBar(title: const Text("user_agreement")), 24 | body: SafeArea( 25 | child: _buildView(), 26 | ), 27 | ); 28 | }, 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /assets/images/files.txt: -------------------------------------------------------------------------------- 1 | static const defaultPng = 'assets/images/default.png'; 2 | static const homePlaceholderPng = 'assets/images/home_placeholder.png'; 3 | static const logoPng = 'assets/images/logo.png'; 4 | static const orderConfirmedPng = 'assets/images/order-confirmed.png'; 5 | static const pCashPng = 'assets/images/p-cash.png'; 6 | static const pMastercardPng = 'assets/images/p-mastercard.png'; 7 | static const pPaypalPng = 'assets/images/p-paypal.png'; 8 | static const pVisaPng = 'assets/images/p-visa.png'; 9 | static const splashJpg = 'assets/images/splash.jpg'; 10 | static const welcomePng = 'assets/images/welcome.png'; 11 | static const welcome_1Png = 'assets/images/welcome_1.png'; 12 | static const welcome_2Png = 'assets/images/welcome_2.png'; 13 | static const welcome_3Png = 'assets/images/welcome_3.png'; 14 | static const logoQuickPng = 'assets/images/logo_quick.png'; 15 | -------------------------------------------------------------------------------- /lib/pages/styles/text_form/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | class TextFormController extends GetxController { 5 | TextFormController(); 6 | 7 | GlobalKey formKey = GlobalKey(); 8 | 9 | TextEditingController unameController = 10 | TextEditingController(text: "ducafecat"); 11 | TextEditingController pwdController = TextEditingController(text: "123456"); 12 | 13 | _initData() { 14 | update(["text_form"]); 15 | } 16 | 17 | void onTap() {} 18 | 19 | // @override 20 | // void onInit() { 21 | // super.onInit(); 22 | // } 23 | 24 | @override 25 | void onReady() { 26 | super.onReady(); 27 | _initData(); 28 | } 29 | 30 | @override 31 | void onClose() { 32 | super.onClose(); 33 | unameController.dispose(); 34 | pwdController.dispose(); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /linux/flutter/generated_plugins.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Generated file, do not edit. 3 | # 4 | 5 | list(APPEND FLUTTER_PLUGIN_LIST 6 | smart_auth 7 | ) 8 | 9 | list(APPEND FLUTTER_FFI_PLUGIN_LIST 10 | ) 11 | 12 | set(PLUGIN_BUNDLED_LIBRARIES) 13 | 14 | foreach(plugin ${FLUTTER_PLUGIN_LIST}) 15 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin}) 16 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) 17 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $) 18 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) 19 | endforeach(plugin) 20 | 21 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) 22 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin}) 23 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) 24 | endforeach(ffi_plugin) 25 | -------------------------------------------------------------------------------- /lib/pages/my/order_details/widgets/total_item.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_woo_commerce_getx_learn/common/index.dart'; 3 | 4 | /// 小计项 5 | class BuildTotalItem extends StatelessWidget { 6 | const BuildTotalItem({ 7 | Key? key, 8 | this.title, 9 | this.price, 10 | this.currencySymbol, 11 | }) : super(key: key); 12 | 13 | /// 标题 14 | final String? title; 15 | 16 | /// 价格 17 | final String? price; 18 | 19 | /// 货币符号 20 | final String? currencySymbol; 21 | 22 | // 主视图 23 | Widget _buildView() { 24 | return [ 25 | // title 26 | TextWidget.body1(title ?? "").expanded(), 27 | 28 | // price 29 | TextWidget.body2("$currencySymbol $price"), 30 | ].toRow(); 31 | } 32 | 33 | @override 34 | Widget build(BuildContext context) { 35 | return _buildView(); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 9.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /windows/flutter/generated_plugins.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Generated file, do not edit. 3 | # 4 | 5 | list(APPEND FLUTTER_PLUGIN_LIST 6 | permission_handler_windows 7 | smart_auth 8 | ) 9 | 10 | list(APPEND FLUTTER_FFI_PLUGIN_LIST 11 | ) 12 | 13 | set(PLUGIN_BUNDLED_LIBRARIES) 14 | 15 | foreach(plugin ${FLUTTER_PLUGIN_LIST}) 16 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin}) 17 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) 18 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $) 19 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) 20 | endforeach(plugin) 21 | 22 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) 23 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin}) 24 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) 25 | endforeach(ffi_plugin) 26 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Flutter (1.0.0) 3 | - package_info_plus (0.4.5): 4 | - Flutter 5 | - shared_preferences_ios (0.0.1): 6 | - Flutter 7 | 8 | DEPENDENCIES: 9 | - Flutter (from `Flutter`) 10 | - package_info_plus (from `.symlinks/plugins/package_info_plus/ios`) 11 | - shared_preferences_ios (from `.symlinks/plugins/shared_preferences_ios/ios`) 12 | 13 | EXTERNAL SOURCES: 14 | Flutter: 15 | :path: Flutter 16 | package_info_plus: 17 | :path: ".symlinks/plugins/package_info_plus/ios" 18 | shared_preferences_ios: 19 | :path: ".symlinks/plugins/shared_preferences_ios/ios" 20 | 21 | SPEC CHECKSUMS: 22 | Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a 23 | package_info_plus: 6c92f08e1f853dc01228d6f553146438dafcd14e 24 | shared_preferences_ios: 548a61f8053b9b8a49ac19c1ffbc8b92c50d68ad 25 | 26 | PODFILE CHECKSUM: 8e679eca47255a8ca8067c4c67aab20e64cb974d 27 | 28 | COCOAPODS: 1.11.3 29 | -------------------------------------------------------------------------------- /lib/common/components/refresher.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:pull_to_refresh/pull_to_refresh.dart'; 3 | 4 | import '../index.dart'; 5 | 6 | /// 底部加载更多组件 7 | class SmartRefresherFooterWidget extends StatelessWidget { 8 | /// 底部高度 9 | final double? height; 10 | 11 | /// 图标大小 12 | final double? iconSize; 13 | 14 | const SmartRefresherFooterWidget({ 15 | Key? key, 16 | this.iconSize, 17 | this.height, 18 | }) : super(key: key); 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | return ClassicFooter( 23 | height: height ?? 60 + MediaQuery.of(context).padding.bottom + 30, // 底部高度 24 | loadingIcon: const CupertinoActivityIndicator().tight( 25 | width: iconSize ?? 25, 26 | height: iconSize ?? 25, 27 | ), // 加载中 28 | outerBuilder: (child) => child.center().height(height ?? 60), // 内容 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/common/i18n/translation.dart: -------------------------------------------------------------------------------- 1 | import 'dart:ui'; 2 | 3 | import 'package:flutter_localizations/flutter_localizations.dart'; 4 | import 'package:get/get.dart'; 5 | 6 | import '../index.dart'; 7 | 8 | /// 翻译类 9 | class Translation extends Translations { 10 | // 当前系统语言 11 | // static Locale? get locale => Get.deviceLocale; 12 | 13 | // 默认语言 Locale(语言代码, 国家代码) 14 | static const fallbackLocale = Locale('en', 'US'); 15 | 16 | // 支持语言列表 17 | static const supportedLocales = [ 18 | Locale('en', 'US'), 19 | Locale('zh', 'CN'), 20 | ]; 21 | 22 | // 代理 23 | static const localizationsDelegates = [ 24 | GlobalMaterialLocalizations.delegate, 25 | GlobalWidgetsLocalizations.delegate, 26 | GlobalCupertinoLocalizations.delegate, 27 | ]; 28 | 29 | // 语言代码对应的翻译文本 30 | @override 31 | Map> get keys => { 32 | 'en': localeEn, 33 | 'zh': localeZh, 34 | }; 35 | } 36 | -------------------------------------------------------------------------------- /lib/pages/my/my_index/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_woo_commerce_getx_learn/common/index.dart'; 2 | import 'package:flutter_woo_commerce_getx_learn/pages/index.dart'; 3 | import 'package:get/get.dart'; 4 | 5 | class MyIndexController extends GetxController { 6 | MyIndexController(); 7 | 8 | _initData() { 9 | update(["my_index"]); 10 | } 11 | 12 | // 注销 13 | void onLogout() { 14 | UserService.to.logout(); 15 | Get.find().onJumpToPage(0); 16 | } 17 | 18 | // 地址编辑页 type 1 billing 2 shipping 19 | void onToAddress(String type) { 20 | Get.toNamed(RouteNames.myMyAddress, arguments: {"type": type}); 21 | } 22 | 23 | // @override 24 | // void onInit() { 25 | // super.onInit(); 26 | // } 27 | 28 | @override 29 | void onReady() { 30 | super.onReady(); 31 | _initData(); 32 | } 33 | 34 | // @override 35 | // void onClose() { 36 | // super.onClose(); 37 | // } 38 | } 39 | -------------------------------------------------------------------------------- /lib/common/values/images.dart: -------------------------------------------------------------------------------- 1 | class AssetsImages { 2 | static const defaultPng = 'assets/images/default.png'; 3 | static const homePlaceholderPng = 'assets/images/home_placeholder.png'; 4 | static const logoPng = 'assets/images/logo.png'; 5 | static const orderConfirmedPng = 'assets/images/order-confirmed.png'; 6 | static const pCashPng = 'assets/images/p-cash.png'; 7 | static const pMastercardPng = 'assets/images/p-mastercard.png'; 8 | static const pPaypalPng = 'assets/images/p-paypal.png'; 9 | static const pVisaPng = 'assets/images/p-visa.png'; 10 | static const splashJpg = 'assets/images/splash.jpg'; 11 | static const welcomePng = 'assets/images/welcome.png'; 12 | static const welcome_1Png = 'assets/images/welcome_1.png'; 13 | static const welcome_2Png = 'assets/images/welcome_2.png'; 14 | static const welcome_3Png = 'assets/images/welcome_3.png'; 15 | static const logoQuickPng = 'assets/images/logo_quick.png'; 16 | } 17 | -------------------------------------------------------------------------------- /lib/common/models/request/user_register_req.dart: -------------------------------------------------------------------------------- 1 | /// 用户注册请求 2 | class UserRegisterReq { 3 | String? username; 4 | String? password; 5 | String? email; 6 | String? firstName; 7 | String? lastName; 8 | 9 | UserRegisterReq({ 10 | this.username, 11 | this.password, 12 | this.email, 13 | this.firstName, 14 | this.lastName, 15 | }); 16 | 17 | factory UserRegisterReq.fromJson(Map json) { 18 | return UserRegisterReq( 19 | username: json['username'] as String?, 20 | password: json['password'] as String?, 21 | email: json['email'] as String?, 22 | firstName: json['first_name'] as String?, 23 | lastName: json['last_name'] as String?, 24 | ); 25 | } 26 | 27 | Map toJson() => { 28 | 'username': username, 29 | 'password': password, 30 | 'email': email, 31 | 'first_name': firstName, 32 | 'last_name': lastName, 33 | }; 34 | } 35 | -------------------------------------------------------------------------------- /windows/runner/runner.exe.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PerMonitorV2 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | migrate_working_dir/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # The .vscode folder contains launch configuration and tasks you configure in 20 | # VS Code which you may wish to be included in version control, so this line 21 | # is commented out by default. 22 | #.vscode/ 23 | 24 | # Flutter/Dart/Pub related 25 | **/doc/api/ 26 | **/ios/Flutter/.last_build_id 27 | .dart_tool/ 28 | .flutter-plugins 29 | .flutter-plugins-dependencies 30 | .packages 31 | .pub-cache/ 32 | .pub/ 33 | /build/ 34 | 35 | # Web related 36 | lib/generated_plugin_registrant.dart 37 | 38 | # Symbolication related 39 | app.*.symbols 40 | 41 | # Obfuscation related 42 | app.*.map.json 43 | 44 | # Android Studio will place build artifacts here 45 | /android/app/debug 46 | /android/app/profile 47 | /android/app/release 48 | -------------------------------------------------------------------------------- /lib/pages/system/splash/view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_woo_commerce_getx_learn/common/index.dart'; 3 | import 'package:get/get.dart'; 4 | 5 | import 'index.dart'; 6 | 7 | class SplashPage extends GetView { 8 | const SplashPage({Key? key}) : super(key: key); 9 | 10 | // 主视图 11 | Widget _buildView() { 12 | return ImageWidget.asset( 13 | AssetsImages.splashJpg, 14 | fit: BoxFit.fill, // 填充整个界面 15 | ); 16 | } 17 | 18 | // Widget _buildView() { 19 | // return Center( 20 | // child: Text("SplashPage\nPlatForm version ${ConfigService.to.version}", textAlign: TextAlign.center), 21 | // ); 22 | // } 23 | 24 | @override 25 | Widget build(BuildContext context) { 26 | return GetBuilder( 27 | init: SplashController(), 28 | id: "splash", 29 | builder: (_) { 30 | return _buildView(); 31 | }, 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /lib/common/style/styles_index/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_woo_commerce_getx_learn/common/index.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | class StylesIndexController extends GetxController { 5 | StylesIndexController(); 6 | 7 | _initData() { 8 | update(["styles_index"]); 9 | } 10 | 11 | void onTap() {} 12 | 13 | // 多语言 14 | onLanguageSelected() { 15 | var en = Translation.supportedLocales[0]; 16 | var zh = Translation.supportedLocales[1]; 17 | 18 | ConfigService.to.onLocaleUpdate( 19 | ConfigService.to.locale.toLanguageTag() == en.toLanguageTag() 20 | ? zh 21 | : en); 22 | update(["styles_index"]); 23 | } 24 | 25 | // @override 26 | // void onInit() { 27 | // super.onInit(); 28 | // } 29 | 30 | @override 31 | void onReady() { 32 | super.onReady(); 33 | _initData(); 34 | } 35 | 36 | // @override 37 | // void onClose() { 38 | // super.onClose(); 39 | // } 40 | } 41 | -------------------------------------------------------------------------------- /lib/common/models/woo/order_model/attribute.dart: -------------------------------------------------------------------------------- 1 | class Attribute { 2 | int? id; 3 | String? name; 4 | int? position; 5 | bool? visible; 6 | bool? variation; 7 | List? options; 8 | 9 | Attribute({ 10 | this.id, 11 | this.name, 12 | this.position, 13 | this.visible, 14 | this.variation, 15 | this.options, 16 | }); 17 | 18 | factory Attribute.fromJson(Map json) => Attribute( 19 | id: json['id'] as int?, 20 | name: json['name'] as String?, 21 | position: json['position'] as int?, 22 | visible: json['visible'] as bool?, 23 | variation: json['variation'] as bool?, 24 | options: json['options'] as List?, 25 | ); 26 | 27 | Map toJson() => { 28 | 'id': id, 29 | 'name': name, 30 | 'position': position, 31 | 'visible': visible, 32 | 'variation': variation, 33 | 'options': options, 34 | }; 35 | } 36 | -------------------------------------------------------------------------------- /assets/svgs/p-home.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/common/style/space.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | /// 间距 4 | class AppSpace { 5 | /// 按钮 6 | static double get button => 5; 7 | 8 | /// 按钮 9 | static double get buttonHeight => 50; 10 | 11 | /// 卡片内 - 12 上下左右 12 | static double get card => 15; 13 | 14 | /// 输入框 - 10, 10 上下,左右 15 | static EdgeInsetsGeometry get edgeInput => 16 | const EdgeInsets.symmetric(vertical: 10, horizontal: 10); 17 | 18 | /// 列表视图 19 | static double get listView => 5; 20 | 21 | /// 列表行 - 10 上下 22 | static double get listRow => 10; 23 | 24 | /// 列表项 25 | static double get listItem => 8; 26 | 27 | /// 页面内 - 16 左右 28 | static double get page => 16; 29 | 30 | /// 段落 - 24 31 | static double get paragraph => 24; 32 | 33 | /// 标题内容 - 10 34 | static double get titleContent => 10; 35 | 36 | /// 图标文字 - 15 37 | static double get iconTextSmail => 5; 38 | static double get iconTextMedium => 10; 39 | static double get iconTextLarge => 15; 40 | } 41 | -------------------------------------------------------------------------------- /lib/common/models/request/user_login_req.dart: -------------------------------------------------------------------------------- 1 | /// username : "ducafecat5" 2 | /// password : "123456" 3 | 4 | class UserLoginReq { 5 | UserLoginReq({ 6 | String? username, 7 | String? password, 8 | }) { 9 | _username = username; 10 | _password = password; 11 | } 12 | 13 | UserLoginReq.fromJson(dynamic json) { 14 | _username = json['username']; 15 | _password = json['password']; 16 | } 17 | 18 | String? _username; 19 | String? _password; 20 | 21 | UserLoginReq copyWith({ 22 | String? username, 23 | String? password, 24 | }) => 25 | UserLoginReq( 26 | username: username ?? _username, 27 | password: password ?? _password, 28 | ); 29 | 30 | String? get username => _username; 31 | 32 | String? get password => _password; 33 | 34 | Map toJson() { 35 | final map = {}; 36 | map['username'] = _username; 37 | map['password'] = _password; 38 | return map; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /lib/common/models/woo/continents_model/continents_model.dart: -------------------------------------------------------------------------------- 1 | import 'country.dart'; 2 | import 'links.dart'; 3 | 4 | class ContinentsModel { 5 | String? code; 6 | String? name; 7 | List? countries; 8 | Links? links; 9 | 10 | ContinentsModel({this.code, this.name, this.countries, this.links}); 11 | 12 | factory ContinentsModel.fromJson(Map json) { 13 | return ContinentsModel( 14 | code: json['code'] as String?, 15 | name: json['name'] as String?, 16 | countries: (json['countries'] as List?) 17 | ?.map((e) => Country.fromJson(e as Map)) 18 | .toList(), 19 | links: json['_links'] == null 20 | ? null 21 | : Links.fromJson(json['_links'] as Map), 22 | ); 23 | } 24 | 25 | Map toJson() => { 26 | 'code': code, 27 | 'name': name, 28 | 'countries': countries?.map((e) => e.toJson()).toList(), 29 | '_links': links?.toJson(), 30 | }; 31 | } 32 | -------------------------------------------------------------------------------- /lib/common/models/woo/product_model/attribute.dart: -------------------------------------------------------------------------------- 1 | class Attribute { 2 | int? id; 3 | String? name; 4 | int? position; 5 | bool? visible; 6 | bool? variation; 7 | List? options; 8 | 9 | Attribute({ 10 | this.id, 11 | this.name, 12 | this.position, 13 | this.visible, 14 | this.variation, 15 | this.options, 16 | }); 17 | 18 | factory Attribute.fromJson(Map json) => Attribute( 19 | id: json['id'] as int?, 20 | name: json['name'] as String?, 21 | position: json['position'] as int?, 22 | visible: json['visible'] as bool?, 23 | variation: json['variation'] as bool?, 24 | // options: json['options'] as List?, 25 | options: json['options']?.cast(), 26 | ); 27 | 28 | Map toJson() => { 29 | 'id': id, 30 | 'name': name, 31 | 'position': position, 32 | 'visible': visible, 33 | 'variation': variation, 34 | 'options': options, 35 | }; 36 | } 37 | -------------------------------------------------------------------------------- /lib/pages/cart/buy_now/widgets/price_line.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_woo_commerce_getx_learn/common/index.dart'; 3 | 4 | /// 价格行组件 5 | class BuildPriceLine extends StatelessWidget { 6 | const BuildPriceLine({ 7 | Key? key, 8 | this.titleString, 9 | this.priceString, 10 | this.leftWidget, 11 | this.rightWidget, 12 | }) : super(key: key); 13 | 14 | /// 标题 字符串 15 | final String? titleString; 16 | 17 | /// 价格 字符串 18 | final String? priceString; 19 | 20 | /// 左侧组件 21 | final Widget? leftWidget; 22 | 23 | /// 右侧组件 24 | final Widget? rightWidget; 25 | 26 | // 主视图 27 | Widget _buildView() { 28 | return [ 29 | // 左侧 30 | leftWidget?.expanded() ?? TextWidget.body2(titleString ?? "").expanded(), 31 | 32 | // 右侧 33 | rightWidget ?? TextWidget.body2(priceString ?? ""), 34 | ].toRow().paddingBottom(AppSpace.listRow); 35 | } 36 | 37 | @override 38 | Widget build(BuildContext context) { 39 | return _buildView(); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /lib/common/models/woo/review_model/links.dart: -------------------------------------------------------------------------------- 1 | import 'collection.dart'; 2 | import 'self.dart'; 3 | import 'up.dart'; 4 | 5 | class Links { 6 | List? self; 7 | List? collection; 8 | List? up; 9 | 10 | Links({this.self, this.collection, this.up}); 11 | 12 | factory Links.fromJson(Map json) => Links( 13 | self: (json['self'] as List?) 14 | ?.map((e) => Self.fromJson(e as Map)) 15 | .toList(), 16 | collection: (json['collection'] as List?) 17 | ?.map((e) => Collection.fromJson(e as Map)) 18 | .toList(), 19 | up: (json['up'] as List?) 20 | ?.map((e) => Up.fromJson(e as Map)) 21 | .toList(), 22 | ); 23 | 24 | Map toJson() => { 25 | 'self': self?.map((e) => e.toJson()).toList(), 26 | 'collection': collection?.map((e) => e.toJson()).toList(), 27 | 'up': up?.map((e) => e.toJson()).toList(), 28 | }; 29 | } 30 | -------------------------------------------------------------------------------- /lib/common/models/woo/tags_model/tags_model.dart: -------------------------------------------------------------------------------- 1 | import 'links.dart'; 2 | 3 | class TagsModel { 4 | int? id; 5 | String? name; 6 | String? slug; 7 | String? description; 8 | int? count; 9 | Links? links; 10 | 11 | TagsModel({ 12 | this.id, 13 | this.name, 14 | this.slug, 15 | this.description, 16 | this.count, 17 | this.links, 18 | }); 19 | 20 | factory TagsModel.fromJson(Map json) => TagsModel( 21 | id: json['id'] as int?, 22 | name: json['name'] as String?, 23 | slug: json['slug'] as String?, 24 | description: json['description'] as String?, 25 | count: json['count'] as int?, 26 | links: json['_links'] == null 27 | ? null 28 | : Links.fromJson(json['_links'] as Map), 29 | ); 30 | 31 | Map toJson() => { 32 | 'id': id, 33 | 'name': name, 34 | 'slug': slug, 35 | 'description': description, 36 | 'count': count, 37 | '_links': links?.toJson(), 38 | }; 39 | } 40 | -------------------------------------------------------------------------------- /android/app/src/main/res/values-v31/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /windows/runner/flutter_window.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_FLUTTER_WINDOW_H_ 2 | #define RUNNER_FLUTTER_WINDOW_H_ 3 | 4 | #include 5 | #include 6 | 7 | #include 8 | 9 | #include "win32_window.h" 10 | 11 | // A window that does nothing but host a Flutter view. 12 | class FlutterWindow : public Win32Window { 13 | public: 14 | // Creates a new FlutterWindow hosting a Flutter view running |project|. 15 | explicit FlutterWindow(const flutter::DartProject& project); 16 | virtual ~FlutterWindow(); 17 | 18 | protected: 19 | // Win32Window: 20 | bool OnCreate() override; 21 | void OnDestroy() override; 22 | LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam, 23 | LPARAM const lparam) noexcept override; 24 | 25 | private: 26 | // The project to run. 27 | flutter::DartProject project_; 28 | 29 | // The Flutter instance hosted by this window. 30 | std::unique_ptr flutter_controller_; 31 | }; 32 | 33 | #endif // RUNNER_FLUTTER_WINDOW_H_ 34 | --------------------------------------------------------------------------------