45 lines
1.4 KiB
Dart
45 lines
1.4 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
class AppTheme {
|
|
// Dark WhatsApp Palette
|
|
static const Color background = Color(0xff111b21);
|
|
static const Color surface = Color(0xff1f2c34);
|
|
static const Color surfaceLight = Color(0xff2a3942);
|
|
static const Color primary = Color(0xff00a884);
|
|
static const Color primaryDark = Color(0xff005c4b);
|
|
|
|
static const Color outgoingMsg = Color(0xff005c4b);
|
|
static const Color incomingMsg = Color(0xff1f2c34);
|
|
|
|
static const Color textPrimary = Color(0xffe9edef);
|
|
static const Color textSecondary = Color(0xff8696a0);
|
|
static const Color iconColor = Color(0xff8696a0);
|
|
|
|
static ThemeData get dark {
|
|
return ThemeData.dark().copyWith(
|
|
scaffoldBackgroundColor: background,
|
|
primaryColor: primary,
|
|
colorScheme: const ColorScheme.dark(
|
|
primary: primary,
|
|
background: background,
|
|
surface: surface,
|
|
),
|
|
appBarTheme: const AppBarTheme(
|
|
backgroundColor: surface,
|
|
elevation: 0,
|
|
iconTheme: IconThemeData(color: iconColor),
|
|
titleTextStyle: TextStyle(
|
|
color: textPrimary,
|
|
fontSize: 20,
|
|
fontWeight: FontWeight.bold,
|
|
),
|
|
),
|
|
textSelectionTheme: const TextSelectionThemeData(
|
|
cursorColor: primary,
|
|
selectionColor: primaryDark,
|
|
selectionHandleColor: primary,
|
|
),
|
|
);
|
|
}
|
|
}
|