Solian/lib/theme.dart

19 lines
520 B
Dart
Raw Normal View History

2024-05-18 10:17:16 +00:00
import 'package:flutter/material.dart';
abstract class SolianTheme {
static bool isLargeScreen(BuildContext context) =>
MediaQuery.of(context).size.width > 640;
2024-06-02 14:45:54 +00:00
static bool isExtraLargeScreen(BuildContext context) =>
MediaQuery.of(context).size.width > 720;
2024-05-18 10:17:16 +00:00
static ThemeData build(Brightness brightness) {
return ThemeData(
brightness: brightness,
useMaterial3: true,
2024-06-02 14:45:54 +00:00
colorScheme: ColorScheme.fromSeed(
brightness: brightness, seedColor: Colors.indigo),
2024-05-18 10:17:16 +00:00
);
}
2024-06-02 14:45:54 +00:00
}