environment_monitoring_app/lib/theme.dart
2025-08-04 15:11:24 +08:00

46 lines
1.5 KiB
Dart

import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
class AppTheme {
static ThemeData get darkBlueTheme {
return ThemeData(
brightness: Brightness.dark,
primaryColor: Colors.blue[900],
scaffoldBackgroundColor: Colors.grey[900],
appBarTheme: AppBarTheme(
backgroundColor: Colors.blue[900],
foregroundColor: Colors.white,
elevation: 0,
titleTextStyle: GoogleFonts.roboto(
fontSize: 20,
fontWeight: FontWeight.bold,
color: Colors.white,
),
),
textTheme: GoogleFonts.robotoTextTheme().apply(
bodyColor: Colors.white,
displayColor: Colors.white,
),
elevatedButtonTheme: ElevatedButtonThemeData(
style: ElevatedButton.styleFrom(
backgroundColor: Colors.blue[800],
foregroundColor: Colors.white,
padding: EdgeInsets.symmetric(horizontal: 16, vertical: 12),
textStyle: TextStyle(fontSize: 16, fontWeight: FontWeight.w500),
),
),
inputDecorationTheme: InputDecorationTheme(
filled: true,
fillColor: Colors.grey[850],
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(8),
),
hintStyle: TextStyle(color: Colors.white70),
labelStyle: TextStyle(color: Colors.white),
),
cardColor: Colors.grey[850],
iconTheme: IconThemeData(color: Colors.white),
dividerColor: Colors.white24,
);
}
}