Browse Source

set tab color

heavyrain 3 months ago
parent
commit
77454cb6bd
1 changed files with 4 additions and 4 deletions
  1. 4 4
      lib/index_page.dart

+ 4 - 4
lib/index_page.dart

@@ -32,10 +32,10 @@ class _IndexPageState extends State<IndexPage>
     
     // Initialize tabs with screen adaptation
     _tabs = [
-      Tab(child: Text('Alarm', style: TextStyle(fontSize: 16.sp))),
-      Tab(child: Text('Clock', style: TextStyle(fontSize: 16.sp))),
-      Tab(child: Text('Stopwatch', style: TextStyle(fontSize: 16.sp))),
-      Tab(child: Text('Timer', style: TextStyle(fontSize: 16.sp))),
+      Tab(child: Text('Alarm', style: TextStyle(fontSize: 16.sp, color: Colors.black))),
+      Tab(child: Text('Clock', style: TextStyle(fontSize: 16.sp, color: Colors.black))),
+      Tab(child: Text('Stopwatch', style: TextStyle(fontSize: 16.sp, color: Colors.black))),
+      Tab(child: Text('Timer', style: TextStyle(fontSize: 16.sp, color: Colors.black))),  
     ];
     
   }