mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 23:09:35 +01:00
refactor: Rename UI to Views
This commit is contained in:
parent
cc113bb61a
commit
e44de26353
@ -653,5 +653,5 @@ class ChatController extends State<Chat> {
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => ChatUI(this);
|
||||
Widget build(BuildContext context) => ChatView(this);
|
||||
}
|
||||
|
@ -299,5 +299,5 @@ class ChatDetailsController extends State<ChatDetails> {
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => ChatDetailsUI(this);
|
||||
Widget build(BuildContext context) => ChatDetailsView(this);
|
||||
}
|
||||
|
@ -61,5 +61,5 @@ class ChatEncryptionSettingsController extends State<ChatEncryptionSettings> {
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => ChatEncryptionSettingsUI(this);
|
||||
Widget build(BuildContext context) => ChatEncryptionSettingsView(this);
|
||||
}
|
||||
|
@ -246,7 +246,7 @@ class ChatListController extends State<ChatList> {
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => ChatListUI(this);
|
||||
Widget build(BuildContext context) => ChatListView(this);
|
||||
}
|
||||
|
||||
enum ChatListPopupMenuItemActions {
|
||||
|
@ -92,5 +92,5 @@ class ChatPermissionsSettingsController extends State<ChatPermissionsSettings> {
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => ChatPermissionsSettingsUI(this);
|
||||
Widget build(BuildContext context) => ChatPermissionsSettingsView(this);
|
||||
}
|
||||
|
@ -136,5 +136,5 @@ class DevicesSettingsController extends State<DevicesSettings> {
|
||||
..sort((a, b) => b.lastSeenTs.compareTo(a.lastSeenTs));
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => DevicesSettingsUI(this);
|
||||
Widget build(BuildContext context) => DevicesSettingsView(this);
|
||||
}
|
||||
|
@ -134,5 +134,5 @@ class HomeserverPickerController extends State<HomeserverPicker> {
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => HomeserverPickerUI(this);
|
||||
Widget build(BuildContext context) => HomeserverPickerView(this);
|
||||
}
|
||||
|
@ -38,5 +38,5 @@ class ImageViewerController extends State<ImageViewer> {
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => ImageViewerUI(this);
|
||||
Widget build(BuildContext context) => ImageViewerView(this);
|
||||
}
|
||||
|
@ -116,5 +116,5 @@ class InvitationSelectionController extends State<InvitationSelection> {
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => InvitationSelectionUI(this);
|
||||
Widget build(BuildContext context) => InvitationSelectionView(this);
|
||||
}
|
||||
|
@ -40,5 +40,5 @@ class NewGroupController extends State<NewGroup> {
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => NewGroupUI(this);
|
||||
Widget build(BuildContext context) => NewGroupView(this);
|
||||
}
|
||||
|
@ -112,5 +112,5 @@ class NewPrivateChatController extends State<NewPrivateChat> {
|
||||
);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => NewPrivateChatUI(this);
|
||||
Widget build(BuildContext context) => NewPrivateChatView(this);
|
||||
}
|
||||
|
@ -139,5 +139,5 @@ class SearchController extends State<Search> {
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => SearchUI(this);
|
||||
Widget build(BuildContext context) => SearchView(this);
|
||||
}
|
||||
|
@ -373,6 +373,6 @@ class SettingsController extends State<Settings> {
|
||||
return c;
|
||||
});
|
||||
}
|
||||
return SettingsUI(this);
|
||||
return SettingsView(this);
|
||||
}
|
||||
}
|
||||
|
@ -86,5 +86,5 @@ class Settings3PidController extends State<Settings3Pid> {
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => Settings3PidUI(this);
|
||||
Widget build(BuildContext context) => Settings3PidView(this);
|
||||
}
|
||||
|
@ -295,6 +295,6 @@ class EmotesSettingsController extends State<EmotesSettings> {
|
||||
}
|
||||
}
|
||||
}
|
||||
return EmotesSettingsUI(this);
|
||||
return EmotesSettingsView(this);
|
||||
}
|
||||
}
|
||||
|
@ -36,5 +36,5 @@ class SettingsIgnoreListController extends State<SettingsIgnoreList> {
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => SettingsIgnoreListUI(this);
|
||||
Widget build(BuildContext context) => SettingsIgnoreListView(this);
|
||||
}
|
||||
|
@ -14,5 +14,5 @@ class MultipleEmotesSettings extends StatefulWidget {
|
||||
|
||||
class MultipleEmotesSettingsController extends State<MultipleEmotesSettings> {
|
||||
@override
|
||||
Widget build(BuildContext context) => MultipleEmotesSettingsUI(this);
|
||||
Widget build(BuildContext context) => MultipleEmotesSettingsView(this);
|
||||
}
|
||||
|
@ -108,5 +108,5 @@ class SettingsNotificationsController extends State<SettingsNotifications> {
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => SettingsNotificationsUI(this);
|
||||
Widget build(BuildContext context) => SettingsNotificationsView(this);
|
||||
}
|
||||
|
@ -57,5 +57,5 @@ class SettingsStyleController extends State<SettingsStyle> {
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => SettingsStyleUI(this);
|
||||
Widget build(BuildContext context) => SettingsStyleView(this);
|
||||
}
|
||||
|
@ -67,5 +67,5 @@ class SignUpController extends State<SignUp> {
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => SignUpUI(this);
|
||||
Widget build(BuildContext context) => SignUpView(this);
|
||||
}
|
||||
|
@ -111,5 +111,5 @@ class SignUpPasswordController extends State<SignUpPassword> {
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => SignUpPasswordUI(this);
|
||||
Widget build(BuildContext context) => SignUpPasswordView(this);
|
||||
}
|
||||
|
@ -91,5 +91,5 @@ class UserBottomSheetController extends State<UserBottomSheet> {
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => UserBottomSheetUI(this);
|
||||
Widget build(BuildContext context) => UserBottomSheetView(this);
|
||||
}
|
||||
|
@ -18,10 +18,10 @@ import 'package:matrix_link_text/link_text.dart';
|
||||
|
||||
import '../../utils/url_launcher.dart';
|
||||
|
||||
class ChatDetailsUI extends StatelessWidget {
|
||||
class ChatDetailsView extends StatelessWidget {
|
||||
final ChatDetailsController controller;
|
||||
|
||||
const ChatDetailsUI(this.controller, {Key key}) : super(key: key);
|
||||
const ChatDetailsView(this.controller, {Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -7,10 +7,11 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||
import '../../utils/device_extension.dart';
|
||||
|
||||
class ChatEncryptionSettingsUI extends StatelessWidget {
|
||||
class ChatEncryptionSettingsView extends StatelessWidget {
|
||||
final ChatEncryptionSettingsController controller;
|
||||
|
||||
const ChatEncryptionSettingsUI(this.controller, {Key key}) : super(key: key);
|
||||
const ChatEncryptionSettingsView(this.controller, {Key key})
|
||||
: super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -10,10 +10,10 @@ import 'package:flutter/material.dart';
|
||||
import '../../widgets/matrix.dart';
|
||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||
|
||||
class ChatListUI extends StatelessWidget {
|
||||
class ChatListView extends StatelessWidget {
|
||||
final ChatListController controller;
|
||||
|
||||
const ChatListUI(this.controller, {Key key}) : super(key: key);
|
||||
const ChatListView(this.controller, {Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -7,10 +7,11 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||
import 'package:famedlysdk/famedlysdk.dart';
|
||||
|
||||
class ChatPermissionsSettingsUI extends StatelessWidget {
|
||||
class ChatPermissionsSettingsView extends StatelessWidget {
|
||||
final ChatPermissionsSettingsController controller;
|
||||
|
||||
const ChatPermissionsSettingsUI(this.controller, {Key key}) : super(key: key);
|
||||
const ChatPermissionsSettingsView(this.controller, {Key key})
|
||||
: super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -29,10 +29,10 @@ import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||
import 'package:scroll_to_index/scroll_to_index.dart';
|
||||
import 'package:swipe_to_action/swipe_to_action.dart';
|
||||
|
||||
class ChatUI extends StatelessWidget {
|
||||
class ChatView extends StatelessWidget {
|
||||
final ChatController controller;
|
||||
|
||||
const ChatUI(this.controller, {Key key}) : super(key: key);
|
||||
const ChatView(this.controller, {Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -5,10 +5,10 @@ import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||
|
||||
import '../../widgets/list_items/user_device_list_item.dart';
|
||||
|
||||
class DevicesSettingsUI extends StatelessWidget {
|
||||
class DevicesSettingsView extends StatelessWidget {
|
||||
final DevicesSettingsController controller;
|
||||
|
||||
const DevicesSettingsUI(this.controller, {Key key}) : super(key: key);
|
||||
const DevicesSettingsView(this.controller, {Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -10,10 +10,10 @@ import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
|
||||
class HomeserverPickerUI extends StatelessWidget {
|
||||
class HomeserverPickerView extends StatelessWidget {
|
||||
final HomeserverPickerController controller;
|
||||
|
||||
const HomeserverPickerUI(this.controller, {Key key}) : super(key: key);
|
||||
const HomeserverPickerView(this.controller, {Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -3,10 +3,10 @@ import 'package:fluffychat/widgets/image_bubble.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||
|
||||
class ImageViewerUI extends StatelessWidget {
|
||||
class ImageViewerView extends StatelessWidget {
|
||||
final ImageViewerController controller;
|
||||
|
||||
const ImageViewerUI(this.controller, {Key key}) : super(key: key);
|
||||
const ImageViewerView(this.controller, {Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -8,10 +8,10 @@ import 'package:fluffychat/widgets/matrix.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||
|
||||
class InvitationSelectionUI extends StatelessWidget {
|
||||
class InvitationSelectionView extends StatelessWidget {
|
||||
final InvitationSelectionController controller;
|
||||
|
||||
const InvitationSelectionUI(this.controller, {Key key}) : super(key: key);
|
||||
const InvitationSelectionView(this.controller, {Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -3,10 +3,10 @@ import 'package:fluffychat/widgets/layouts/max_width_body.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||
|
||||
class NewGroupUI extends StatelessWidget {
|
||||
class NewGroupView extends StatelessWidget {
|
||||
final NewGroupController controller;
|
||||
|
||||
const NewGroupUI(this.controller, {Key key}) : super(key: key);
|
||||
const NewGroupView(this.controller, {Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -8,10 +8,10 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||
import 'package:famedlysdk/famedlysdk.dart';
|
||||
|
||||
class NewPrivateChatUI extends StatelessWidget {
|
||||
class NewPrivateChatView extends StatelessWidget {
|
||||
final NewPrivateChatController controller;
|
||||
|
||||
const NewPrivateChatUI(this.controller, {Key key}) : super(key: key);
|
||||
const NewPrivateChatView(this.controller, {Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -11,10 +11,10 @@ import 'package:future_loading_dialog/future_loading_dialog.dart';
|
||||
import '../../utils/localized_exception_extension.dart';
|
||||
import '../search.dart';
|
||||
|
||||
class SearchUI extends StatelessWidget {
|
||||
class SearchView extends StatelessWidget {
|
||||
final SearchController controller;
|
||||
|
||||
const SearchUI(this.controller, {Key key}) : super(key: key);
|
||||
const SearchView(this.controller, {Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -5,10 +5,10 @@ import 'package:fluffychat/widgets/matrix.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||
|
||||
class Settings3PidUI extends StatelessWidget {
|
||||
class Settings3PidView extends StatelessWidget {
|
||||
final Settings3PidController controller;
|
||||
|
||||
const Settings3PidUI(this.controller, {Key key}) : super(key: key);
|
||||
const Settings3PidView(this.controller, {Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -7,10 +7,10 @@ import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||
import '../../widgets/matrix.dart';
|
||||
import '../settings_emotes.dart';
|
||||
|
||||
class EmotesSettingsUI extends StatelessWidget {
|
||||
class EmotesSettingsView extends StatelessWidget {
|
||||
final EmotesSettingsController controller;
|
||||
|
||||
const EmotesSettingsUI(this.controller, {Key key}) : super(key: key);
|
||||
const EmotesSettingsView(this.controller, {Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -8,10 +8,10 @@ import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||
import '../settings_ignore_list.dart';
|
||||
import '../../widgets/matrix.dart';
|
||||
|
||||
class SettingsIgnoreListUI extends StatelessWidget {
|
||||
class SettingsIgnoreListView extends StatelessWidget {
|
||||
final SettingsIgnoreListController controller;
|
||||
|
||||
const SettingsIgnoreListUI(this.controller, {Key key}) : super(key: key);
|
||||
const SettingsIgnoreListView(this.controller, {Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -5,10 +5,10 @@ import 'package:flutter/material.dart';
|
||||
import 'package:famedlysdk/famedlysdk.dart';
|
||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||
|
||||
class MultipleEmotesSettingsUI extends StatelessWidget {
|
||||
class MultipleEmotesSettingsView extends StatelessWidget {
|
||||
final MultipleEmotesSettingsController controller;
|
||||
|
||||
MultipleEmotesSettingsUI(this.controller, {Key key}) : super(key: key);
|
||||
MultipleEmotesSettingsView(this.controller, {Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -11,10 +11,10 @@ import '../../utils/localized_exception_extension.dart';
|
||||
import '../settings_notifications.dart';
|
||||
import '../../widgets/matrix.dart';
|
||||
|
||||
class SettingsNotificationsUI extends StatelessWidget {
|
||||
class SettingsNotificationsView extends StatelessWidget {
|
||||
final SettingsNotificationsController controller;
|
||||
|
||||
const SettingsNotificationsUI(this.controller, {Key key}) : super(key: key);
|
||||
const SettingsNotificationsView(this.controller, {Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -7,10 +7,10 @@ import '../../config/app_config.dart';
|
||||
import '../../widgets/matrix.dart';
|
||||
import '../settings_style.dart';
|
||||
|
||||
class SettingsStyleUI extends StatelessWidget {
|
||||
class SettingsStyleView extends StatelessWidget {
|
||||
final SettingsStyleController controller;
|
||||
|
||||
const SettingsStyleUI(this.controller, {Key key}) : super(key: key);
|
||||
const SettingsStyleView(this.controller, {Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -18,10 +18,10 @@ import '../../config/app_config.dart';
|
||||
import '../../config/setting_keys.dart';
|
||||
import '../settings.dart';
|
||||
|
||||
class SettingsUI extends StatelessWidget {
|
||||
class SettingsView extends StatelessWidget {
|
||||
final SettingsController controller;
|
||||
|
||||
const SettingsUI(this.controller, {Key key}) : super(key: key);
|
||||
const SettingsView(this.controller, {Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -4,10 +4,10 @@ import 'package:fluffychat/widgets/layouts/one_page_card.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||
|
||||
class SignUpPasswordUI extends StatelessWidget {
|
||||
class SignUpPasswordView extends StatelessWidget {
|
||||
final SignUpPasswordController controller;
|
||||
|
||||
const SignUpPasswordUI(this.controller, {Key key}) : super(key: key);
|
||||
const SignUpPasswordView(this.controller, {Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -8,10 +8,10 @@ import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||
|
||||
class SignUpUI extends StatelessWidget {
|
||||
class SignUpView extends StatelessWidget {
|
||||
final SignUpController controller;
|
||||
|
||||
const SignUpUI(this.controller, {Key key}) : super(key: key);
|
||||
const SignUpView(this.controller, {Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -9,10 +9,10 @@ import '../user_bottom_sheet.dart';
|
||||
import '../../utils/presence_extension.dart';
|
||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||
|
||||
class UserBottomSheetUI extends StatelessWidget {
|
||||
class UserBottomSheetView extends StatelessWidget {
|
||||
final UserBottomSheetController controller;
|
||||
|
||||
const UserBottomSheetUI(this.controller, {Key key}) : super(key: key);
|
||||
const UserBottomSheetView(this.controller, {Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
Loading…
Reference in New Issue
Block a user