mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-15 22:56:15 +08:00
opt: some widgets
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -24,7 +24,13 @@ void autoWrapReportDialog(
|
|||||||
actionsPadding: const EdgeInsets.only(left: 16, right: 16, bottom: 10),
|
actionsPadding: const EdgeInsets.only(left: 16, right: 16, bottom: 10),
|
||||||
content: Builder(
|
content: Builder(
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
return SingleChildScrollView(
|
return Column(
|
||||||
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Flexible(
|
||||||
|
child: Material(
|
||||||
|
child: SingleChildScrollView(
|
||||||
child: AnimatedSize(
|
child: AnimatedSize(
|
||||||
duration: const Duration(milliseconds: 200),
|
duration: const Duration(milliseconds: 200),
|
||||||
child: Column(
|
child: Column(
|
||||||
@@ -48,12 +54,14 @@ void autoWrapReportDialog(
|
|||||||
child: Text(
|
child: Text(
|
||||||
title.key,
|
title.key,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color:
|
color: Theme.of(context)
|
||||||
Theme.of(context).colorScheme.outline),
|
.colorScheme
|
||||||
|
.outline),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 12),
|
padding: const EdgeInsets.symmetric(
|
||||||
|
horizontal: 12),
|
||||||
child: Wrap(
|
child: Wrap(
|
||||||
children: title.value.entries.map((opt) {
|
children: title.value.entries.map((opt) {
|
||||||
return IntrinsicWidth(
|
return IntrinsicWidth(
|
||||||
@@ -61,11 +69,13 @@ void autoWrapReportDialog(
|
|||||||
value: opt.key,
|
value: opt.key,
|
||||||
groupValue: reasonType,
|
groupValue: reasonType,
|
||||||
title: opt.value,
|
title: opt.value,
|
||||||
padding: const EdgeInsets.only(right: 10),
|
padding: const EdgeInsets.only(
|
||||||
|
right: 10),
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
reasonType = value;
|
reasonType = value;
|
||||||
if (context.mounted) {
|
if (context.mounted) {
|
||||||
(context as Element?)?.markNeedsBuild();
|
(context as Element?)
|
||||||
|
?.markNeedsBuild();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
@@ -94,7 +104,8 @@ void autoWrapReportDialog(
|
|||||||
LengthLimitingTextInputFormatter(60),
|
LengthLimitingTextInputFormatter(60),
|
||||||
],
|
],
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
labelText: '为帮助审核人员更快处理,请补充问题类型和出现位置等详细信息',
|
labelText:
|
||||||
|
'为帮助审核人员更快处理,请补充问题类型和出现位置等详细信息',
|
||||||
border: OutlineInputBorder(),
|
border: OutlineInputBorder(),
|
||||||
contentPadding: EdgeInsets.all(10),
|
contentPadding: EdgeInsets.all(10),
|
||||||
),
|
),
|
||||||
@@ -108,6 +119,12 @@ void autoWrapReportDialog(
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
banUid = !banUid;
|
banUid = !banUid;
|
||||||
@@ -124,9 +141,7 @@ void autoWrapReportDialog(
|
|||||||
: Icons.check_box_outline_blank,
|
: Icons.check_box_outline_blank,
|
||||||
color: banUid
|
color: banUid
|
||||||
? Theme.of(context).colorScheme.primary
|
? Theme.of(context).colorScheme.primary
|
||||||
: Theme.of(context)
|
: Theme.of(context).colorScheme.onSurfaceVariant,
|
||||||
.colorScheme
|
|
||||||
.onSurfaceVariant,
|
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
' 拉黑该用户',
|
' 拉黑该用户',
|
||||||
@@ -141,8 +156,6 @@ void autoWrapReportDialog(
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -99,7 +99,6 @@ class HomeController extends GetxController with GetTickerProviderStateMixin {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void dispose() {
|
void dispose() {
|
||||||
tabController.animation?.removeListener(() {});
|
|
||||||
tabController.dispose();
|
tabController.dispose();
|
||||||
super.dispose();
|
super.dispose();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -299,6 +299,7 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
|
|||||||
child: videoItem['staff'] == null
|
child: videoItem['staff'] == null
|
||||||
? GestureDetector(
|
? GestureDetector(
|
||||||
onTap: onPushMember,
|
onTap: onPushMember,
|
||||||
|
behavior: HitTestBehavior.opaque,
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
|||||||
@@ -377,6 +377,21 @@ class _SendDanmakuPanelState extends CommonPublishPageState<SendDanmakuPanel> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Obx(
|
||||||
|
() => enablePublish.value
|
||||||
|
? iconButton(
|
||||||
|
context: context,
|
||||||
|
bgColor: Colors.transparent,
|
||||||
|
iconSize: 22,
|
||||||
|
iconColor: themeData.colorScheme.onSurfaceVariant,
|
||||||
|
onPressed: () {
|
||||||
|
editController.clear();
|
||||||
|
enablePublish.value = false;
|
||||||
|
},
|
||||||
|
icon: Icons.clear,
|
||||||
|
)
|
||||||
|
: const SizedBox.shrink(),
|
||||||
|
),
|
||||||
const SizedBox(width: 12),
|
const SizedBox(width: 12),
|
||||||
Obx(
|
Obx(
|
||||||
() => iconButton(
|
() => iconButton(
|
||||||
|
|||||||
Reference in New Issue
Block a user