forked from Henry-Hiles/nexus
14 lines
414 B
Dart
14 lines
414 B
Dart
import "package:flutter/material.dart";
|
|
|
|
extension SchemeToTheme on ColorScheme {
|
|
ThemeData get theme => ThemeData.from(colorScheme: this).copyWith(
|
|
cardTheme: CardThemeData(color: primaryContainer),
|
|
appBarTheme: AppBarTheme(
|
|
titleSpacing: 0,
|
|
backgroundColor: surfaceContainerLow,
|
|
),
|
|
inputDecorationTheme: const InputDecorationTheme(
|
|
border: OutlineInputBorder(),
|
|
),
|
|
);
|
|
}
|