From dea66fe8bf0fb88f170864d3062a5667f9da4f43 Mon Sep 17 00:00:00 2001 From: shilangyu Date: Sat, 19 Sep 2020 00:40:47 +0200 Subject: [PATCH] hotfix: move api_extensions to dedicated folder --- lib/pages/communities_list.dart | 2 +- lib/pages/community.dart | 2 +- lib/pages/full_post.dart | 2 +- lib/pages/instance.dart | 2 +- lib/pages/profile_tab.dart | 2 +- lib/pages/users_list.dart | 2 +- lib/util/{api_extensions.dart => extensions/api.dart} | 0 lib/widgets/comment.dart | 2 +- lib/widgets/post.dart | 2 +- lib/widgets/user_profile.dart | 2 +- 10 files changed, 9 insertions(+), 9 deletions(-) rename lib/util/{api_extensions.dart => extensions/api.dart} (100%) diff --git a/lib/pages/communities_list.dart b/lib/pages/communities_list.dart index e4dc958..3e25a3c 100644 --- a/lib/pages/communities_list.dart +++ b/lib/pages/communities_list.dart @@ -2,7 +2,7 @@ import 'package:cached_network_image/cached_network_image.dart'; import 'package:flutter/material.dart'; import 'package:lemmy_api_client/lemmy_api_client.dart'; -import '../util/api_extensions.dart'; +import '../util/extensions/api.dart'; import '../util/goto.dart'; import '../widgets/markdown_text.dart'; diff --git a/lib/pages/community.dart b/lib/pages/community.dart index 2838253..b54174a 100644 --- a/lib/pages/community.dart +++ b/lib/pages/community.dart @@ -10,7 +10,7 @@ import 'package:url_launcher/url_launcher.dart' as ul; import '../hooks/delayed_loading.dart'; import '../hooks/memo_future.dart'; import '../hooks/stores.dart'; -import '../util/api_extensions.dart'; +import '../util/extensions/api.dart'; import '../util/goto.dart'; import '../util/intl.dart'; import '../util/text_color.dart'; diff --git a/lib/pages/full_post.dart b/lib/pages/full_post.dart index 8c29d2f..b9ab64a 100644 --- a/lib/pages/full_post.dart +++ b/lib/pages/full_post.dart @@ -3,7 +3,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_hooks/flutter_hooks.dart'; import 'package:lemmy_api_client/lemmy_api_client.dart'; -import '../util/api_extensions.dart'; +import '../util/extensions/api.dart'; import '../widgets/comment_section.dart'; import '../widgets/post.dart'; diff --git a/lib/pages/instance.dart b/lib/pages/instance.dart index 0877956..0e294b5 100644 --- a/lib/pages/instance.dart +++ b/lib/pages/instance.dart @@ -7,7 +7,7 @@ import 'package:intl/intl.dart'; import 'package:lemmy_api_client/lemmy_api_client.dart'; import 'package:url_launcher/url_launcher.dart' as ul; -import '../util/api_extensions.dart'; +import '../util/extensions/api.dart'; import '../util/goto.dart'; import '../util/text_color.dart'; import '../widgets/badge.dart'; diff --git a/lib/pages/profile_tab.dart b/lib/pages/profile_tab.dart index 3142b42..c315d29 100644 --- a/lib/pages/profile_tab.dart +++ b/lib/pages/profile_tab.dart @@ -4,7 +4,7 @@ import 'package:flutter_hooks/flutter_hooks.dart'; import 'package:flutter_mobx/flutter_mobx.dart'; import '../hooks/stores.dart'; -import '../util/api_extensions.dart'; +import '../util/extensions/api.dart'; import '../util/goto.dart'; import '../widgets/bottom_modal.dart'; import '../widgets/user_profile.dart'; diff --git a/lib/pages/users_list.dart b/lib/pages/users_list.dart index 332b43c..7f3654d 100644 --- a/lib/pages/users_list.dart +++ b/lib/pages/users_list.dart @@ -2,7 +2,7 @@ import 'package:cached_network_image/cached_network_image.dart'; import 'package:flutter/material.dart'; import 'package:lemmy_api_client/lemmy_api_client.dart'; -import '../util/api_extensions.dart'; +import '../util/extensions/api.dart'; import '../widgets/markdown_text.dart'; class UsersListPage extends StatelessWidget { diff --git a/lib/util/api_extensions.dart b/lib/util/extensions/api.dart similarity index 100% rename from lib/util/api_extensions.dart rename to lib/util/extensions/api.dart diff --git a/lib/widgets/comment.dart b/lib/widgets/comment.dart index 559be00..b25a673 100644 --- a/lib/widgets/comment.dart +++ b/lib/widgets/comment.dart @@ -9,7 +9,7 @@ import 'package:timeago/timeago.dart' as timeago; import 'package:url_launcher/url_launcher.dart' as ul; import '../comment_tree.dart'; -import '../util/api_extensions.dart'; +import '../util/extensions/api.dart'; import '../util/goto.dart'; import '../util/text_color.dart'; import 'bottom_modal.dart'; diff --git a/lib/widgets/post.dart b/lib/widgets/post.dart index 1fb4c75..9e1de99 100644 --- a/lib/widgets/post.dart +++ b/lib/widgets/post.dart @@ -10,7 +10,7 @@ import 'package:url_launcher/url_launcher.dart' as ul; import '../pages/full_post.dart'; import '../url_launcher.dart'; -import '../util/api_extensions.dart'; +import '../util/extensions/api.dart'; import '../util/goto.dart'; import 'bottom_modal.dart'; import 'fullscreenable_image.dart'; diff --git a/lib/widgets/user_profile.dart b/lib/widgets/user_profile.dart index d5ebef2..60d9740 100644 --- a/lib/widgets/user_profile.dart +++ b/lib/widgets/user_profile.dart @@ -5,7 +5,7 @@ import 'package:intl/intl.dart'; import 'package:lemmy_api_client/lemmy_api_client.dart'; import 'package:timeago/timeago.dart' as timeago; -import '../util/api_extensions.dart'; +import '../util/extensions/api.dart'; import '../util/goto.dart'; import '../util/intl.dart'; import '../util/text_color.dart';