run dartfmt

This commit is contained in:
shilangyu 2020-09-30 19:37:56 +02:00
parent 94d12fccff
commit aa5d9832d6
4 changed files with 4 additions and 5 deletions

View File

@ -10,7 +10,7 @@ import '../widgets/user_profile.dart';
import 'settings.dart';
/// Profile page for a logged in user. The difference between this and
/// UserPage is that here you have access to settings
/// UserPage is that here you have access to settings
class UserProfileTab extends HookWidget {
UserProfileTab();

View File

@ -5,7 +5,6 @@ import 'package:lemmy_api_client/lemmy_api_client.dart';
import '../widgets/user_profile.dart';
/// Page showing posts, comments, and general info about a user.
class UserPage extends HookWidget {
final int userId;

View File

@ -88,7 +88,7 @@ abstract class _AccountsStore with Store {
void load() async {
final prefs = await SharedPreferences.getInstance();
// I barely understand what I did. Long story short it asserts a
// I barely understand what I did. Long story short it asserts a
// raw json into a nested ObservableMap
nestedMapsCast<T>(String key, T f(Map<String, dynamic> json)) =>
ObservableMap.of(
@ -122,7 +122,7 @@ abstract class _AccountsStore with Store {
}
/// Map containing JWT tokens of specific users.
/// If a token is in this map, the user is considered logged in
/// If a token is in this map, the user is considered logged in
/// for that account.
/// `tokens['instanceUrl']['username']`
@observable

View File

@ -427,7 +427,7 @@ class Post extends HookWidget {
else if (post.url != null && post.url.isNotEmpty)
linkPreview(),
if (post.body != null)
// TODO: trim content
// TODO: trim content
Padding(
padding: const EdgeInsets.all(10),
child: MarkdownText(post.body, instanceUrl: instanceUrl)),