mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-25 18:48:43 +00:00
@@ -40,7 +40,6 @@ import 'package:PiliPlus/utils/page_utils.dart';
|
|||||||
import 'package:PiliPlus/utils/platform_utils.dart';
|
import 'package:PiliPlus/utils/platform_utils.dart';
|
||||||
import 'package:PiliPlus/utils/utils.dart';
|
import 'package:PiliPlus/utils/utils.dart';
|
||||||
import 'package:extended_nested_scroll_view/extended_nested_scroll_view.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/material.dart';
|
||||||
import 'package:flutter_cache_manager/flutter_cache_manager.dart';
|
import 'package:flutter_cache_manager/flutter_cache_manager.dart';
|
||||||
import 'package:flutter_smart_dialog/flutter_smart_dialog.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(
|
PopupMenuItem(
|
||||||
onTap: _createShortcut,
|
onTap: _createShortcut,
|
||||||
child: const Row(
|
child: const Row(
|
||||||
|
|||||||
@@ -880,11 +880,17 @@ class UserInfoCard extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
];
|
];
|
||||||
if (children.isNotEmpty) {
|
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(
|
return Padding(
|
||||||
padding: const .only(left: 20, right: 20, top: 6),
|
padding: const .only(left: 20, right: 20, top: 6),
|
||||||
child: isPortrait
|
child: child,
|
||||||
? Row(mainAxisAlignment: .spaceBetween, children: children)
|
|
||||||
: Wrap(spacing: 10, runSpacing: 6, children: children),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@@ -33,6 +33,8 @@ class MemberGuardController
|
|||||||
tops = list.take(3).toList();
|
tops = list.take(3).toList();
|
||||||
if (list.length > 3) {
|
if (list.length > 3) {
|
||||||
list.removeRange(0, 3);
|
list.removeRange(0, 3);
|
||||||
|
} else {
|
||||||
|
list.clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user