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,

View File

@ -393,9 +393,6 @@ class _DashboardScreenState extends State<DashboardScreen> {
vertical: 8,
horizontal: 4,
),
backgroundColor: Theme.of(context)
.colorScheme
.surfaceContainerLow,
),
),
),

View File

@ -160,13 +160,13 @@ class _ExploreScreenState extends State<ExploreScreen>
toolbarHeight: AppTheme.toolbarHeight(context),
leading: AppBarLeadingButton.adaptive(context),
actions: [
const BackgroundStateWidget(),
IconButton(
icon: const Icon(Icons.search),
onPressed: () {
AppRouter.instance.pushNamed('postSearch');
},
),
const BackgroundStateWidget(),
const NotificationButton(),
SizedBox(
width: AppTheme.isLargeScreen(context) ? 8 : 16,