mirror of
https://github.com/foss42/apidash.git
synced 2025-12-01 18:28:25 +08:00
SSE: Stopping/Cancelling implementation
This commit is contained in:
@@ -17,6 +17,7 @@ void main() {
|
||||
home: Scaffold(
|
||||
body: SendButton(
|
||||
isWorking: false,
|
||||
isStreaming: false,
|
||||
onTap: () => sendPressed = true,
|
||||
onCancel: () => cancelPressed = true,
|
||||
),
|
||||
@@ -46,6 +47,7 @@ void main() {
|
||||
home: Scaffold(
|
||||
body: SendButton(
|
||||
isWorking: true,
|
||||
isStreaming: false,
|
||||
onTap: () => sendPressed = true,
|
||||
onCancel: () => cancelPressed = true,
|
||||
),
|
||||
@@ -74,6 +76,7 @@ void main() {
|
||||
builder: (context, setState) {
|
||||
return Scaffold(
|
||||
body: SendButton(
|
||||
isStreaming: false,
|
||||
isWorking: isWorking,
|
||||
onTap: () => setState(() => isWorking = true),
|
||||
onCancel: () => setState(() => isWorking = false),
|
||||
|
||||
Reference in New Issue
Block a user