watch_theme_header.dart
970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import 'package:flutter/material.dart';
import 'package:doublefeel_flutter/l10n/l10n_extensions.dart';
import 'watch_face_preview.dart';
import 'watch_theme_colors.dart';
class WatchThemeHeader extends StatelessWidget {
const WatchThemeHeader({
super.key,
this.title,
this.themeImageUrl,
});
final String? title;
final String? themeImageUrl;
@override
Widget build(BuildContext context) {
return Column(
children: [
SizedBox(height: 12),
Center(
child: WatchFacePreview(
type: WatchFacePreviewType.singleMedium,
themeImageUrl: themeImageUrl,
),
),
SizedBox(height: 12),
Text(
title ?? context.l10n.watchThemeDefaultTheme,
style: TextStyle(
color: WatchThemeColors.textPrimary,
fontSize: 20,
fontWeight: FontWeight.w600,
height: 1.25,
),
),
],
);
}
}