mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 10:49:49 +08:00
Modified SSE Display to support DarkMode
This commit is contained in:
@@ -34,7 +34,9 @@ class _SSEDisplayState extends State<SSEDisplay> {
|
||||
} catch (_) {}
|
||||
|
||||
return Card(
|
||||
color: Colors.white,
|
||||
color: Theme.of(context).brightness == Brightness.light
|
||||
? Colors.white
|
||||
: const Color.fromARGB(255, 14, 20, 27),
|
||||
margin: const EdgeInsets.symmetric(vertical: 6, horizontal: 8),
|
||||
elevation: 2,
|
||||
shape: RoundedRectangleBorder(
|
||||
|
||||
@@ -167,16 +167,6 @@ stream.listen((data) {
|
||||
|
||||
---
|
||||
|
||||
## 🔧 Utility Functions
|
||||
|
||||
The `better_networking` package also includes several built-in utility functions for common tasks:
|
||||
|
||||
* **`cancelHttpRequest`**: Cancels an ongoing request by its unique ID.
|
||||
* **`sendHttpRequest`**: Sends a request and returns the response, duration, and error (if any).
|
||||
* **`streamHttpRequest`**: Streams data from the server, useful for real-time updates or SSE.
|
||||
|
||||
---
|
||||
|
||||
## 🤝 Contributing
|
||||
|
||||
We welcome contributions to the `better_networking` package! If you'd like to contribute, please fork the repository and submit a pull request. For major changes or new features, it's a good idea to open an issue first to discuss your ideas.
|
||||
|
||||
@@ -167,16 +167,6 @@ stream.listen((data) {
|
||||
|
||||
---
|
||||
|
||||
## 🔧 Utility Functions
|
||||
|
||||
The `better_networking` package also includes several built-in utility functions for common tasks:
|
||||
|
||||
* **`cancelHttpRequest`**: Cancels an ongoing request by its unique ID.
|
||||
* **`sendHttpRequest`**: Sends a request and returns the response, duration, and error (if any).
|
||||
* **`streamHttpRequest`**: Streams data from the server, useful for real-time updates or SSE.
|
||||
|
||||
---
|
||||
|
||||
## 🤝 Contributing
|
||||
|
||||
We welcome contributions to the `better_networking` package! If you'd like to contribute, please fork the repository and submit a pull request. For major changes or new features, it's a good idea to open an issue first to discuss your ideas.
|
||||
|
||||
Reference in New Issue
Block a user