mirror of
https://github.com/foss42/apidash.git
synced 2025-12-03 03:17:00 +08:00
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:
@@ -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";
|
||||
|
||||
@@ -25,7 +25,7 @@ class SendButton extends StatelessWidget {
|
||||
? [
|
||||
kHSpacer8,
|
||||
Text(
|
||||
isStreaming ? 'Stop' : kLabelCancel,
|
||||
isStreaming ? kLabelStop : kLabelCancel,
|
||||
style: kTextStyleButton,
|
||||
),
|
||||
kHSpacer6,
|
||||
|
||||
Reference in New Issue
Block a user