mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
@@ -40,7 +40,6 @@ import 'package:PiliPlus/utils/page_utils.dart';
|
||||
import 'package:PiliPlus/utils/platform_utils.dart';
|
||||
import 'package:PiliPlus/utils/utils.dart';
|
||||
import 'package:extended_nested_scroll_view/extended_nested_scroll_view.dart';
|
||||
import 'package:flutter/foundation.dart' show kDebugMode;
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_cache_manager/flutter_cache_manager.dart';
|
||||
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
||||
@@ -383,7 +382,7 @@ class _MemberPageState extends State<MemberPage> {
|
||||
],
|
||||
),
|
||||
),
|
||||
if (kDebugMode || PlatformUtils.isMobile)
|
||||
if (PlatformUtils.isMobile)
|
||||
PopupMenuItem(
|
||||
onTap: _createShortcut,
|
||||
child: const Row(
|
||||
|
||||
@@ -880,11 +880,17 @@ class UserInfoCard extends StatelessWidget {
|
||||
),
|
||||
];
|
||||
if (children.isNotEmpty) {
|
||||
Widget child;
|
||||
if (children.length == 1) {
|
||||
child = children.first;
|
||||
} else {
|
||||
child = isPortrait
|
||||
? Row(mainAxisAlignment: .spaceBetween, children: children)
|
||||
: Wrap(spacing: 10, runSpacing: 6, children: children);
|
||||
}
|
||||
return Padding(
|
||||
padding: const .only(left: 20, right: 20, top: 6),
|
||||
child: isPortrait
|
||||
? Row(mainAxisAlignment: .spaceBetween, children: children)
|
||||
: Wrap(spacing: 10, runSpacing: 6, children: children),
|
||||
child: child,
|
||||
);
|
||||
}
|
||||
return null;
|
||||
|
||||
@@ -33,6 +33,8 @@ class MemberGuardController
|
||||
tops = list.take(3).toList();
|
||||
if (list.length > 3) {
|
||||
list.removeRange(0, 3);
|
||||
} else {
|
||||
list.clear();
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user