feat: settings my account (#5223)

* feat: my account settings page

* test: amend tests

* chore: remove unused code

* test: remove widget tests

* fix: text color on select buttons

* test: clean and remove unused test helpers

* test: fix test after refactor
This commit is contained in:
Mathias Mogensen
2024-04-30 14:09:08 +02:00
committed by GitHub
parent f3544375c9
commit 4981baac13
124 changed files with 2315 additions and 4662 deletions

View File

@ -1,6 +1,7 @@
import 'package:flowy_infra_ui/style_widget/hover.dart';
import 'package:flutter/material.dart';
import 'package:flowy_infra_ui/style_widget/hover.dart';
enum AccessoryType {
edit,
more,
@ -11,10 +12,6 @@ abstract mixin class CardAccessory implements Widget {
void onTap(BuildContext context) {}
}
typedef CardAccessoryBuilder = List<CardAccessory> Function(
BuildContext buildContext,
);
class CardAccessoryContainer extends StatelessWidget {
const CardAccessoryContainer({
super.key,

View File

@ -1,10 +0,0 @@
import 'package:flutter/material.dart';
class CellDecoration {
static BoxDecoration box({required Color color}) {
return BoxDecoration(
border: Border.all(color: Colors.black26, width: 0.2),
color: color,
);
}
}

View File

@ -96,21 +96,3 @@ class GridCellCopyAction extends Action<GridCellCopyIntent> {
}
}
}
class GridCellPasteIntent extends Intent {
const GridCellPasteIntent();
}
class GridCellPasteAction extends Action<GridCellPasteIntent> {
GridCellPasteAction({required this.child});
final CellShortcuts child;
@override
void invoke(covariant GridCellPasteIntent intent) {
final callback = child.shortcutHandlers[CellKeyboardKey.onInsert];
if (callback != null) {
callback();
}
}
}

View File

@ -1,5 +1,8 @@
import 'package:flutter/material.dart';
import 'package:appflowy/generated/flowy_svgs.g.dart';
import 'package:appflowy/generated/locale_keys.g.dart';
import 'package:appflowy/plugins/database/application/cell/bloc/text_cell_bloc.dart';
import 'package:appflowy/plugins/database/application/cell/cell_controller.dart';
import 'package:appflowy/plugins/database/application/field/field_controller.dart';
import 'package:appflowy/plugins/database/application/row/row_banner_bloc.dart';
@ -8,7 +11,6 @@ import 'package:appflowy/plugins/database/domain/database_view_service.dart';
import 'package:appflowy/plugins/database/widgets/cell/editable_cell_builder.dart';
import 'package:appflowy/plugins/database/widgets/cell/editable_cell_skeleton/text.dart';
import 'package:appflowy/plugins/database/widgets/row/cells/cell_container.dart';
import 'package:appflowy/plugins/database/application/cell/bloc/text_cell_bloc.dart';
import 'package:appflowy/plugins/database/widgets/row/row_action.dart';
import 'package:appflowy/plugins/database_document/database_document_plugin.dart';
import 'package:appflowy/startup/plugin/plugin.dart';
@ -19,10 +21,8 @@ import 'package:appflowy/workspace/presentation/settings/widgets/emoji_picker/em
import 'package:appflowy_popover/appflowy_popover.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flowy_infra_ui/flowy_infra_ui.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
typedef OnSubmittedEmoji = void Function(String emoji);
const _kBannerActionHeight = 40.0;
class RowBanner extends StatefulWidget {