25 lines
717 B
Dart
25 lines
717 B
Dart
|
|
import 'package:flutter/material.dart';
|
||
|
|
|
||
|
|
class AppTheme {
|
||
|
|
static const _seed = Color(0xFF2d6a4f);
|
||
|
|
|
||
|
|
static ThemeData light() {
|
||
|
|
final scheme = ColorScheme.fromSeed(seedColor: _seed);
|
||
|
|
return ThemeData(
|
||
|
|
useMaterial3: true,
|
||
|
|
colorScheme: scheme,
|
||
|
|
cardTheme: CardThemeData(
|
||
|
|
elevation: 0,
|
||
|
|
shape: RoundedRectangleBorder(
|
||
|
|
borderRadius: BorderRadius.circular(12),
|
||
|
|
side: BorderSide(color: scheme.outlineVariant),
|
||
|
|
),
|
||
|
|
),
|
||
|
|
inputDecorationTheme: InputDecorationTheme(
|
||
|
|
border: OutlineInputBorder(borderRadius: BorderRadius.circular(10)),
|
||
|
|
contentPadding: const EdgeInsets.symmetric(horizontal: 14, vertical: 12),
|
||
|
|
),
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|