Browse Source

Reorganize imports

yiffed
Inex Code 3 months ago
parent
commit
3efe41bfdc
56 changed files with 241 additions and 227 deletions
  1. +3
    -0
      analysis_options.yaml
  2. +3
    -2
      lib/components/audio_player.dart
  3. +3
    -3
      lib/components/avatar.dart
  4. +3
    -3
      lib/components/chat_settings_popup_menu.dart
  5. +2
    -2
      lib/components/content_banner.dart
  6. +1
    -1
      lib/components/dialogs/send_file_dialog.dart
  7. +2
    -2
      lib/components/encryption_button.dart
  8. +6
    -5
      lib/components/image_bubble.dart
  9. +5
    -4
      lib/components/input_bar.dart
  10. +1
    -2
      lib/components/list_items/chat_list_item.dart
  11. +6
    -6
      lib/components/list_items/message.dart
  12. +3
    -3
      lib/components/list_items/participant_list_item.dart
  13. +1
    -1
      lib/components/list_items/public_room_list_item.dart
  14. +2
    -1
      lib/components/list_items/state_message.dart
  15. +3
    -2
      lib/components/list_items/status_list_item.dart
  16. +5
    -6
      lib/components/matrix.dart
  17. +4
    -4
      lib/components/message_content.dart
  18. +1
    -1
      lib/components/message_download_content.dart
  19. +2
    -2
      lib/components/message_reactions.dart
  20. +1
    -1
      lib/components/reply_content.dart
  21. +1
    -1
      lib/main.dart
  22. +2
    -1
      lib/utils/app_route.dart
  23. +8
    -6
      lib/utils/database/mobile.dart
  24. +3
    -2
      lib/utils/database/web.dart
  25. +4
    -3
      lib/utils/event_extension.dart
  26. +7
    -6
      lib/utils/famedlysdk_store.dart
  27. +2
    -3
      lib/utils/firebase_controller.dart
  28. +1
    -1
      lib/utils/resize_image.dart
  29. +2
    -1
      lib/utils/run_in_background.dart
  30. +5
    -4
      lib/utils/url_launcher.dart
  31. +4
    -3
      lib/views/archive.dart
  32. +2
    -1
      lib/views/auth_web_view.dart
  33. +15
    -16
      lib/views/chat.dart
  34. +13
    -14
      lib/views/chat_details.dart
  35. +5
    -5
      lib/views/chat_encryption_settings.dart
  36. +7
    -7
      lib/views/chat_list.dart
  37. +7
    -6
      lib/views/homeserver_picker.dart
  38. +3
    -2
      lib/views/image_view.dart
  39. +4
    -4
      lib/views/invitation_selection.dart
  40. +4
    -4
      lib/views/login.dart
  41. +4
    -4
      lib/views/new_group.dart
  42. +5
    -5
      lib/views/new_private_chat.dart
  43. +11
    -11
      lib/views/settings.dart
  44. +5
    -4
      lib/views/settings/app_info.dart
  45. +9
    -9
      lib/views/settings/settings_account.dart
  46. +3
    -3
      lib/views/settings/settings_chat.dart
  47. +5
    -5
      lib/views/settings/settings_devices.dart
  48. +5
    -6
      lib/views/settings/settings_emotes.dart
  49. +6
    -6
      lib/views/settings/settings_encryption.dart
  50. +3
    -3
      lib/views/settings/settings_homeserver.dart
  51. +5
    -5
      lib/views/settings/settings_ignore_list.dart
  52. +4
    -3
      lib/views/settings/settings_multiple_emotes.dart
  53. +4
    -5
      lib/views/settings/settings_themes.dart
  54. +5
    -5
      lib/views/sign_up.dart
  55. +3
    -4
      lib/views/sign_up_password.dart
  56. +8
    -8
      lib/views/status_view.dart

+ 3
- 0
analysis_options.yaml View File

@ -4,6 +4,9 @@ linter:
rules:
- camel_case_types
- avoid_print
- avoid_relative_lib_imports
- prefer_relative_imports
- directives_ordering
analyzer:
errors:


+ 3
- 2
lib/components/audio_player.dart View File

