diff --git a/lib/widgets/sse_display.dart b/lib/widgets/sse_display.dart index 0d189073..87ffcc2b 100644 --- a/lib/widgets/sse_display.dart +++ b/lib/widgets/sse_display.dart @@ -34,7 +34,9 @@ class _SSEDisplayState extends State { } 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( diff --git a/packages/better_networking/README.md b/packages/better_networking/README.md index 7c84dade..c380da1b 100644 --- a/packages/better_networking/README.md +++ b/packages/better_networking/README.md @@ -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. diff --git a/packages/better_networking/better_networking_example/README.md b/packages/better_networking/better_networking_example/README.md index b39281e3..61a0e8e4 100644 --- a/packages/better_networking/better_networking_example/README.md +++ b/packages/better_networking/better_networking_example/README.md @@ -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.