17 lines
492 B
Dart
17 lines
492 B
Dart
import "package:flutter/material.dart";
|
|
|
|
extension SchemeToTheme on ColorScheme {
|
|
ThemeData get theme => ThemeData.from(colorScheme: this).copyWith(
|
|
textTheme: ThemeData(
|
|
fontFamilyFallback: ["sans", "emoji"],
|
|
brightness: brightness,
|
|
).textTheme,
|
|
inputDecorationTheme: const InputDecorationTheme(
|
|
border: OutlineInputBorder(),
|
|
),
|
|
popupMenuTheme: PopupMenuThemeData(
|
|
color: Colors.transparent,
|
|
shadowColor: Colors.transparent,
|
|
),
|
|
);
|
|
}
|