opt: dialog

This commit is contained in:
bggRGjQaUbCoE
2024-10-04 20:39:25 +08:00
parent d850e891a0
commit 6c84b0c6cb
2 changed files with 103 additions and 102 deletions

View File

@@ -273,7 +273,7 @@ class _BangumiInfoState extends State<BangumiInfo>
foregroundColor:
bangumiIntroController
.isFollowed.value
? t.colorScheme.onSurface
? t.colorScheme.outline
: null,
backgroundColor:
bangumiIntroController
@@ -575,11 +575,10 @@ class _BangumiInfoState extends State<BangumiInfo>
}
Widget _followDialog() {
return Dialog(
return AlertDialog(
clipBehavior: Clip.hardEdge,
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 16),
child: Column(
contentPadding: const EdgeInsets.symmetric(vertical: 12),
content: Column(
mainAxisSize: MainAxisSize.min,
children: [
_followDialogItem(3, '看过'),
@@ -601,7 +600,6 @@ class _BangumiInfoState extends State<BangumiInfo>
)
],
),
),
);
}

View File

@@ -153,10 +153,16 @@ class _MemberPageState extends State<MemberPage>
onTap: () {
showDialog(
context: context,
builder: (_) => Dialog(
child: ReportPanel(
builder: (_) => AlertDialog(
clipBehavior: Clip.hardEdge,
contentPadding: const EdgeInsets.symmetric(
horizontal: 20,
vertical: 16,
),
content: ReportPanel(
memberInfo: _memberController.memberInfo.value,
)),
),
),
);
},
child: Row(
@@ -539,9 +545,7 @@ class _ReportPanelState extends State<ReportPanel> {
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 16),
child: SingleChildScrollView(
return SingleChildScrollView(
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
@@ -617,7 +621,6 @@ class _ReportPanelState extends State<ReportPanel> {
),
],
),
),
);
}
}