Share via image

This commit is contained in:
2024-10-13 23:12:23 +08:00
parent 6c32d76f78
commit ad7a34ec18
12 changed files with 165 additions and 19 deletions

View File

@@ -21,8 +21,7 @@ class AuditLogScreen extends StatefulWidget {
class _AuditLogScreenState extends State<AuditLogScreen> {
bool _isBusy = true;
int _totalEvent = 0;
List<AuditEvent> _events = List.empty(growable: true);
final List<AuditEvent> _events = List.empty(growable: true);
Future<void> _getEvents() async {
if (!_isBusy) setState(() => _isBusy = true);
@@ -38,7 +37,6 @@ class _AuditLogScreenState extends State<AuditLogScreen> {
final result = PaginationResult.fromJson(resp.body);
setState(() {
_totalEvent = result.count;
_events.addAll(
result.data?.map((x) => AuditEvent.fromJson(x)).toList() ??
List.empty(),

View File

@@ -588,8 +588,6 @@ class _AccountProfilePageState extends State<AccountProfilePage> {
color:
Theme.of(context).colorScheme.surfaceContainerLow,
child: PostListEntryWidget(
backgroundColor:
Theme.of(context).colorScheme.surfaceContainerLow,
item: element,
isClickable: true,
isNestedClickable: true,