Modified SSE Display to support DarkMode

This commit is contained in:
Manas Hejmadi
2025-07-08 04:12:04 +05:30
parent 74465ff243
commit 458e8c4fbe
3 changed files with 3 additions and 21 deletions

View File

@@ -34,7 +34,9 @@ class _SSEDisplayState extends State<SSEDisplay> {
} catch (_) {} } catch (_) {}
return Card( 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), margin: const EdgeInsets.symmetric(vertical: 6, horizontal: 8),
elevation: 2, elevation: 2,
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(

View File

@@ -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 ## 🤝 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. 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.

View File

@@ -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 ## 🤝 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. 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.