# flutter_trip **Repository Path**: pish7/flutter_trip ## Basic Information - **Project Name**: flutter_trip - **Description**: 用 flutter 实现的一个旅游 App - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-02-20 - **Last Updated**: 2026-02-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # flutter_trip ## 依赖安装 ```sh flutter pub add url_launcher http flutter_hi_cache carousel_slider underline_indicator flutter_staggered_grid_view transparent_image webview_flutter flutter_hooks hooks_riverpod freezed_annotation json_annotation dev:flutter_lints dev:riverpod_lint dev:freezed dev:json_serializable dev:build_runner dev:custom_lint ``` ## 常用命令 ```sh flutter clean # 清理缓存 rm -rf .dart_tool pubspec.lock flutter pub get # 重新获取依赖 flutter pub upgrade --major-versions # 跨大版本升级 dart run build_runner build --delete-conflicting-outputs # 生成文件 ``` ## macos 网络访问失败 使用 macos 平台访问大模型时,可能会发生以下错误: ``` [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: ClientException with SocketException: Connection failed (OS Error: Operation not permitted, errno = 1), address = 127.0.0.1, port = 10808, uri=https://api.siliconflow.cn/v1/chat/completions ``` 解决方法是在 `macos/Runner/DebugProfile.entitlements` 和 `macos/Runner/Release.entitlements` 中添加以下权限: ``` com.apple.security.network.client ```