### Windows 构建 Source: https://github.com/nutpi/flutter-xiaomi-su7-app/blob/master/README.md 启用 Windows 桌面支持和构建 Windows 应用的命令。 ```bash # 确保已启用 Windows 桌面支持 flutter config --enable-windows-desktop # 构建 Windows 应用 flutter build windows ``` -------------------------------- ### Linux 构建 Source: https://github.com/nutpi/flutter-xiaomi-su7-app/blob/master/README.md 启用 Linux 桌面支持、安装依赖和构建 Linux 应用的命令。 ```bash # 确保已启用 Linux 桌面支持 flutter config --enable-linux-desktop # 安装依赖(Ubuntu/Debian) sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev # 构建 Linux 应用 flutter build linux ``` -------------------------------- ### iOS 构建 Source: https://github.com/nutpi/flutter-xiaomi-su7-app/blob/master/README.md 构建 iOS 应用的命令和在 Xcode 中运行的说明。 ```bash # 构建 iOS 应用 cd /Users/jianguo/Desktop/nutpi/project/Flutter-Tesla-App flutter build ios # 打开 Xcode 工程 open ios/Runner.xcworkspace # 从 Xcode 构建和运行 # 选择目标设备并点击运行按钮 ``` -------------------------------- ### macOS 构建 Source: https://github.com/nutpi/flutter-xiaomi-su7-app/blob/master/README.md 启用 macOS 桌面支持、构建 macOS 应用和创建 DMG 安装包的命令。 ```bash # 确保已启用 macOS 桌面支持 flutter config --enable-macos-desktop # 构建 macOS 应用 flutter build macos # 创建 DMG 安装包(需要额外工具) create-dmg "build/macos/Build/Products/Release/Tesla控制中心.app" "build/macos/Tesla控制中心.dmg" ``` -------------------------------- ### 安装步骤 Source: https://github.com/nutpi/flutter-xiaomi-su7-app/blob/master/README.md 克隆项目、安装依赖和运行项目的基本步骤。 ```bash git clone git@gitcode.com:nutpi/Flutter-xiaomi-su7-App.git ``` ```bash flutter pub get ``` ```bash flutter run ``` -------------------------------- ### Web 构建 Source: https://github.com/nutpi/flutter-xiaomi-su7-app/blob/master/README.md 构建 Web 应用和本地运行 Web 版本的命令。 ```bash # 构建 Web 应用 flutter build web # 本地运行 Web 版本 flutter run -d chrome ``` -------------------------------- ### Android 构建 Source: https://github.com/nutpi/flutter-xiaomi-su7-app/blob/master/README.md 构建 Android APK 和 App Bundle 的命令,以及安装到设备的命令。 ```bash # 构建 APK flutter build apk --release # 构建 Android App Bundle flutter build appbundle # 安装到连接的设备 flutter install ``` -------------------------------- ### 项目结构 Source: https://github.com/nutpi/flutter-xiaomi-su7-app/blob/master/README.md 展示了 Flutter 项目的典型目录结构。 ```tree lib/ ├── core/ # 核心功能 ├── features/ # 功能模块 ├── models/ # 数据模型 ├── screens/ # 界面 ├── widgets/ # 通用组件 └── main.dart # 入口文件 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.