# flutter_hm_shop **Repository Path**: BruceLeeAdmin_admin/flutter_hm_shop ## Basic Information - **Project Name**: flutter_hm_shop - **Description**: flutter项目黑马商城app - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-12-21 - **Last Updated**: 2025-12-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 新建项目 ```agsl flutter create --platforms web hm_shop ``` # 快捷键 快捷键生成骨架:stanim # 项目运行 ```agsl flutter run -d chrome --web-run-headless ``` # 网路请求 安装dio插件 ```agsl flutter pub add dio ``` 定义常量数据、基础地址、超时时间、业务状态、请求地址 封装网路请求工具,基础地址,拦截器 请求工具进一步解构,处理http状态和业务状态 类工厂转化动态类型到对象类型 封装请求API调用工厂函数 初始化数据更新状态 # 轮播图插件 ```agsl flutter pub add carousel_slider ``` # 共享用户数据 安装getx ```agsl flutter pub add get ``` # 持久化插件安装 ```agsl flutter pub add shared_preferences ``` # 运行到其他平台 ```agsl flutter create . ```