Add 'Stop' label constant and use in SendButton

Introduces kLabelStop to consts.dart and updates SendButton to use the new constant when isStreaming is true, improving consistency in label management.
This commit is contained in:
Ankit Mahato
2025-08-05 19:50:13 +05:30
parent c4d6965e93
commit d1fe07ac8d
2 changed files with 2 additions and 1 deletions

View File

@@ -438,6 +438,7 @@ const kLabelDuplicate = "Duplicate";
const kLabelSelect = "Select";
const kLabelContinue = "Continue";
const kLabelCancel = "Cancel";
const kLabelStop = "Stop";
const kLabelOk = "Ok";
const kLabelImport = "Import";
const kUntitled = "untitled";

View File

@@ -25,7 +25,7 @@ class SendButton extends StatelessWidget {
? [
kHSpacer8,
Text(
isStreaming ? 'Stop' : kLabelCancel,
isStreaming ? kLabelStop : kLabelCancel,
style: kTextStyleButton,
),
kHSpacer6,