@ -2,15 +2,16 @@ import 'dart:async';
import 'dart:typed_data';
import 'package:famedlysdk/famedlysdk.dart';
import 'package:furrychat/components/message_download_content.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_sound/flutter_sound.dart';
import 'package:intl/intl.dart';
import 'package:universal_html/prefer_universal/html.dart' as html;
import 'dialogs/simple_dialogs.dart';
import '../utils/ui_fake.dart' if (dart.library.html) 'dart:ui' as ui;
import 'dialogs/simple_dialogs.dart';
import 'matrix.dart';
import 'message_download_content.dart';
class AudioPlayer extends StatefulWidget {
final Color color;


+ 3
- 3
lib/components/avatar.dart View File

@ -1,10 +1,10 @@
import 'package:cached_network_image/cached_network_image.dart';
import 'package:famedlysdk/famedlysdk.dart';
import 'package:furrychat/utils/platform_infos.dart';
import 'package:furrychat/utils/string_color.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:cached_network_image/cached_network_image.dart';
import '../utils/platform_infos.dart';
import '../utils/string_color.dart';
import 'matrix.dart';
class Avatar extends StatelessWidget {


+ 3
- 3
lib/components/chat_settings_popup_menu.dart View File

@ -1,13 +1,13 @@
import 'dart:async';
import 'package:famedlysdk/famedlysdk.dart';
import 'package:furrychat/utils/app_route.dart';
import 'package:furrychat/views/chat_details.dart';
import 'package:furrychat/views/chat_list.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:url_launcher/url_launcher.dart';
import '../utils/app_route.dart';
import '../views/chat_details.dart';
import '../views/chat_list.dart';
import 'dialogs/simple_dialogs.dart';
import 'matrix.dart';


+ 2
- 2
lib/components/content_banner.dart View File

@ -1,9 +1,9 @@
import 'package:cached_network_image/cached_network_image.dart';
import 'package:famedlysdk/famedlysdk.dart';
import 'package:furrychat/utils/platform_infos.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:cached_network_image/cached_network_image.dart';
import '../utils/platform_infos.dart';
import 'matrix.dart';
class ContentBanner extends StatelessWidget {


+ 1
- 1
lib/components/dialogs/send_file_dialog.dart View File

@ -4,8 +4,8 @@ import 'package:flutter_gen/gen_l10n/l10n.dart';
import '../../components/dialogs/simple_dialogs.dart';
import '../../utils/matrix_file_extension.dart';
import '../../utils/room_send_file_extension.dart';
import '../../utils/resize_image.dart';
import '../../utils/room_send_file_extension.dart';
class SendFileDialog extends StatefulWidget {
final Room room;


+ 2
- 2
lib/components/encryption_button.dart View File

@ -2,11 +2,11 @@ import 'dart:async';
import 'package:bot_toast/bot_toast.dart';
import 'package:famedlysdk/famedlysdk.dart';
import 'package:furrychat/utils/app_route.dart';
import 'package:furrychat/views/chat_encryption_settings.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import '../utils/app_route.dart';
import '../views/chat_encryption_settings.dart';
import 'dialogs/simple_dialogs.dart';
import 'matrix.dart';


+ 6
- 5
lib/components/image_bubble.dart View File

@ -1,11 +1,12 @@
import 'package:cached_network_image/cached_network_image.dart';
import 'package:famedlysdk/famedlysdk.dart';
import 'package:furrychat/utils/app_route.dart';
import 'package:furrychat/utils/platform_infos.dart';
import 'package:furrychat/views/image_view.dart';
import 'package:flutter/material.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_blurhash/flutter_blurhash.dart';
import 'package:cached_network_image/cached_network_image.dart';
import '../utils/app_route.dart';
import '../utils/platform_infos.dart';
import '../views/image_view.dart';
class ImageBubble extends StatefulWidget {
final Event event;


+ 5
- 4
lib/components/input_bar.dart View File

@ -1,9 +1,10 @@
import 'package:furrychat/utils/platform_infos.dart';
import 'package:flutter/material.dart';
import 'package:flutter/foundation.dart';
import 'package:cached_network_image/cached_network_image.dart';
import 'package:famedlysdk/famedlysdk.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_typeahead/flutter_typeahead.dart';
import 'package:cached_network_image/cached_network_image.dart';
import '../utils/platform_infos.dart';
import 'avatar.dart';
class InputBar extends StatelessWidget {


+ 1
- 2
lib/components/list_items/chat_list_item.dart View File

@ -1,13 +1,12 @@
import 'package:bot_toast/bot_toast.dart';
import 'package:famedlysdk/famedlysdk.dart';
import 'package:furrychat/utils/matrix_locals.dart';
import 'package:furrychat/views/chat.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:pedantic/pedantic.dart';
import '../../utils/app_route.dart';
import '../../utils/date_time_extension.dart';
import '../../utils/matrix_locals.dart';
import '../../views/chat.dart';
import '../avatar.dart';
import '../dialogs/send_file_dialog.dart';


+ 6
- 6
lib/components/list_items/message.dart View File

@ -1,16 +1,16 @@
import 'package:famedlysdk/famedlysdk.dart';
import 'package:furrychat/components/dialogs/simple_dialogs.dart';
import 'package:furrychat/components/message_content.dart';
import 'package:furrychat/components/reply_content.dart';
import 'package:furrychat/utils/date_time_extension.dart';
import 'package:furrychat/utils/event_extension.dart';
import 'package:furrychat/utils/string_color.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import '../../utils/date_time_extension.dart';
import '../../utils/event_extension.dart';
import '../../utils/string_color.dart';
import '../avatar.dart';
import '../dialogs/simple_dialogs.dart';
import '../matrix.dart';
import '../message_content.dart';
import '../message_reactions.dart';
import '../reply_content.dart';
import 'state_message.dart';
class Message extends StatelessWidget {


+ 3
- 3
lib/components/list_items/participant_list_item.dart View File

@ -1,11 +1,11 @@
import 'package:famedlysdk/famedlysdk.dart';
import 'package:furrychat/components/dialogs/simple_dialogs.dart';
import 'package:furrychat/utils/app_route.dart';
import 'package:furrychat/views/chat.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import '../../utils/app_route.dart';
import '../../views/chat.dart';
import '../avatar.dart';
import '../dialogs/simple_dialogs.dart';
import '../matrix.dart';
class ParticipantListItem extends StatelessWidget {


+ 1
- 1
lib/components/list_items/public_room_list_item.dart View File

@ -1,12 +1,12 @@
import 'package:famedlysdk/famedlysdk.dart';
import 'package:famedlysdk/matrix_api.dart';
import 'package:furrychat/components/dialogs/simple_dialogs.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import '../../utils/app_route.dart';
import '../../views/chat.dart';
import '../avatar.dart';
import '../dialogs/simple_dialogs.dart';
import '../matrix.dart';
class PublicRoomListItem extends StatelessWidget {


+ 2
- 1
lib/components/list_items/state_message.dart View File

@ -1,8 +1,9 @@
import 'package:famedlysdk/famedlysdk.dart';
import 'package:furrychat/utils/matrix_locals.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import '../../utils/matrix_locals.dart';
class StateMessage extends StatelessWidget {
final Event event;
const StateMessage(this.event);


+ 3
- 2
lib/components/list_items/status_list_item.dart View File

@ -1,7 +1,8 @@
import 'package:famedlysdk/famedlysdk.dart';
import 'package:furrychat/utils/user_status.dart';
import 'package:furrychat/views/status_view.dart';
import 'package:flutter/material.dart';
import '../../utils/user_status.dart';
import '../../views/status_view.dart';
import '../avatar.dart';
import '../matrix.dart';


+ 5
- 6
lib/components/matrix.dart View File

@ -3,11 +3,6 @@ import 'dart:io';
import 'package:famedlysdk/encryption.dart';
import 'package:famedlysdk/famedlysdk.dart';
import 'package:furrychat/components/dialogs/simple_dialogs.dart';
import 'package:furrychat/utils/firebase_controller.dart';
import 'package:furrychat/utils/matrix_locals.dart';
import 'package:furrychat/utils/platform_infos.dart';
import 'package:furrychat/utils/user_status.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
@ -17,10 +12,14 @@ import 'package:url_launcher/url_launcher.dart';
import '../utils/app_route.dart';
import '../utils/beautify_string_extension.dart';
import '../utils/famedlysdk_store.dart';
import '../utils/firebase_controller.dart';
import '../utils/matrix_locals.dart';
import '../utils/platform_infos.dart';
import '../utils/presence_extension.dart';
import '../utils/user_status.dart';
import '../views/key_verification.dart';
import '../utils/platform_infos.dart';
import 'avatar.dart';
import 'dialogs/simple_dialogs.dart';
class Matrix extends StatefulWidget {
static const String callNamespace = 'chat.fluffy.jitsi_call';


+ 4
- 4
lib/components/message_content.dart View File

@ -1,15 +1,15 @@
import 'package:famedlysdk/famedlysdk.dart';
import 'package:furrychat/components/audio_player.dart';
import 'package:furrychat/components/image_bubble.dart';
import 'package:furrychat/utils/event_extension.dart';
import 'package:furrychat/utils/matrix_locals.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:matrix_link_text/link_text.dart';
import 'package:url_launcher/url_launcher.dart';
import '../utils/event_extension.dart';
import '../utils/matrix_locals.dart';
import '../utils/url_launcher.dart';
import 'audio_player.dart';
import 'html_message.dart';
import 'image_bubble.dart';
import 'matrix.dart';
import 'message_download_content.dart';


+ 1
- 1
lib/components/message_download_content.dart View File

@ -1,6 +1,6 @@
import 'package:famedlysdk/famedlysdk.dart';
import 'package:flutter/material.dart';
import 'package:furrychat/utils/event_extension.dart';
import '../utils/event_extension.dart';
class MessageDownloadContent extends StatelessWidget {
final Event event;


+ 2
- 2
lib/components/message_reactions.dart View File

@ -1,8 +1,8 @@
import 'package:cached_network_image/cached_network_image.dart';
import 'package:famedlysdk/famedlysdk.dart';
import 'package:furrychat/utils/platform_infos.dart';
import 'package:flutter/material.dart';
import 'package:cached_network_image/cached_network_image.dart';
import '../utils/platform_infos.dart';
import 'dialogs/simple_dialogs.dart';
import 'matrix.dart';


+ 1
- 1
lib/components/reply_content.dart View File

@ -1,8 +1,8 @@
import 'package:famedlysdk/famedlysdk.dart';
import 'package:furrychat/utils/matrix_locals.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import '../utils/matrix_locals.dart';
import 'html_message.dart';
import 'matrix.dart';


+ 1
- 1
lib/main.dart View File

@ -3,7 +3,6 @@ import 'dart:io';
import 'package:bot_toast/bot_toast.dart';
import 'package:famedlysdk/famedlysdk.dart';
import 'package:furrychat/views/homeserver_picker.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
@ -13,6 +12,7 @@ import 'package:universal_html/prefer_universal/html.dart' as html;
import 'components/matrix.dart';
import 'components/theme_switcher.dart';
import 'views/chat_list.dart';
import 'views/homeserver_picker.dart';
void main() {
SystemChrome.setSystemUIOverlayStyle(


+ 2
- 1
lib/utils/app_route.dart View File

@ -1,7 +1,8 @@
import 'package:furrychat/components/adaptive_page_layout.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import '../components/adaptive_page_layout.dart';
class AppRoute extends PageRouteBuilder {
static Route defaultRoute(BuildContext context, Widget page) {
return context != null && !AdaptivePageLayout.columnMode(context)


+ 8
- 6
lib/utils/database/mobile.dart View File

@ -1,17 +1,19 @@
import 'dart:ffi';
import 'dart:io';
import 'dart:isolate';
import 'package:famedlysdk/famedlysdk.dart';
import 'package:path_provider/path_provider.dart';
import 'package:sqflite/sqflite.dart' show getDatabasesPath;
import 'package:path/path.dart' as p;
import 'package:flutter/material.dart';
import 'package:moor/moor.dart';
import 'package:moor/ffi.dart' as moor;
import 'package:moor/isolate.dart';
import 'package:moor/moor.dart';
import 'package:path/path.dart' as p;
import 'package:path_provider/path_provider.dart';
import 'package:sqflite/sqflite.dart' show getDatabasesPath;
import 'package:sqlite3/open.dart';
import '../platform_infos.dart';
import 'cipher_db.dart' as cipher;
import 'package:moor/ffi.dart' as moor;
import 'package:sqlite3/open.dart';
bool _inited = false;


+ 3
- 2
lib/utils/database/web.dart View File

@ -1,7 +1,8 @@
import 'dart:html';
import 'package:famedlysdk/famedlysdk.dart';
import 'package:moor/moor_web.dart';
import 'package:flutter/material.dart';
import 'dart:html';
import 'package:moor/moor_web.dart';
Future<Database> constructDb(
{bool logStatements = false,


+ 4
- 3
lib/utils/event_extension.dart View File

@ -1,10 +1,11 @@
import 'package:famedlysdk/famedlysdk.dart';
import 'package:furrychat/components/dialogs/simple_dialogs.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'matrix_file_extension.dart';
import 'app_route.dart';
import '../components/dialogs/simple_dialogs.dart';
import '../views/image_view.dart';
import 'app_route.dart';
import 'matrix_file_extension.dart';
extension LocalizedBody on Event {
void openFile(BuildContext context, {bool downloadOnly = false}) async {


+ 7
- 6
lib/utils/famedlysdk_store.dart View File

@ -1,18 +1,19 @@
import 'dart:async';
import 'dart:convert';
import 'dart:core';
import 'package:famedlysdk/famedlysdk.dart';
import 'package:furrychat/utils/platform_infos.dart';
import 'package:flutter/material.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
import 'package:localstorage/localstorage.dart';
import 'package:path_provider/path_provider.dart';
import 'dart:async';
import 'dart:core';
import './database/shared.dart';
import 'package:olm/olm.dart' as olm; // needed for migration
import 'package:path_provider/path_provider.dart';
import 'package:random_string/random_string.dart';
import './database/shared.dart';
import 'platform_infos.dart';
Future<LocalStorage> getLocalStorage() async {
final directory = PlatformInfos.isBetaDesktop
? await getApplicationSupportDirectory()


+ 2
- 3
lib/utils/firebase_controller.dart View File

@ -4,9 +4,6 @@ import 'dart:io';
import 'package:bot_toast/bot_toast.dart';
import 'package:famedlysdk/famedlysdk.dart';
import 'package:firebase_messaging/firebase_messaging.dart';
import 'package:furrychat/components/matrix.dart';
import 'package:furrychat/utils/app_route.dart';
import 'package:furrychat/views/chat.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
@ -15,6 +12,8 @@ import 'package:flutter_local_notifications/flutter_local_notifications.dart';
import 'package:path_provider/path_provider.dart';
import '../components/matrix.dart';
import '../views/chat.dart';
import 'app_route.dart';
import 'famedlysdk_store.dart';
import 'matrix_locals.dart';


+ 1
- 1
lib/utils/resize_image.dart View File

@ -1,5 +1,5 @@
import 'dart:ui';
import 'dart:typed_data';
import 'dart:ui';
import 'package:famedlysdk/famedlysdk.dart';
import 'package:native_imaging/native_imaging.dart' as native;


+ 2
- 1
lib/utils/run_in_background.dart View File

@ -1,6 +1,7 @@
import 'package:isolate/isolate.dart';
import 'dart:async';
import 'package:isolate/isolate.dart';
Future<T> runInBackground<T, U>(
FutureOr<T> Function(U arg) function, U arg) async {
final isolate = await IsolateRunner.spawn();


+ 5
- 4
lib/utils/url_launcher.dart View File

@ -1,10 +1,11 @@
import 'package:famedlysdk/famedlysdk.dart';
import 'package:furrychat/components/dialogs/simple_dialogs.dart';
import 'package:furrychat/components/matrix.dart';
import 'package:furrychat/utils/app_route.dart';
import 'package:furrychat/views/chat.dart';
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
import '../components/dialogs/simple_dialogs.dart';
import '../components/matrix.dart';
import '../views/chat.dart';
import 'app_route.dart';
import 'matrix_identifier_string_extension.dart';
class UrlLauncher {


+ 4
- 3
lib/views/archive.dart View File

@ -1,10 +1,11 @@
import 'package:famedlysdk/famedlysdk.dart';
import 'package:furrychat/components/adaptive_page_layout.dart';
import 'package:furrychat/components/list_items/chat_list_item.dart';
import 'package:furrychat/components/matrix.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import '../components/adaptive_page_layout.dart';
import '../components/list_items/chat_list_item.dart';
import '../components/matrix.dart';
class Archive extends StatefulWidget {
@override
_ArchiveState createState() => _ArchiveState();


+ 2
- 1
lib/views/auth_web_view.dart View File

@ -1,10 +1,11 @@
import 'package:furrychat/components/matrix.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:webview_flutter/webview_flutter.dart';
import '../components/matrix.dart';
class AuthWebView extends StatelessWidget {
final String authType;
final String session;


+ 15
- 16
lib/views/chat.dart View File

@ -3,23 +3,7 @@ import 'dart:io';
import 'dart:math';
import 'package:famedlysdk/famedlysdk.dart';
import 'package:file_picker_cross/file_picker_cross.dart';
import 'package:furrychat/components/adaptive_page_layout.dart';
import 'package:furrychat/components/avatar.dart';
import 'package:furrychat/components/chat_settings_popup_menu.dart';
import 'package:furrychat/components/connection_status_header.dart';
import 'package:furrychat/components/dialogs/recording_dialog.dart';
import 'package:furrychat/components/dialogs/simple_dialogs.dart';
import 'package:furrychat/components/encryption_button.dart';
import 'package:furrychat/components/list_items/message.dart';
import 'package:furrychat/components/matrix.dart';
import 'package:furrychat/components/reply_content.dart';
import 'package:furrychat/config/app_emojis.dart';
import 'package:furrychat/utils/app_route.dart';
import 'package:furrychat/utils/matrix_locals.dart';
import 'package:furrychat/utils/platform_infos.dart';
import 'package:furrychat/utils/room_status_extension.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart';
@ -30,9 +14,24 @@ import 'package:pedantic/pedantic.dart';
import 'package:scroll_to_index/scroll_to_index.dart';
import 'package:swipe_to_action/swipe_to_action.dart';
import '../components/adaptive_page_layout.dart';
import '../components/avatar.dart';
import '../components/chat_settings_popup_menu.dart';
import '../components/connection_status_header.dart';
import '../components/dialogs/recording_dialog.dart';
import '../components/dialogs/send_file_dialog.dart';
import '../components/dialogs/simple_dialogs.dart';
import '../components/encryption_button.dart';
import '../components/input_bar.dart';
import '../components/list_items/message.dart';
import '../components/matrix.dart';
import '../components/reply_content.dart';
import '../config/app_emojis.dart';
import '../utils/app_route.dart';
import '../utils/matrix_file_extension.dart';
import '../utils/matrix_locals.dart';
import '../utils/platform_infos.dart';
import '../utils/room_status_extension.dart';
import 'chat_details.dart';
import 'chat_list.dart';


+ 13
- 14
lib/views/chat_details.dart View File

@ -1,18 +1,7 @@
import 'package:bot_toast/bot_toast.dart';
import 'package:famedlysdk/famedlysdk.dart';
import 'package:famedlysdk/matrix_api.dart';
import 'package:file_picker_cross/file_picker_cross.dart';
import 'package:furrychat/components/adaptive_page_layout.dart';
import 'package:furrychat/components/chat_settings_popup_menu.dart';
import 'package:furrychat/components/content_banner.dart';
import 'package:furrychat/components/dialogs/simple_dialogs.dart';
import 'package:furrychat/components/list_items/participant_list_item.dart';
import 'package:furrychat/utils/app_route.dart';
import 'package:furrychat/utils/matrix_locals.dart';
import 'package:furrychat/utils/platform_infos.dart';
import 'package:furrychat/views/chat_list.dart';
import 'package:furrychat/views/invitation_selection.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
@ -20,9 +9,19 @@ import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:image_picker/image_picker.dart';
import 'package:matrix_link_text/link_text.dart';
import 'package:furrychat/views/settings/settings_emotes.dart';
import 'package:furrychat/views/settings/settings_multiple_emotes.dart';
import 'package:furrychat/utils/url_launcher.dart';
import '../components/adaptive_page_layout.dart';
import '../components/chat_settings_popup_menu.dart';
import '../components/content_banner.dart';
import '../components/dialogs/simple_dialogs.dart';
import '../components/list_items/participant_list_item.dart';
import '../utils/app_route.dart';
import '../utils/matrix_locals.dart';
import '../utils/platform_infos.dart';
import '../utils/url_launcher.dart';
import 'chat_list.dart';
import 'invitation_selection.dart';
import 'settings/settings_emotes.dart';
import 'settings/settings_multiple_emotes.dart';
class ChatDetails extends StatefulWidget {
final Room room;


+ 5
- 5
lib/views/chat_encryption_settings.dart View File

@ -1,15 +1,15 @@
import 'package:famedlysdk/encryption.dart';
import 'package:famedlysdk/famedlysdk.dart';
import 'package:furrychat/components/adaptive_page_layout.dart';
import 'package:furrychat/components/avatar.dart';
import 'package:furrychat/components/matrix.dart';
import 'package:furrychat/utils/beautify_string_extension.dart';
import 'package:furrychat/views/chat_list.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import '../components/adaptive_page_layout.dart';
import '../components/avatar.dart';
import '../components/dialogs/simple_dialogs.dart';
import '../components/matrix.dart';
import '../utils/app_route.dart';
import '../utils/beautify_string_extension.dart';
import 'chat_list.dart';
import 'key_verification.dart';
class ChatEncryptionSettingsView extends StatelessWidget {


+ 7
- 7
lib/views/chat_list.dart View File

@ -3,13 +3,6 @@ import 'dart:io';
import 'package:famedlysdk/famedlysdk.dart';
import 'package:famedlysdk/matrix_api.dart';
import 'package:furrychat/components/avatar.dart';
import 'package:furrychat/components/connection_status_header.dart';
import 'package:furrychat/components/dialogs/simple_dialogs.dart';
import 'package:furrychat/components/list_items/status_list_item.dart';
import 'package:furrychat/components/list_items/public_room_list_item.dart';
import 'package:furrychat/utils/platform_infos.dart';
import 'package:furrychat/views/status_view.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
@ -17,16 +10,23 @@ import 'package:receive_sharing_intent/receive_sharing_intent.dart';
import 'package:share/share.dart';
import '../components/adaptive_page_layout.dart';
import '../components/avatar.dart';
import '../components/connection_status_header.dart';
import '../components/dialogs/simple_dialogs.dart';
import '../components/list_items/chat_list_item.dart';
import '../components/list_items/public_room_list_item.dart';
import '../components/list_items/status_list_item.dart';
import '../components/matrix.dart';
import '../utils/app_route.dart';
import '../utils/matrix_file_extension.dart';
import '../utils/platform_infos.dart';
import '../utils/url_launcher.dart';
import 'archive.dart';
import 'homeserver_picker.dart';
import 'new_group.dart';
import 'new_private_chat.dart';
import 'settings.dart';
import 'status_view.dart';
enum SelectMode { normal, share, select }


+ 7
- 6
lib/views/homeserver_picker.dart View File

@ -1,13 +1,14 @@
import 'dart:math';
import 'package:famedlysdk/matrix_api/model/well_known_informations.dart';
import 'package:furrychat/components/dialogs/simple_dialogs.dart';
import 'package:furrychat/components/matrix.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:furrychat/utils/app_route.dart';
import 'package:furrychat/views/login.dart';
import 'package:furrychat/views/sign_up.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import '../components/dialogs/simple_dialogs.dart';
import '../components/matrix.dart';
import '../utils/app_route.dart';
import 'login.dart';
import 'sign_up.dart';
class HomeserverPicker extends StatefulWidget {
@override


+ 3
- 2
lib/views/image_view.dart View File

@ -1,8 +1,9 @@
import 'package:famedlysdk/famedlysdk.dart';
import 'package:furrychat/components/image_bubble.dart';
import 'package:furrychat/components/matrix.dart';
import 'package:flutter/material.dart';
import 'package:photo_view/photo_view.dart';
import '../components/image_bubble.dart';
import '../components/matrix.dart';
import '../utils/event_extension.dart';
class ImageView extends StatelessWidget {


+ 4
- 4
lib/views/invitation_selection.dart View File

@ -3,13 +3,13 @@ import 'dart:async';
import 'package:bot_toast/bot_toast.dart';
import 'package:famedlysdk/famedlysdk.dart';
import 'package:famedlysdk/matrix_api.dart';
import 'package:furrychat/components/adaptive_page_layout.dart';
import 'package:furrychat/components/avatar.dart';
import 'package:furrychat/components/dialogs/simple_dialogs.dart';
import 'package:furrychat/components/matrix.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import '../components/adaptive_page_layout.dart';
import '../components/avatar.dart';
import '../components/dialogs/simple_dialogs.dart';
import '../components/matrix.dart';
import 'chat_list.dart';
class InvitationSelection extends StatefulWidget {


+ 4
- 4
lib/views/login.dart View File

@ -2,14 +2,14 @@ import 'dart:async';
import 'dart:math';
import 'package:famedlysdk/famedlysdk.dart';
import 'package:furrychat/components/dialogs/simple_dialogs.dart';
import 'package:furrychat/components/matrix.dart';
import 'package:furrychat/utils/app_route.dart';
import 'package:furrychat/utils/firebase_controller.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import '../components/dialogs/simple_dialogs.dart';
import '../components/matrix.dart';
import '../utils/app_route.dart';
import '../utils/firebase_controller.dart';
import 'chat_list.dart';
class Login extends StatefulWidget {


+ 4
- 4
lib/views/new_group.dart View File

@ -1,12 +1,12 @@
import 'package:famedlysdk/matrix_api.dart' as api;
import 'package:furrychat/components/adaptive_page_layout.dart';
import 'package:furrychat/components/dialogs/simple_dialogs.dart';
import 'package:furrychat/components/matrix.dart';
import 'package:furrychat/utils/app_route.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:pedantic/pedantic.dart';
import '../components/adaptive_page_layout.dart';
import '../components/dialogs/simple_dialogs.dart';
import '../components/matrix.dart';
import '../utils/app_route.dart';
import 'chat.dart';
import 'chat_list.dart';
import 'invitation_selection.dart';


+ 5
- 5
lib/views/new_private_chat.dart View File

@ -2,15 +2,15 @@ import 'dart:async';
import 'package:famedlysdk/famedlysdk.dart';
import 'package:famedlysdk/matrix_api.dart';
import 'package:furrychat/components/adaptive_page_layout.dart';
import 'package:furrychat/components/avatar.dart';
import 'package:furrychat/components/dialogs/simple_dialogs.dart';
import 'package:furrychat/components/matrix.dart';
import 'package:furrychat/utils/app_route.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:share/share.dart';
import '../components/adaptive_page_layout.dart';
import '../components/avatar.dart';
import '../components/dialogs/simple_dialogs.dart';
import '../components/matrix.dart';
import '../utils/app_route.dart';
import 'chat.dart';
import 'chat_list.dart';


+ 11
- 11
lib/views/settings.dart View File

@ -1,18 +1,18 @@
import 'package:furrychat/config/app_config.dart';
import 'package:furrychat/views/settings/settings_account.dart';
import 'package:furrychat/views/settings/settings_chat.dart';
import 'package:furrychat/views/settings/settings_devices.dart';
import 'package:furrychat/views/settings/settings_encryption.dart';
import 'package:furrychat/views/settings/settings_homeserver.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:furrychat/views/settings/settings_themes.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:furrychat/components/adaptive_page_layout.dart';
import 'package:furrychat/components/matrix.dart';
import 'package:furrychat/utils/app_route.dart';
import 'package:furrychat/views/settings/settings_emotes.dart';
import '../components/adaptive_page_layout.dart';
import '../components/matrix.dart';
import '../config/app_config.dart';
import '../utils/app_route.dart';
import 'settings/settings_account.dart';
import 'settings/settings_chat.dart';
import 'settings/settings_devices.dart';
import 'settings/settings_emotes.dart';
import 'settings/settings_encryption.dart';
import 'settings/settings_homeserver.dart';
import 'settings/settings_themes.dart';
enum SettingsViews {
account,


+ 5
- 4
lib/views/settings/app_info.dart View File

@ -1,11 +1,12 @@
import 'package:furrychat/components/adaptive_page_layout.dart';
import 'package:furrychat/components/matrix.dart';
import 'package:furrychat/utils/beautify_string_extension.dart';
import 'package:furrychat/views/settings.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:olm/olm.dart' as olm;
import '../../components/adaptive_page_layout.dart';
import '../../components/matrix.dart';
import '../../utils/beautify_string_extension.dart';
import '../settings.dart';
class AppInfoView extends StatelessWidget {
@override
Widget build(BuildContext context) {


+ 9
- 9
lib/views/settings/settings_account.dart View File

@ -1,19 +1,19 @@
import 'package:bot_toast/bot_toast.dart';
import 'package:famedlysdk/famedlysdk.dart';
import 'package:file_picker_cross/file_picker_cross.dart';
import 'package:furrychat/components/avatar.dart';
import 'package:furrychat/utils/app_route.dart';
import 'package:furrychat/utils/platform_infos.dart';
import 'package:furrychat/components/dialogs/simple_dialogs.dart';
import 'package:furrychat/views/settings.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:furrychat/components/adaptive_page_layout.dart';
import 'package:furrychat/components/matrix.dart';
import 'package:furrychat/views/settings/settings_ignore_list.dart';
import 'package:image_picker/image_picker.dart';
import '../../components/adaptive_page_layout.dart';
import '../../components/avatar.dart';
import '../../components/dialogs/simple_dialogs.dart';
import '../../components/matrix.dart';
import '../../utils/app_route.dart';
import '../../utils/platform_infos.dart';
import '../settings.dart';
import 'settings_ignore_list.dart';
class AccountSettingsView extends StatelessWidget {
@override
Widget build(BuildContext context) {


+ 3
- 3
lib/views/settings/settings_chat.dart View File

@ -1,9 +1,9 @@
import 'package:furrychat/views/settings.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:furrychat/components/adaptive_page_layout.dart';
import 'package:furrychat/components/matrix.dart';
import '../../components/adaptive_page_layout.dart';
import '../../components/matrix.dart';
import '../settings.dart';
class ChatSettingsView extends StatelessWidget {
@override


+ 5
- 5
lib/views/settings/settings_devices.dart View File

@ -1,12 +1,12 @@
import 'package:famedlysdk/famedlysdk.dart';
import 'package:furrychat/views/settings.dart';
import 'package:furrychat/components/dialogs/simple_dialogs.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:furrychat/components/adaptive_page_layout.dart';
import 'package:furrychat/components/matrix.dart';
import 'package:furrychat/utils/date_time_extension.dart';
import '../../components/adaptive_page_layout.dart';
import '../../components/dialogs/simple_dialogs.dart';
import '../../components/matrix.dart';
import '../../utils/date_time_extension.dart';
import '../settings.dart';
class DevicesSettingsView extends StatelessWidget {
@override


+ 5
- 6
lib/views/settings/settings_emotes.dart View File

@ -2,17 +2,16 @@ import 'package:bot_toast/bot_toast.dart';
import 'package:cached_network_image/cached_network_image.dart';
import 'package:famedlysdk/famedlysdk.dart';
import 'package:file_picker_cross/file_picker_cross.dart';
import 'package:furrychat/utils/platform_infos.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:image_picker/image_picker.dart';
import 'package:furrychat/components/adaptive_page_layout.dart';
import 'package:furrychat/components/dialogs/simple_dialogs.dart';
import 'package:furrychat/components/matrix.dart';
import 'package:furrychat/views/settings.dart';
import '../../components/adaptive_page_layout.dart';
import '../../components/dialogs/simple_dialogs.dart';
import '../../components/matrix.dart';
import '../../utils/platform_infos.dart';
import '../settings.dart';
class EmotesSettingsView extends StatelessWidget {
final Room room;


+ 6
- 6
lib/views/settings/settings_encryption.dart View File

@ -1,13 +1,13 @@
import 'package:furrychat/views/settings.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:furrychat/utils/beautify_string_extension.dart';
import 'package:furrychat/components/dialogs/simple_dialogs.dart';
import 'package:furrychat/components/adaptive_page_layout.dart';
import 'package:furrychat/components/matrix.dart';
import 'package:olm/olm.dart' as olm;
import '../../components/adaptive_page_layout.dart';
import '../../components/dialogs/simple_dialogs.dart';
import '../../components/matrix.dart';
import '../../utils/beautify_string_extension.dart';
import '../settings.dart';
class EncryptionSettingsView extends StatelessWidget {
@override
Widget build(BuildContext context) {


+ 3
- 3
lib/views/settings/settings_homeserver.dart View File

@ -1,9 +1,9 @@
import 'package:furrychat/views/settings.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:furrychat/components/adaptive_page_layout.dart';
import 'package:furrychat/components/matrix.dart';
import '../../components/adaptive_page_layout.dart';
import '../../components/matrix.dart';
import '../settings.dart';
class HomeserverSettingsView extends StatelessWidget {
@override


+ 5
- 5
lib/views/settings/settings_ignore_list.dart View File

@ -1,12 +1,12 @@
import 'package:famedlysdk/famedlysdk.dart';
import 'package:furrychat/components/adaptive_page_layout.dart';
import 'package:furrychat/components/avatar.dart';
import 'package:furrychat/components/dialogs/simple_dialogs.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:furrychat/components/matrix.dart';
import 'package:furrychat/views/settings.dart';
import '../../components/adaptive_page_layout.dart';
import '../../components/avatar.dart';
import '../../components/dialogs/simple_dialogs.dart';
import '../../components/matrix.dart';
import '../settings.dart';
class SettingsIgnoreListView extends StatelessWidget {
@override


+ 4
- 3
lib/views/settings/settings_multiple_emotes.dart View File

@ -1,9 +1,10 @@
import 'package:flutter/material.dart';
import 'package:famedlysdk/famedlysdk.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:furrychat/components/adaptive_page_layout.dart';
import 'package:furrychat/utils/app_route.dart';
import 'package:furrychat/views/settings.dart';
import '../../components/adaptive_page_layout.dart';
import '../../utils/app_route.dart';
import '../settings.dart';
import 'settings_emotes.dart';
class MultipleEmotesSettingsView extends StatelessWidget {


+ 4
- 5
lib/views/settings/settings_themes.dart View File

@ -1,14 +1,13 @@
import 'dart:io';
import 'package:furrychat/views/settings.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:furrychat/components/adaptive_page_layout.dart';
import 'package:furrychat/components/matrix.dart';
import 'package:image_picker/image_picker.dart';
import 'package:furrychat/components/theme_switcher.dart';
import '../../components/adaptive_page_layout.dart';
import '../../components/matrix.dart';
import '../../components/theme_switcher.dart';
import '../settings.dart';
class ThemesSettingsView extends StatelessWidget {
@override


+ 5
- 5
lib/views/sign_up.dart View File

@ -2,15 +2,15 @@ import 'dart:math';
import 'package:famedlysdk/famedlysdk.dart';
import 'package:file_picker_cross/file_picker_cross.dart';
import 'package:furrychat/components/matrix.dart';
import 'package:furrychat/utils/app_route.dart';
import 'package:furrychat/views/login.dart';
import 'package:furrychat/views/sign_up_password.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import '../components/matrix.dart';
import '../utils/app_route.dart';
import 'login.dart';
import 'sign_up_password.dart';
class SignUp extends StatefulWidget {
SignUp({Key key, this.wellknown}) : super(key: key);


+ 3
- 4
lib/views/sign_up_password.dart View File

@ -2,13 +2,12 @@ import 'dart:math';
import 'package:bot_toast/bot_toast.dart';
import 'package:famedlysdk/famedlysdk.dart';
import 'package:furrychat/components/matrix.dart';
import 'package:furrychat/utils/app_route.dart';
import 'package:furrychat/views/auth_web_view.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import '../components/matrix.dart';
import '../utils/app_route.dart';
import 'auth_web_view.dart';
import 'chat_list.dart';
class SignUpPassword extends StatefulWidget {


+ 8
- 8
lib/views/status_view.dart View File

@ -1,15 +1,15 @@
import 'package:famedlysdk/famedlysdk.dart';
import 'package:furrychat/components/avatar.dart';
import 'package:furrychat/components/dialogs/simple_dialogs.dart';
import 'package:furrychat/components/matrix.dart';
import 'package:furrychat/utils/url_launcher.dart';
import 'package:furrychat/utils/user_status.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:furrychat/utils/app_route.dart';
import 'package:furrychat/utils/string_color.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:matrix_link_text/link_text.dart';
import '../components/avatar.dart';
import '../components/dialogs/simple_dialogs.dart';
import '../components/matrix.dart';
import '../utils/app_route.dart';
import '../utils/string_color.dart';
import '../utils/url_launcher.dart';
import '../utils/user_status.dart';
import 'chat.dart';
class StatusView extends StatelessWidget {


Loading…
Cancel
Save