Trae Assistant commited on
Commit
6a8bb04
·
1 Parent(s): b56ade9

Fix dependency conflict by setting intl to any and switch to stable Flutter SDK

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -2
  2. pubspec.yaml +1 -1
Dockerfile CHANGED
@@ -11,8 +11,8 @@ RUN useradd -m -u 1000 flutteruser
11
  USER flutteruser
12
  WORKDIR /home/flutteruser
13
 
14
- # 下载并安装 Flutter SDK (深度为 1 减小体积)
15
- RUN git clone --depth 1 https://github.com/flutter/flutter.git /home/flutteruser/flutter
16
  ENV PATH="/home/flutteruser/flutter/bin:/home/flutteruser/flutter/bin/cache/dart-sdk/bin:${PATH}"
17
 
18
  # 禁用分析并配置仅 Web 支持,避免下载 Gradle/Android 等无关组件
 
11
  USER flutteruser
12
  WORKDIR /home/flutteruser
13
 
14
+ # 下载并安装 Flutter SDK (使用 stable 分支更稳)
15
+ RUN git clone --depth 1 --branch stable https://github.com/flutter/flutter.git /home/flutteruser/flutter
16
  ENV PATH="/home/flutteruser/flutter/bin:/home/flutteruser/flutter/bin/cache/dart-sdk/bin:${PATH}"
17
 
18
  # 禁用分析并配置仅 Web 支持,避免下载 Gradle/Android 等无关组件
pubspec.yaml CHANGED
@@ -10,7 +10,7 @@ dependencies:
10
  sdk: flutter
11
  flutter_localizations:
12
  sdk: flutter
13
- intl: ^0.19.0
14
 
15
  dev_dependencies:
16
  flutter_test:
 
10
  sdk: flutter
11
  flutter_localizations:
12
  sdk: flutter
13
+ intl: any
14
 
15
  dev_dependencies:
16
  flutter_test: