Browse Source

Fix active session visiblity for light theme

Neeraj Gupta 3 năm trước cách đây
mục cha
commit
d0ff942149
1 tập tin đã thay đổi với 9 bổ sung3 xóa
  1. 9 3
      lib/ui/sessions_page.dart

+ 9 - 3
lib/ui/sessions_page.dart

@@ -30,7 +30,7 @@ class _SessionsPageState extends State<SessionsPage> {
   Widget build(BuildContext context) {
     return Scaffold(
       appBar: AppBar(
-        title: Text("active sessions"),
+        title: Text("Active sessions"),
       ),
       body: _getBody(),
     );
@@ -75,7 +75,10 @@ class _SessionsPageState extends State<SessionsPage> {
                       child: Text(
                         session.ip,
                         style: TextStyle(
-                          color: Colors.white.withOpacity(0.8),
+                          color: Theme.of(context)
+                              .colorScheme
+                              .onSurface
+                              .withOpacity(0.8),
                           fontSize: 14,
                         ),
                       ),
@@ -85,7 +88,10 @@ class _SessionsPageState extends State<SessionsPage> {
                       child: Text(
                         getFormattedTime(lastUsedTime),
                         style: TextStyle(
-                          color: Colors.white.withOpacity(0.8),
+                          color: Theme.of(context)
+                              .colorScheme
+                              .onSurface
+                              .withOpacity(0.8),
                           fontSize: 12,
                         ),
                       ),