2023-02-28 18:22:18 +02:00
|
|
|
import 'package:flutter/material.dart';
|
2023-11-09 18:19:53 +02:00
|
|
|
import 'package:immich_mobile/extensions/build_context_extensions.dart';
|
2023-02-28 18:22:18 +02: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 19:14:59 +02:00
|
|
|
return Image(
|
|
|
|
image: AssetImage(
|
|
|
|
context.isDarkTheme
|
|
|
|
? 'assets/immich-text-dark.png'
|
|
|
|
: 'assets/immich-text-light.png',
|
2023-02-28 18:22:18 +02:00
|
|
|
),
|
2024-03-13 19:14:59 +02:00
|
|
|
width: fontSize * 4,
|
|
|
|
filterQuality: FilterQuality.high,
|
2023-02-28 18:22:18 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|