- NymeaService : auth complète (Hello → Authenticate → SetNotificationStatus) - Token top-level dans chaque requête JSON-RPC (fix critique GetThings) - Persistance token via shared_preferences par hôte - Dashboard : champs utilisateur/mot de passe dans le dialog de connexion - ThingDetailScreen : renommer, réglages (settingsTypes) et supprimer - NymeaThingClass : champ settingsTypes parsé depuis l'API - NymeaThing : copyWith(name) + settingValue() - Fix overflow _StateChip dans ThingsScreen Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
37 lines
1.3 KiB
Dart
37 lines
1.3 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
class AppTheme {
|
|
// Colors
|
|
static const Color primaryGreen = Color(0xFF4CAF50);
|
|
static const Color solarYellow = Color(0xFFF5C842);
|
|
static const Color gridGray = Color(0xFF5A6473);
|
|
static const Color homeBlue = Color(0xFF5BA4CF);
|
|
static const Color batteryGreen = Color(0xFF4CAF50);
|
|
static const Color accentOrange = Color(0xFFFF7043);
|
|
static const Color backgroundGray = Color(0xFFF0F2F5);
|
|
static const Color cardWhite = Color(0xFFFFFFFF);
|
|
static const Color textDark = Color(0xFF1A1A2E);
|
|
static const Color textLight = Color(0xFF6B7280);
|
|
static const Color boostRed = Color(0xFFEF5350);
|
|
static const Color pvGreen = Color(0xFF43A047);
|
|
static const Color minPvBlue = Color(0xFF42A5F5);
|
|
|
|
static ThemeData get theme => ThemeData(
|
|
colorScheme: ColorScheme.fromSeed(
|
|
seedColor: primaryGreen,
|
|
surface: backgroundGray,
|
|
),
|
|
scaffoldBackgroundColor: backgroundGray,
|
|
cardTheme: CardThemeData(
|
|
color: cardWhite,
|
|
elevation: 0,
|
|
shape: RoundedRectangleBorder(
|
|
borderRadius: BorderRadius.circular(16),
|
|
),
|
|
margin: EdgeInsets.zero,
|
|
),
|
|
fontFamily: 'Roboto',
|
|
useMaterial3: true,
|
|
);
|
|
}
|