mirror of
https://github.com/haorendashu/nowser.git
synced 2025-12-17 18:04:18 +01:00
10 lines
267 B
Dart
10 lines
267 B
Dart
// Add some support to get value from theme data.
|
|
import 'package:flutter/material.dart';
|
|
|
|
class ThemeUtil {
|
|
static Color getDialogCoverColor(ThemeData themeData) {
|
|
return (themeData.textTheme.bodyMedium!.color ?? Colors.black)
|
|
.withOpacity(0.2);
|
|
}
|
|
}
|