feat: repost dynamic

This commit is contained in:
bggRGjQaUbCoE
2024-09-30 12:55:22 +08:00
parent 161d3244ba
commit 6077e51a4a
6 changed files with 336 additions and 17 deletions

View File

@@ -117,20 +117,16 @@ class _WhisperDetailPageState extends State<WhisperDetailPage>
child: IconButton(
tooltip: '返回',
style: ButtonStyle(
padding: MaterialStateProperty.all(EdgeInsets.zero),
backgroundColor: MaterialStateProperty.resolveWith(
(Set<MaterialState> states) {
return Theme.of(context)
.colorScheme
.primaryContainer
.withOpacity(0.6);
padding: WidgetStateProperty.all(EdgeInsets.zero),
backgroundColor: WidgetStateProperty.resolveWith((states) {
return Theme.of(context).colorScheme.secondaryContainer;
}),
),
onPressed: () => Get.back(),
onPressed: Get.back,
icon: Icon(
Icons.arrow_back_outlined,
size: 18,
color: Theme.of(context).colorScheme.onPrimaryContainer,
color: Theme.of(context).colorScheme.onSecondaryContainer,
),
),
),