Solian/lib/utils/theme.dart

14 lines
402 B
Dart
Raw Normal View History

2024-05-03 04:15:54 +00:00
import 'package:flutter/material.dart';
abstract class SolianTheme {
static bool isLargeScreen(BuildContext context) =>
2024-05-03 04:15:54 +00:00
MediaQuery.of(context).size.width > 640;
static ThemeData build(Brightness brightness) {
return ThemeData(
brightness: brightness,
useMaterial3: true,
colorScheme: ColorScheme.fromSeed(brightness: brightness, seedColor: Colors.indigo),
);
}
}