mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: dialog
This commit is contained in:
@@ -273,7 +273,7 @@ class _BangumiInfoState extends State<BangumiInfo>
|
|||||||
foregroundColor:
|
foregroundColor:
|
||||||
bangumiIntroController
|
bangumiIntroController
|
||||||
.isFollowed.value
|
.isFollowed.value
|
||||||
? t.colorScheme.onSurface
|
? t.colorScheme.outline
|
||||||
: null,
|
: null,
|
||||||
backgroundColor:
|
backgroundColor:
|
||||||
bangumiIntroController
|
bangumiIntroController
|
||||||
@@ -575,11 +575,10 @@ class _BangumiInfoState extends State<BangumiInfo>
|
|||||||
}
|
}
|
||||||
|
|
||||||
Widget _followDialog() {
|
Widget _followDialog() {
|
||||||
return Dialog(
|
return AlertDialog(
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
child: Padding(
|
contentPadding: const EdgeInsets.symmetric(vertical: 12),
|
||||||
padding: const EdgeInsets.symmetric(vertical: 16),
|
content: Column(
|
||||||
child: Column(
|
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
_followDialogItem(3, '看过'),
|
_followDialogItem(3, '看过'),
|
||||||
@@ -601,7 +600,6 @@ class _BangumiInfoState extends State<BangumiInfo>
|
|||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -153,10 +153,16 @@ class _MemberPageState extends State<MemberPage>
|
|||||||
onTap: () {
|
onTap: () {
|
||||||
showDialog(
|
showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (_) => Dialog(
|
builder: (_) => AlertDialog(
|
||||||
child: ReportPanel(
|
clipBehavior: Clip.hardEdge,
|
||||||
|
contentPadding: const EdgeInsets.symmetric(
|
||||||
|
horizontal: 20,
|
||||||
|
vertical: 16,
|
||||||
|
),
|
||||||
|
content: ReportPanel(
|
||||||
memberInfo: _memberController.memberInfo.value,
|
memberInfo: _memberController.memberInfo.value,
|
||||||
)),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
child: Row(
|
child: Row(
|
||||||
@@ -539,9 +545,7 @@ class _ReportPanelState extends State<ReportPanel> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Padding(
|
return SingleChildScrollView(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 16),
|
|
||||||
child: SingleChildScrollView(
|
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
@@ -617,7 +621,6 @@ class _ReportPanelState extends State<ReportPanel> {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user