chore: 更新国际化翻译及 UI 组件优化
This commit is contained in:
@@ -342,9 +342,7 @@ class _HomeScreenState extends State<HomeScreen>
|
||||
if (showWaitingIndicator)
|
||||
Align(
|
||||
alignment: Alignment.bottomLeft,
|
||||
child: HomeWaitingIndicator(
|
||||
label: stageLabel(state.currentStage),
|
||||
),
|
||||
child: HomeWaitingIndicator(label: _agentWaitingLabel(state)),
|
||||
),
|
||||
Align(
|
||||
alignment: Alignment.topCenter,
|
||||
@@ -494,6 +492,13 @@ class _HomeScreenState extends State<HomeScreen>
|
||||
return state.isWaitingFirstToken || state.isStreaming || state.isCancelling;
|
||||
}
|
||||
|
||||
String _agentWaitingLabel(ChatState state) {
|
||||
if (state.isWaitingFirstToken && !state.hasSeenStep) {
|
||||
return context.l10n.agentStageRequesting;
|
||||
}
|
||||
return stageLabel(state.currentStage);
|
||||
}
|
||||
|
||||
void _handleScrollChanged() {
|
||||
if (!_scrollController.hasClients) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user