# flutter_demo **Repository Path**: power9508/flutter_demo ## Basic Information - **Project Name**: flutter_demo - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-11-11 - **Last Updated**: 2025-11-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # flutter_demo ```md lib/ ├── main.dart // App 入口(极简) ├── app/ │ ├── router.dart // 路由聚合(未来可自动生成) │ ├── providers.dart // 全局 Provider(Dio、Auth 状态) │ └── widgets/ // 全局 UI(BottomNav, VideoPlayer) │ ├── app_bottom_nav.dart │ └── video_player.dart │ ├── shared/ // 严格控制!仅放真正复用的内容 │ ├── models.dart // 全局模型:User, Video, Order(基础字段) │ └── utils.dart // 工具函数:formatTime, showToast │ └── modules/ ├── auth/ // 👉【登录模块】 │ ├── model.dart │ ├── api.dart │ ├── provider.dart │ ├── page.dart // LoginPage │ ├── route.dart // /login │ └── module.dart // ← 唯一出口 │ ├── discover/ // 👉【发现页 - 短视频流】 │ ├── model.dart // Video │ ├── api.dart // fetchVideos() │ ├── provider.dart // videoListProvider │ ├── page.dart // DiscoverPage(含 PageView + 全屏视频) │ ├── route.dart // /discover (默认首页) │ └── module.dart │ ├── message/ // 👉【消息模块】 │ ├── model.dart // Message │ ├── api.dart // fetchMessages(), fetchMessageDetail() │ ├── provider.dart // messageListProvider │ ├── pages/ // 扁平化:多页面放同一层(AI 易生成) │ │ ├── message_list_page.dart │ │ └── message_detail_page.dart │ ├── route.dart // /messages, /messages/:id │ └── module.dart │ ├── order/ // 👉【订单模块】 │ ├── model.dart // Order │ ├── api.dart // fetchOrders(), fetchOrderDetail() │ ├── provider.dart // orderListProvider │ ├── pages/ │ │ ├── order_list_page.dart │ │ └── order_detail_page.dart │ ├── route.dart // /orders, /orders/:id │ └── module.dart │ └── profile/ // 👉【我的模块】 ├── model.dart // Profile ├── api.dart // getProfile() ├── provider.dart // profileProvider ├── page.dart // ProfilePage(功能入口列表) ├── route.dart // /profile └── module.dart │ └── submodules/ // 👇 子功能模块(嵌套在 profile 下) ├── works/ // 作品 CRUD │ ├── model.dart // Work │ ├── api.dart // CRUD APIs │ ├── pages/ │ │ ├── work_list_page.dart │ │ ├── work_edit_page.dart // 新增/编辑共用 │ │ └── work_preview_page.dart │ ├── route.dart // /profile/works, /profile/works/new, /profile/works/:id │ └── module.dart │ └── products/ // 商品 CRUD ├── model.dart // Product ├── api.dart // CRUD APIs ├── pages/ │ ├── product_list_page.dart │ └── product_edit_page.dart ├── route.dart // /profile/products, /profile/products/new └── module.dart ```