mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 16:48:16 +08:00
opt: color picker: show type
This commit is contained in:
@@ -113,9 +113,41 @@ class _SponsorBlockPageState extends State<SponsorBlockPage> {
|
|||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
contentPadding:
|
contentPadding:
|
||||||
const EdgeInsets.symmetric(vertical: 16),
|
const EdgeInsets.symmetric(vertical: 16),
|
||||||
title: const Text(
|
title: Text.rich(
|
||||||
'Color Picker',
|
style: TextStyle(height: 1),
|
||||||
style: TextStyle(fontSize: 18),
|
strutStyle: StrutStyle(height: 1, leading: 0),
|
||||||
|
TextSpan(
|
||||||
|
children: [
|
||||||
|
TextSpan(
|
||||||
|
text: 'Color Picker\n',
|
||||||
|
style: TextStyle(fontSize: 18, height: 1.5),
|
||||||
|
),
|
||||||
|
WidgetSpan(
|
||||||
|
alignment: PlaceholderAlignment.middle,
|
||||||
|
child: Container(
|
||||||
|
height: MediaQuery.textScalerOf(context)
|
||||||
|
.scale(16),
|
||||||
|
width: MediaQuery.textScalerOf(context)
|
||||||
|
.scale(16),
|
||||||
|
alignment: Alignment.center,
|
||||||
|
child: Container(
|
||||||
|
height: 10,
|
||||||
|
width: 10,
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
shape: BoxShape.circle,
|
||||||
|
color: _blockColor[index - 1],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
style: TextStyle(fontSize: 16, height: 1),
|
||||||
|
),
|
||||||
|
TextSpan(
|
||||||
|
text:
|
||||||
|
' ${_blockSettings[index - 1].first.name}',
|
||||||
|
style: TextStyle(fontSize: 16, height: 1),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
content: SlideColorPicker(
|
content: SlideColorPicker(
|
||||||
color: _blockColor[index - 1],
|
color: _blockColor[index - 1],
|
||||||
|
|||||||
Reference in New Issue
Block a user