🐛 Fix remain bugs
This commit is contained in:
parent
1ad42e6505
commit
00863b94e8
@ -255,8 +255,9 @@ class PostWriteController extends ChangeNotifier {
|
||||
List.from(post.categories.map((ele) => ele.alias), growable: true);
|
||||
attachments.addAll(
|
||||
post.body['attachments']
|
||||
?.where((ele) => SnAttachment.fromJson(ele))
|
||||
?.map(PostWriteMedia) ??
|
||||
?.map((ele) => SnAttachment.fromJson(ele))
|
||||
?.map((ele) => PostWriteMedia(ele))
|
||||
?.cast<PostWriteMedia>() ??
|
||||
[],
|
||||
);
|
||||
poll = post.poll;
|
||||
|
@ -11,7 +11,6 @@ import 'package:styled_widget/styled_widget.dart';
|
||||
import 'package:surface/providers/notification.dart';
|
||||
import 'package:surface/providers/sn_network.dart';
|
||||
import 'package:surface/types/notification.dart';
|
||||
import 'package:surface/widgets/app_bar_leading.dart';
|
||||
import 'package:surface/widgets/dialog.dart';
|
||||
import 'package:surface/widgets/loading_indicator.dart';
|
||||
import 'package:surface/widgets/markdown_content.dart';
|
||||
@ -156,7 +155,7 @@ class _NotificationScreenState extends State<NotificationScreen> {
|
||||
|
||||
return AppScaffold(
|
||||
appBar: AppBar(
|
||||
leading: AutoAppBarLeading(),
|
||||
leading: PageBackButton(),
|
||||
title: Text('screenNotification').tr(),
|
||||
actions: [
|
||||
IconButton(
|
||||
|
@ -100,6 +100,7 @@ class _AppNavigationDrawerState extends State<AppNavigationDrawer> {
|
||||
contentPadding: EdgeInsets.symmetric(horizontal: 24),
|
||||
leading: AccountImage(
|
||||
content: ua.user?.avatar,
|
||||
backgroundColor: Colors.transparent,
|
||||
fallbackWidget:
|
||||
ua.isAuthorized ? null : const Icon(Symbols.login),
|
||||
),
|
||||
@ -122,15 +123,6 @@ class _AppNavigationDrawerState extends State<AppNavigationDrawer> {
|
||||
Scaffold.of(context).closeDrawer();
|
||||
},
|
||||
),
|
||||
IconButton(
|
||||
icon: const Icon(Symbols.settings, fill: 1),
|
||||
padding: EdgeInsets.zero,
|
||||
visualDensity: VisualDensity.compact,
|
||||
onPressed: () {
|
||||
GoRouter.of(context).pushNamed('settings');
|
||||
Scaffold.of(context).closeDrawer();
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
onTap: () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user