refine multi-code detail entry
This commit is contained in:
@@ -1604,13 +1604,13 @@ class _BoxingPageState extends State<BoxingPage> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 10),
|
const SizedBox(width: 10),
|
||||||
_buildSingleDetailButton(detailEnabled, colorScheme),
|
_buildDetailButton(detailEnabled, colorScheme),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildSingleDetailButton(bool enabled, ColorScheme colorScheme) {
|
Widget _buildDetailButton(bool enabled, ColorScheme colorScheme) {
|
||||||
final foreground = enabled ? colorScheme.primary : Colors.grey.shade400;
|
final foreground = enabled ? colorScheme.primary : Colors.grey.shade400;
|
||||||
final background = enabled ? Colors.blue.shade50 : Colors.grey.shade100;
|
final background = enabled ? Colors.blue.shade50 : Colors.grey.shade100;
|
||||||
final border = enabled ? colorScheme.primary : Colors.grey.shade300;
|
final border = enabled ? colorScheme.primary : Colors.grey.shade300;
|
||||||
@@ -2217,24 +2217,8 @@ class _BoxingPageState extends State<BoxingPage> {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// Detail link
|
const SizedBox(width: 10),
|
||||||
TextButton(
|
_buildDetailButton(hasDetail, Theme.of(context).colorScheme),
|
||||||
onPressed: hasDetail ? _openDetail : null,
|
|
||||||
style: TextButton.styleFrom(
|
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 4),
|
|
||||||
minimumSize: Size.zero,
|
|
||||||
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
|
||||||
),
|
|
||||||
child: Text(
|
|
||||||
'详情',
|
|
||||||
style: TextStyle(
|
|
||||||
fontSize: 11,
|
|
||||||
color: hasDetail
|
|
||||||
? Theme.of(context).colorScheme.primary
|
|
||||||
: Colors.grey.shade400,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user