2023-02-28 17:22:18 +01:00
|
|
|
import 'package:flutter/material.dart';
|
2023-11-09 17:19:53 +01:00
|
|
|
import 'package:immich_mobile/extensions/build_context_extensions.dart';
|
2023-02-28 17:22:18 +01:00
|
|
|
|
|
|
|
class ImmichTitleText extends StatelessWidget {
|
|
|
|
final double fontSize;
|
|
|
|
final Color? color;
|
|
|
|
|
|
|
|
const ImmichTitleText({
|
|
|
|
super.key,
|
|
|
|
this.fontSize = 48,
|
|
|
|
this.color,
|
|
|
|
});
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
2024-03-13 18:14:59 +01:00
|
|
|
return Image(
|
|
|
|
image: AssetImage(
|
|
|
|
context.isDarkTheme
|
|
|
|
? 'assets/immich-text-dark.png'
|
|
|
|
: 'assets/immich-text-light.png',
|
2023-02-28 17:22:18 +01:00
|
|
|
),
|
2024-03-13 18:14:59 +01:00
|
|
|
width: fontSize * 4,
|
|
|
|
filterQuality: FilterQuality.high,
|
2024-08-06 16:20:27 +02:00
|
|
|
color: context.primaryColor,
|
2023-02-28 17:22:18 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|