dont know what i did
This commit is contained in:
@@ -67,18 +67,35 @@ class SettingsScreen extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
// Hit colour and target design are picked in one sheet
|
||||
// The target itself is the row's icon, with the hit colour
|
||||
// as a dot on it; names in the subtitle
|
||||
SettingsTile(
|
||||
icon: Icons.track_changes_rounded,
|
||||
title: t('Hits and target'),
|
||||
valueLeading: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
_ColorDot(s.bulletColor, size: 16),
|
||||
const SizedBox(width: 8),
|
||||
TargetThumb(s.target, size: 26),
|
||||
],
|
||||
leading: SizedBox(
|
||||
width: 34,
|
||||
height: 34,
|
||||
child: Stack(
|
||||
clipBehavior: Clip.none,
|
||||
children: [
|
||||
TargetThumb(s.target, size: 34),
|
||||
Positioned(
|
||||
right: -3,
|
||||
bottom: -3,
|
||||
child: Container(
|
||||
width: 14,
|
||||
height: 14,
|
||||
decoration: BoxDecoration(
|
||||
color: s.bulletColor,
|
||||
shape: BoxShape.circle,
|
||||
border: Border.all(color: c.card, width: 2),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
value: s.target.name(s.language),
|
||||
title: t('Hits and target'),
|
||||
subtitle: '${s.target.name(s.language)} · '
|
||||
'${s.holidayColorActive ? s.holiday!.name : t(s.bulletColorName)}',
|
||||
onTap: () => showAppearanceSheet(context),
|
||||
),
|
||||
]),
|
||||
@@ -383,7 +400,7 @@ void showAppearanceSheet(BuildContext context) {
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
SheetTitle(s.t('Appearance'), trailing: TargetThumb(s.target, size: 52)),
|
||||
SheetTitle(s.t('Hits and target')),
|
||||
Kicker(s.t('Bullet color'), padding: const EdgeInsets.only(bottom: 12)),
|
||||
// During a holiday its colour gets its own line first (and is the
|
||||
// one in use until another is picked)
|
||||
|
||||
Reference in New Issue
Block a user