Skip to content

Commit

Permalink
few changes
Browse files Browse the repository at this point in the history
  • Loading branch information
orl0pl committed Jul 19, 2023
1 parent ed9c493 commit 7594321
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 0 additions & 5 deletions lib/pages/settings/settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,6 @@ class AppearanceConfigPage extends StatelessWidget {
}
},
),
SwitchListTile.adaptive(
title: Text(L10n.of(context).amoled_dark_mode),
value: state.amoledWanted,
onChanged: (checked) => state.switchamoled(),
),
ListTile(
title: Wrap(
spacing: 10,
Expand Down
7 changes: 5 additions & 2 deletions lib/widgets/post/post_title.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import 'package:flutter/material.dart';
import 'package:flutter_hooks/flutter_hooks.dart';

import '../../hooks/stores.dart';
import '../../stores/accounts_store.dart';
import '../../stores/config_store.dart';
import '../../util/extensions/api.dart';
import '../../util/observer_consumers.dart';
import 'post_store.dart';

Expand All @@ -12,17 +14,18 @@ class PostTitle extends HookWidget {
@override
Widget build(BuildContext context) {
final configStore = useStore((ConfigStore store) => store);

return ObserverBuilder<PostStore>(
builder: (context, store) {
final post = store.postView.post;

return Padding(
padding: const EdgeInsets.all(10).copyWith(top: 0, bottom: 5),
child: Row(
children: [

Expanded(
child: Text(
post.name,
post.name,
textAlign: TextAlign.left,
softWrap: true,
style: TextStyle(
Expand Down

0 comments on commit 7594321

Please sign in to comment.