Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

feat: upgrade to flutter 3.16 (#4119)

Lucas.Xuef49cb6577c0
diff --git a/.github/workflows/build_android_apk.yaml b/.github/workflows/build_android_apk.yaml
index ffad7a8c70..974da6c637 100644
--- a/.github/workflows/build_android_apk.yaml
+++ b/.github/workflows/build_android_apk.yaml
@@ -3,7 +3,7 @@ name: Build AppFlowy Release APK
on: workflow_dispatch
env:
- FLUTTER_VERSION: "3.13.9"
+ FLUTTER_VERSION: "3.16.2"
RUST_TOOLCHAIN: "1.70"
jobs:
diff --git a/.github/workflows/flutter_ci.yaml b/.github/workflows/flutter_ci.yaml
index 1f9d113127..1abde26d79 100644
--- a/.github/workflows/flutter_ci.yaml
+++ b/.github/workflows/flutter_ci.yaml
@@ -23,7 +23,7 @@ on:
env:
CARGO_TERM_COLOR: always
- FLUTTER_VERSION: "3.13.9"
+ FLUTTER_VERSION: "3.16.2"
RUST_TOOLCHAIN: "1.70"
CARGO_MAKE_VERSION: "0.36.6"
diff --git a/.github/workflows/mobile_ci.yaml b/.github/workflows/mobile_ci.yaml
index 17657eafad..ea01187ed4 100644
--- a/.github/workflows/mobile_ci.yaml
+++ b/.github/workflows/mobile_ci.yaml
@@ -18,7 +18,7 @@ on:
- "!frontend/appflowy_tauri/**"
env:
- FLUTTER_VERSION: "3.13.9"
+ FLUTTER_VERSION: "3.16.2"
RUST_TOOLCHAIN: "1.70"
concurrency:
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 243062ac2b..5c70c43e9b 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -6,7 +6,7 @@ on:
- "*"
env:
- FLUTTER_VERSION: "3.13.9"
+ FLUTTER_VERSION: "3.16.2"
RUST_TOOLCHAIN: "1.70"
jobs:
diff --git a/.github/workflows/rust_coverage.yml b/.github/workflows/rust_coverage.yml
index 7d36e625e5..7177a0983d 100644
--- a/.github/workflows/rust_coverage.yml
+++ b/.github/workflows/rust_coverage.yml
@@ -11,7 +11,7 @@ on:
env:
CARGO_TERM_COLOR: always
- FLUTTER_VERSION: "3.13.9"
+ FLUTTER_VERSION: "3.16.2"
RUST_TOOLCHAIN: "1.70"
jobs:
diff --git a/frontend/appflowy_flutter/analysis_options.yaml b/frontend/appflowy_flutter/analysis_options.yaml
index 00ed18a2e6..ef7374f24a 100644
--- a/frontend/appflowy_flutter/analysis_options.yaml
+++ b/frontend/appflowy_flutter/analysis_options.yaml
@@ -34,6 +34,13 @@ linter:
- prefer_final_in_for_each
- prefer_final_locals
+ - sized_box_for_whitespace
+ - avoid_unnecessary_containers
+
+ - always_declare_return_types
+ - unnecessary_raw_strings
+ - use_decorated_box
+
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
diff --git a/frontend/appflowy_flutter/integration_test/board/board_group_test.dart b/frontend/appflowy_flutter/integration_test/board/board_group_test.dart
index 17402b4d15..b4b5a1ce01 100644
--- a/frontend/appflowy_flutter/integration_test/board/board_group_test.dart
+++ b/frontend/appflowy_flutter/integration_test/board/board_group_test.dart
@@ -19,7 +19,7 @@ void main() {
await tester.createNewPageWithName(layout: ViewLayoutPB.Board);
final card1 = find.ancestor(
- of: find.findTextInFlowyText(card1Name),
+ of: find.findTextInFlowyText(card1Name),
matching: find.byType(AppFlowyGroupCard),
);
final doingGroup = find.findTextInFlowyText('Doing');
@@ -27,7 +27,7 @@ void main() {
final card1Center = tester.getCenter(card1);
await tester.timedDrag(
- card1,
+ card1,
doingGroupCenter.translate(-card1Center.dx, -card1Center.dy),
const Duration(seconds: 1),
);
@@ -36,9 +36,9 @@ void main() {
await tester.pumpAndSettle();
final card1StatusFinder = find.descendant(
- of: find.byType(RowPropertyList),
+ of: find.byType(RowPropertyList),
matching: find.descendant(
- of: find.byType(SelectOptionTag),
+ of: find.byType(SelectOptionTag),
matching: find.byType(FlowyText),
),
);
diff --git a/frontend/appflowy_flutter/integration_test/document/appflowy_cloud_document_test.dart b/frontend/appflowy_flutter/integration_test/document/appflowy_cloud_document_test.dart
index e69de29bb2..8b13789179 100644
--- a/frontend/appflowy_flutter/integration_test/document/appflowy_cloud_document_test.dart
+++ b/frontend/appflowy_flutter/integration_test/document/appflowy_cloud_document_test.dart
@@ -0,0 +1 @@
+
diff --git a/frontend/appflowy_flutter/integration_test/document/edit_document_test.dart b/frontend/appflowy_flutter/integration_test/document/edit_document_test.dart
index 280ff24577..53671edcd8 100644
--- a/frontend/appflowy_flutter/integration_test/document/edit_document_test.dart
+++ b/frontend/appflowy_flutter/integration_test/document/edit_document_test.dart
@@ -104,7 +104,7 @@ void main() {
});
}
-const _sample = r'''
+const _sample = '''
# Heading 1
## Heading 2
### Heading 3
diff --git a/frontend/appflowy_flutter/lib/core/frameless_window.dart b/frontend/appflowy_flutter/lib/core/frameless_window.dart
index 3641aeef4d..a9f103850a 100644
--- a/frontend/appflowy_flutter/lib/core/frameless_window.dart
+++ b/frontend/appflowy_flutter/lib/core/frameless_window.dart
@@ -26,7 +26,7 @@ class CocoaWindowChannel {
}
class MoveWindowDetector extends StatefulWidget {
- const MoveWindowDetector({Key? key, this.child}) : super(key: key);
+ const MoveWindowDetector({super.key, this.child});
final Widget? child;
diff --git a/frontend/appflowy_flutter/lib/core/notification/document_notification.dart b/frontend/appflowy_flutter/lib/core/notification/document_notification.dart
index bffcbf2a72..024b67e86d 100644
--- a/frontend/appflowy_flutter/lib/core/notification/document_notification.dart
+++ b/frontend/appflowy_flutter/lib/core/notification/document_notification.dart
@@ -13,11 +13,9 @@ typedef DocumentNotificationCallback = void Function(
class DocumentNotificationParser
extends NotificationParser<DocumentNotification, FlowyError> {
DocumentNotificationParser({
- String? id,
- required DocumentNotificationCallback callback,
+ super.id,
+ required super.callback,
}) : super(
- id: id,
- callback: callback,
tyParser: (ty) => DocumentNotification.valueOf(ty),
errorParser: (bytes) => FlowyError.fromBuffer(bytes),
);
diff --git a/frontend/appflowy_flutter/lib/core/notification/folder_notification.dart b/frontend/appflowy_flutter/lib/core/notification/folder_notification.dart
index 5b33670057..9acf0d062a 100644
--- a/frontend/appflowy_flutter/lib/core/notification/folder_notification.dart
+++ b/frontend/appflowy_flutter/lib/core/notification/folder_notification.dart
@@ -17,11 +17,9 @@ typedef FolderNotificationCallback = void Function(
class FolderNotificationParser
extends NotificationParser<FolderNotification, FlowyError> {
FolderNotificationParser({
- String? id,
- required FolderNotificationCallback callback,
+ super.id,
+ required super.callback,
}) : super(
- id: id,
- callback: callback,
tyParser: (ty) => FolderNotification.valueOf(ty),
errorParser: (bytes) => FlowyError.fromBuffer(bytes),
);
diff --git a/frontend/appflowy_flutter/lib/core/notification/grid_notification.dart b/frontend/appflowy_flutter/lib/core/notification/grid_notification.dart
index fd2ce352f8..cf4c01ffa0 100644
--- a/frontend/appflowy_flutter/lib/core/notification/grid_notification.dart
+++ b/frontend/appflowy_flutter/lib/core/notification/grid_notification.dart
@@ -17,11 +17,9 @@ typedef DatabaseNotificationCallback = void Function(
class DatabaseNotificationParser
extends NotificationParser<DatabaseNotification, FlowyError> {
DatabaseNotificationParser({
- String? id,
- required DatabaseNotificationCallback callback,
+ super.id,
+ required super.callback,
}) : super(
- id: id,
- callback: callback,
tyParser: (ty) => DatabaseNotification.valueOf(ty),
errorParser: (bytes) => FlowyError.fromBuffer(bytes),
);
diff --git a/frontend/appflowy_flutter/lib/core/notification/user_notification.dart b/frontend/appflowy_flutter/lib/core/notification/user_notification.dart
index 1da65d12c6..35d7b3220b 100644
--- a/frontend/appflowy_flutter/lib/core/notification/user_notification.dart
+++ b/frontend/appflowy_flutter/lib/core/notification/user_notification.dart
@@ -17,11 +17,9 @@ typedef UserNotificationCallback = void Function(
class UserNotificationParser
extends NotificationParser<UserNotification, FlowyError> {
UserNotificationParser({
- required String id,
- required UserNotificationCallback callback,
+ required String super.id,
+ required super.callback,
}) : super(
- id: id,
- callback: callback,
tyParser: (ty) => UserNotification.valueOf(ty),
errorParser: (bytes) => FlowyError.fromBuffer(bytes),
);
diff --git a/frontend/appflowy_flutter/lib/env/cloud_env.dart b/frontend/appflowy_flutter/lib/env/cloud_env.dart
index 2481146880..445b2b93c3 100644
--- a/frontend/appflowy_flutter/lib/env/cloud_env.dart
+++ b/frontend/appflowy_flutter/lib/env/cloud_env.dart
@@ -146,7 +146,7 @@ enum AuthenticatorType {
}
}
- static fromValue(int value) {
+ static AuthenticatorType fromValue(int value) {
switch (value) {
case 0:
return AuthenticatorType.local;
diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/bottom_sheet_view_item.dart b/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/bottom_sheet_view_item.dart
index 49814d9125..43ca1e8ba0 100644
--- a/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/bottom_sheet_view_item.dart
+++ b/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/bottom_sheet_view_item.dart
@@ -31,7 +31,7 @@ class _MobileViewItemBottomSheetState extends State<MobileViewItemBottomSheet> {
MobileBottomSheetType type = MobileBottomSheetType.view;
@override
- initState() {
+ void initState() {
super.initState();
type = widget.defaultType;
diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/home/recent_folder/mobile_recent_view.dart b/frontend/appflowy_flutter/lib/mobile/presentation/home/recent_folder/mobile_recent_view.dart
index db4b473cca..b399c0eab9 100644
--- a/frontend/appflowy_flutter/lib/mobile/presentation/home/recent_folder/mobile_recent_view.dart
+++ b/frontend/appflowy_flutter/lib/mobile/presentation/home/recent_folder/mobile_recent_view.dart
@@ -76,7 +76,7 @@ class _MobileRecentViewState extends State<MobileRecentView> {
onTap: () => context.pushView(view),
child: Stack(
children: [
- Container(
+ DecoratedBox(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8),
border: Border.all(color: theme.colorScheme.outline),
diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/setting/font/font_picker_screen.dart b/frontend/appflowy_flutter/lib/mobile/presentation/setting/font/font_picker_screen.dart
index d4786e00c3..ae872bcde9 100644
--- a/frontend/appflowy_flutter/lib/mobile/presentation/setting/font/font_picker_screen.dart
+++ b/frontend/appflowy_flutter/lib/mobile/presentation/setting/font/font_picker_screen.dart
@@ -37,7 +37,7 @@ class _LanguagePickerPageState extends State<LanguagePickerPage> {
late List<String> availableFonts;
@override
- initState() {
+ void initState() {
super.initState();
availableFonts = _availableFonts;
diff --git a/frontend/appflowy_flutter/lib/plugins/blank/blank.dart b/frontend/appflowy_flutter/lib/plugins/blank/blank.dart
index 6599b3b236..e04c0d47ae 100644
--- a/frontend/appflowy_flutter/lib/plugins/blank/blank.dart
+++ b/frontend/appflowy_flutter/lib/plugins/blank/blank.dart
@@ -1,10 +1,10 @@
import 'package:appflowy/generated/flowy_svgs.g.dart';
+import 'package:appflowy/generated/locale_keys.g.dart';
+import 'package:appflowy/startup/plugin/plugin.dart';
import 'package:appflowy/workspace/presentation/home/home_stack.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flowy_infra_ui/style_widget/text.dart';
import 'package:flutter/material.dart';
-import 'package:appflowy/generated/locale_keys.g.dart';
-import 'package:appflowy/startup/plugin/plugin.dart';
class BlankPluginBuilder extends PluginBuilder {
@override
@@ -55,7 +55,7 @@ class BlankPagePluginWidgetBuilder extends PluginWidgetBuilder
}
class BlankPage extends StatefulWidget {
- const BlankPage({Key? key}) : super(key: key);
+ const BlankPage({super.key});
@override
State<BlankPage> createState() => _BlankPageState();
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/application/cell/cell_controller.dart b/frontend/appflowy_flutter/lib/plugins/database_view/application/cell/cell_controller.dart
index 40c644eec3..fb91df6876 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/application/cell/cell_controller.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/application/cell/cell_controller.dart
@@ -124,7 +124,7 @@ class CellController<T, D> extends Equatable {
_onRowMetaChanged = onRowMetaChanged;
/// Notify the listener, the cell data was changed.
- onCellChangedFn() => onCellChanged(_cellDataNotifier?.value);
+ void onCellChangedFn() => onCellChanged(_cellDataNotifier?.value);
_cellDataNotifier?.addListener(onCellChangedFn);
// Return the function pointer that can be used when calling removeListener.
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/application/defines.dart b/frontend/appflowy_flutter/lib/plugins/database_view/application/defines.dart
index e9989414b1..f3c9352a14 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/application/defines.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/application/defines.dart
@@ -40,5 +40,5 @@ class LoadingState with _$LoadingState {
) = _Finish;
const LoadingState._();
- isLoading() => this is _Loading;
+ bool isLoading() => this is _Loading;
}
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/application/field/field_controller.dart b/frontend/appflowy_flutter/lib/plugins/database_view/application/field/field_controller.dart
index 4cdeb789a8..40e57068f7 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/application/field/field_controller.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/application/field/field_controller.dart
@@ -166,7 +166,7 @@ class FieldController {
/// Listen for filter changes in the backend.
void _listenOnFilterChanges() {
- deleteFilterFromChangeset(
+ void deleteFilterFromChangeset(
List<FilterInfo> filters,
FilterChangesetNotificationPB changeset,
) {
@@ -178,7 +178,7 @@ class FieldController {
}
}
- insertFilterFromChangeset(
+ void insertFilterFromChangeset(
List<FilterInfo> filters,
FilterChangesetNotificationPB changeset,
) {
@@ -198,7 +198,7 @@ class FieldController {
}
}
- updateFilterFromChangeset(
+ void updateFilterFromChangeset(
List<FilterInfo> filters,
FilterChangesetNotificationPB changeset,
) {
@@ -264,7 +264,7 @@ class FieldController {
/// Listen for sort changes in the backend.
void _listenOnSortChanged() {
- deleteSortFromChangeset(
+ void deleteSortFromChangeset(
List<SortInfo> newSortInfos,
SortChangesetNotificationPB changeset,
) {
@@ -276,7 +276,7 @@ class FieldController {
}
}
- insertSortFromChangeset(
+ void insertSortFromChangeset(
List<SortInfo> newSortInfos,
SortChangesetNotificationPB changeset,
) {
@@ -297,7 +297,7 @@ class FieldController {
}
}
- updateSortFromChangeset(
+ void updateSortFromChangeset(
List<SortInfo> newSortInfos,
SortChangesetNotificationPB changeset,
) {
@@ -677,7 +677,7 @@ class FieldController {
bool Function()? listenWhen,
}) {
if (onFieldsChanged != null) {
- callback(List<FieldInfo> updateFields) {
+ void callback(List<FieldInfo> updateFields) {
if (listenWhen != null && listenWhen() == false) {
return;
}
@@ -688,7 +688,7 @@ class FieldController {
}
if (onReceiveFields != null) {
- callback() {
+ void callback() {
if (listenWhen != null && listenWhen() == false) {
return;
}
@@ -700,7 +700,7 @@ class FieldController {
}
if (onFilters != null) {
- callback() {
+ void callback() {
if (listenWhen != null && listenWhen() == false) {
return;
}
@@ -712,7 +712,7 @@ class FieldController {
}
if (onSorts != null) {
- callback() {
+ void callback() {
if (listenWhen != null && listenWhen() == false) {
return;
}
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/application/field/type_option/type_option_data_controller.dart b/frontend/appflowy_flutter/lib/plugins/database_view/application/field/type_option/type_option_data_controller.dart
index 2ee6feaa2a..9de81bed80 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/application/field/type_option/type_option_data_controller.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/application/field/type_option/type_option_data_controller.dart
@@ -99,7 +99,7 @@ class TypeOptionController {
}
void Function() addFieldListener(void Function(FieldPB) callback) {
- listener() {
+ void listener() {
callback(field);
}
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/application/row/row_cache.dart b/frontend/appflowy_flutter/lib/plugins/database_view/application/row/row_cache.dart
index 87e2c69959..917c5ef59a 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/application/row/row_cache.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/application/row/row_cache.dart
@@ -1,4 +1,5 @@
import 'dart:collection';
+
import 'package:appflowy/plugins/database_view/application/field/field_info.dart';
import 'package:appflowy_backend/dispatch/dispatch.dart';
import 'package:appflowy_backend/log.dart';
@@ -9,6 +10,7 @@ import 'package:freezed_annotation/freezed_annotation.dart';
import '../cell/cell_service.dart';
import 'row_list.dart';
import 'row_service.dart';
+
part 'row_cache.freezed.dart';
typedef RowUpdateCallback = void Function();
@@ -188,7 +190,7 @@ class RowCache {
required RowId rowId,
void Function(CellContextByFieldId, ChangedReason)? onRowChanged,
}) {
- listenerHandler() async {
+ void listenerHandler() async {
if (onRowChanged != null) {
final rowInfo = _rowList.get(rowId);
if (rowInfo != null) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/application/row/row_controller.dart b/frontend/appflowy_flutter/lib/plugins/database_view/application/row/row_controller.dart
index b7102cfe4f..945cc965f7 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/application/row/row_controller.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/application/row/row_controller.dart
@@ -12,9 +12,9 @@ class RowController {
final List<VoidCallback> _onRowChangedListeners = [];
final RowCache _rowCache;
- get cellCache => _rowCache.cellCache;
+ CellMemCache get cellCache => _rowCache.cellCache;
- get rowId => rowMeta.id;
+ String get rowId => rowMeta.id;
RowController({
required this.rowMeta,
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/board/presentation/toolbar/board_setting_bar.dart b/frontend/appflowy_flutter/lib/plugins/database_view/board/presentation/toolbar/board_setting_bar.dart
index 0944e5e5d7..3de8dd68d9 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/board/presentation/toolbar/board_setting_bar.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/board/presentation/toolbar/board_setting_bar.dart
@@ -6,8 +6,8 @@ class BoardSettingBar extends StatelessWidget {
final DatabaseController databaseController;
const BoardSettingBar({
required this.databaseController,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/calendar/presentation/calendar_day.dart b/frontend/appflowy_flutter/lib/plugins/database_view/calendar/presentation/calendar_day.dart
index 35da0dceca..51a907ecbd 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/calendar/presentation/calendar_day.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/calendar/presentation/calendar_day.dart
@@ -148,7 +148,7 @@ class CalendarDayCard extends StatelessWidget {
);
}
- notifyEnter(BuildContext context, bool isEnter) =>
+ bool notifyEnter(BuildContext context, bool isEnter) =>
Provider.of<_CardEnterNotifier>(context, listen: false).onEnter = isEnter;
Border _borderFromPosition(BuildContext context, CellPosition position) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/calendar/presentation/calendar_event_editor.dart b/frontend/appflowy_flutter/lib/plugins/database_view/calendar/presentation/calendar_event_editor.dart
index 11641b19b7..cb1c2f96dc 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/calendar/presentation/calendar_event_editor.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/calendar/presentation/calendar_event_editor.dart
@@ -181,8 +181,8 @@ class PropertyCell extends StatefulWidget {
const PropertyCell({
required this.cellContext,
required this.cellBuilder,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
State<StatefulWidget> createState() => _PropertyCellState();
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/calendar/presentation/calendar_page.dart b/frontend/appflowy_flutter/lib/plugins/database_view/calendar/presentation/calendar_page.dart
index 80af1e89ec..528957dd69 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/calendar/presentation/calendar_page.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/calendar/presentation/calendar_page.dart
@@ -17,7 +17,6 @@ import 'package:appflowy_popover/appflowy_popover.dart';
import 'package:calendar_view/calendar_view.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flowy_infra/size.dart';
-
import 'package:flowy_infra/theme_extension.dart';
import 'package:flowy_infra_ui/flowy_infra_ui.dart';
import 'package:flowy_infra_ui/widget/flowy_tooltip.dart';
@@ -229,7 +228,6 @@ class _CalendarPageState extends State<CalendarPage> {
firstDate: CalendarConstants.epochDate.withoutTime,
lastDate: CalendarConstants.maxDate.withoutTime,
selectedDate: currentMonth,
- initialDate: currentMonth,
currentDate: DateTime.now(),
onChanged: (newDate) {
_calendarState?.currentState?.jumpToMonth(newDate);
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/grid_page.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/grid_page.dart
index f4c07ed084..837b5f3da2 100755
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/grid_page.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/grid_page.dart
@@ -32,7 +32,7 @@ import 'widgets/shortcuts.dart';
class ToggleExtensionNotifier extends ChangeNotifier {
bool _isToggled = false;
- get isToggled => _isToggled;
+ bool get isToggled => _isToggled;
void toggle() {
_isToggled = !_isToggled;
@@ -90,8 +90,8 @@ class GridPage extends StatefulWidget {
required this.view,
required this.databaseController,
this.onDeleted,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
final ViewPB view;
final VoidCallback? onDeleted;
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/common/type_option_separator.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/common/type_option_separator.dart
index 8539516d65..14f72f20c0 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/common/type_option_separator.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/common/type_option_separator.dart
@@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
class TypeOptionSeparator extends StatelessWidget {
final double spacing;
- const TypeOptionSeparator({this.spacing = 6.0, Key? key}) : super(key: key);
+ const TypeOptionSeparator({this.spacing = 6.0, super.key});
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/checkbox.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/checkbox.dart
index 5879e27b5b..83e798d5a7 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/checkbox.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/checkbox.dart
@@ -17,8 +17,7 @@ import 'choicechip.dart';
class CheckboxFilterChoicechip extends StatefulWidget {
final FilterInfo filterInfo;
- const CheckboxFilterChoicechip({required this.filterInfo, Key? key})
- : super(key: key);
+ const CheckboxFilterChoicechip({required this.filterInfo, super.key});
@override
State<CheckboxFilterChoicechip> createState() =>
@@ -72,7 +71,7 @@ class _CheckboxFilterChoicechipState extends State<CheckboxFilterChoicechip> {
class CheckboxFilterEditor extends StatefulWidget {
final CheckboxFilterEditorBloc bloc;
- const CheckboxFilterEditor({required this.bloc, Key? key}) : super(key: key);
+ const CheckboxFilterEditor({required this.bloc, super.key});
@override
State<CheckboxFilterEditor> createState() => _CheckboxFilterEditorState();
@@ -150,8 +149,8 @@ class CheckboxFilterConditionList extends StatelessWidget {
required this.filterInfo,
required this.popoverMutex,
required this.onCondition,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/checklist/checklist.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/checklist/checklist.dart
index 5319fdff83..9d74bf50df 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/checklist/checklist.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/checklist/checklist.dart
@@ -14,8 +14,7 @@ import '../choicechip.dart';
class ChecklistFilterChoicechip extends StatefulWidget {
final FilterInfo filterInfo;
- const ChecklistFilterChoicechip({required this.filterInfo, Key? key})
- : super(key: key);
+ const ChecklistFilterChoicechip({required this.filterInfo, super.key});
@override
State<ChecklistFilterChoicechip> createState() =>
@@ -73,8 +72,8 @@ class ChecklistFilterEditor extends StatefulWidget {
const ChecklistFilterEditor({
required this.bloc,
required this.popoverMutex,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
ChecklistState createState() => ChecklistState();
@@ -126,8 +125,8 @@ class ChecklistFilterConditionList extends StatelessWidget {
final FilterInfo filterInfo;
const ChecklistFilterConditionList({
required this.filterInfo,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/choicechip.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/choicechip.dart
index 572fdb6011..e2e2f31001 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/choicechip.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/choicechip.dart
@@ -15,11 +15,11 @@ class ChoiceChipButton extends StatelessWidget {
final String filterDesc;
const ChoiceChipButton({
- Key? key,
+ super.key,
required this.filterInfo,
this.filterDesc = '',
this.onTap,
- }) : super(key: key);
+ });
@override
Widget build(BuildContext context) {
@@ -59,8 +59,7 @@ class ChoiceChipButton extends StatelessWidget {
class _ChoicechipFilterDesc extends StatelessWidget {
final String filterDesc;
- const _ChoicechipFilterDesc({this.filterDesc = '', Key? key})
- : super(key: key);
+ const _ChoicechipFilterDesc({this.filterDesc = ''});
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/date.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/date.dart
index f63ed27e47..18a3e27c12 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/date.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/date.dart
@@ -5,8 +5,7 @@ import 'choicechip.dart';
class DateFilterChoicechip extends StatelessWidget {
final FilterInfo filterInfo;
- const DateFilterChoicechip({required this.filterInfo, Key? key})
- : super(key: key);
+ const DateFilterChoicechip({required this.filterInfo, super.key});
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/number.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/number.dart
index ee3c88bd70..034e709476 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/number.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/number.dart
@@ -5,8 +5,7 @@ import 'choicechip.dart';
class NumberFilterChoicechip extends StatelessWidget {
final FilterInfo filterInfo;
- const NumberFilterChoicechip({required this.filterInfo, Key? key})
- : super(key: key);
+ const NumberFilterChoicechip({required this.filterInfo, super.key});
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/select_option/condition_list.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/select_option/condition_list.dart
index a229e39768..c2344e7f8e 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/select_option/condition_list.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/select_option/condition_list.dart
@@ -19,8 +19,8 @@ class SelectOptionFilterConditionList extends StatelessWidget {
required this.filterInfo,
required this.popoverMutex,
required this.onCondition,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/select_option/option_list.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/select_option/option_list.dart
index 3a8122dce6..5c239326fe 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/select_option/option_list.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/select_option/option_list.dart
@@ -20,8 +20,8 @@ class SelectOptionFilterList extends StatelessWidget {
required this.filterInfo,
required this.selectedOptionIds,
required this.onSelectedOptions,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/select_option/select_option.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/select_option/select_option.dart
index bc1e43054f..ad8d3c9a2f 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/select_option/select_option.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/select_option/select_option.dart
@@ -15,8 +15,7 @@ import 'select_option_loader.dart';
class SelectOptionFilterChoicechip extends StatefulWidget {
final FilterInfo filterInfo;
- const SelectOptionFilterChoicechip({required this.filterInfo, Key? key})
- : super(key: key);
+ const SelectOptionFilterChoicechip({required this.filterInfo, super.key});
@override
State<SelectOptionFilterChoicechip> createState() =>
@@ -77,8 +76,7 @@ class _SelectOptionFilterChoicechipState
class SelectOptionFilterEditor extends StatefulWidget {
final SelectOptionFilterEditorBloc bloc;
- const SelectOptionFilterEditor({required this.bloc, Key? key})
- : super(key: key);
+ const SelectOptionFilterEditor({required this.bloc, super.key});
@override
State<SelectOptionFilterEditor> createState() =>
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/text.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/text.dart
index aa1f35ced9..bf12b2d626 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/text.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/text.dart
@@ -16,8 +16,7 @@ import 'choicechip.dart';
class TextFilterChoicechip extends StatefulWidget {
final FilterInfo filterInfo;
- const TextFilterChoicechip({required this.filterInfo, Key? key})
- : super(key: key);
+ const TextFilterChoicechip({required this.filterInfo, super.key});
@override
State<TextFilterChoicechip> createState() => _TextFilterChoicechipState();
@@ -79,7 +78,7 @@ class _TextFilterChoicechipState extends State<TextFilterChoicechip> {
class TextFilterEditor extends StatefulWidget {
final TextFilterEditorBloc bloc;
- const TextFilterEditor({required this.bloc, Key? key}) : super(key: key);
+ const TextFilterEditor({required this.bloc, super.key});
@override
State<TextFilterEditor> createState() => _TextFilterEditorState();
@@ -180,8 +179,8 @@ class TextFilterConditionPBList extends StatelessWidget {
required this.filterInfo,
required this.popoverMutex,
required this.onCondition,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/url.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/url.dart
index 72bad7ee95..7ea6229302 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/url.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/url.dart
@@ -4,8 +4,7 @@ import 'choicechip.dart';
class URLFilterChoicechip extends StatelessWidget {
final FilterInfo filterInfo;
- const URLFilterChoicechip({required this.filterInfo, Key? key})
- : super(key: key);
+ const URLFilterChoicechip({required this.filterInfo, super.key});
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/condition_button.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/condition_button.dart
index bdc6af2dbb..edae081e31 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/condition_button.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/condition_button.dart
@@ -12,8 +12,8 @@ class ConditionButton extends StatelessWidget {
const ConditionButton({
required this.conditionName,
required this.onTap,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/create_filter_list.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/create_filter_list.dart
index e0b3c1c504..89dbba06f4 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/create_filter_list.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/create_filter_list.dart
@@ -27,8 +27,8 @@ class GridCreateFilterList extends StatefulWidget {
required this.fieldController,
required this.onClosed,
this.onCreateFilter,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
State<StatefulWidget> createState() => _GridCreateFilterListState();
@@ -155,8 +155,8 @@ class GridFilterPropertyCell extends StatelessWidget {
const GridFilterPropertyCell({
required this.fieldInfo,
required this.onTap,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/disclosure_button.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/disclosure_button.dart
index 994e402486..cd93df49c1 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/disclosure_button.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/disclosure_button.dart
@@ -14,8 +14,8 @@ class DisclosureButton extends StatefulWidget {
const DisclosureButton({
required this.popoverMutex,
required this.onAction,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
State<DisclosureButton> createState() => _DisclosureButtonState();
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/filter_menu.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/filter_menu.dart
index 80b326abf4..7b88d326b6 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/filter_menu.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/filter_menu.dart
@@ -17,8 +17,8 @@ class FilterMenu extends StatelessWidget {
final FieldController fieldController;
const FilterMenu({
required this.fieldController,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
@@ -63,7 +63,7 @@ class FilterMenu extends StatelessWidget {
class AddFilterButton extends StatefulWidget {
final String viewId;
- const AddFilterButton({required this.viewId, Key? key}) : super(key: key);
+ const AddFilterButton({required this.viewId, super.key});
@override
State<AddFilterButton> createState() => _AddFilterButtonState();
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/filter_menu_item.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/filter_menu_item.dart
index d2e13b8b53..baf2263e63 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/filter_menu_item.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/filter_menu_item.dart
@@ -12,7 +12,7 @@ import 'filter_info.dart';
class FilterMenuItem extends StatelessWidget {
final FilterInfo filterInfo;
- const FilterMenuItem({required this.filterInfo, Key? key}) : super(key: key);
+ const FilterMenuItem({required this.filterInfo, super.key});
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/field_cell.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/field_cell.dart
index ec21b6a52a..29391f411b 100755
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/field_cell.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/field_cell.dart
@@ -2,12 +2,11 @@ import 'package:appflowy/generated/flowy_svgs.g.dart';
import 'package:appflowy/plugins/database_view/application/field/field_cell_bloc.dart';
import 'package:appflowy/plugins/database_view/application/field/field_controller.dart';
import 'package:appflowy/plugins/database_view/application/field/field_info.dart';
+import 'package:appflowy_backend/protobuf/flowy-database2/field_entities.pb.dart';
import 'package:appflowy_popover/appflowy_popover.dart';
-
import 'package:flowy_infra/theme_extension.dart';
import 'package:flowy_infra_ui/flowy_infra_ui.dart';
import 'package:flowy_infra_ui/style_widget/hover.dart';
-import 'package:appflowy_backend/protobuf/flowy-database2/field_entities.pb.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
@@ -58,7 +57,7 @@ class _GridFieldCellState extends State<GridFieldCell> {
}
@override
- didUpdateWidget(covariant oldWidget) {
+ void didUpdateWidget(covariant oldWidget) {
if (widget.fieldInfo != oldWidget.fieldInfo && !_bloc.isClosed) {
_bloc.add(FieldCellEvent.onFieldChanged(widget.fieldInfo));
}
@@ -132,8 +131,7 @@ class _GridHeaderCellContainer extends StatelessWidget {
const _GridHeaderCellContainer({
required this.child,
required this.width,
- Key? key,
- }) : super(key: key);
+ });
@override
Widget build(BuildContext context) {
@@ -157,9 +155,7 @@ class _GridHeaderCellContainer extends StatelessWidget {
}
class _DragToExpandLine extends StatelessWidget {
- const _DragToExpandLine({
- Key? key,
- }) : super(key: key);
+ const _DragToExpandLine();
@override
Widget build(BuildContext context) {
@@ -208,8 +204,8 @@ class FieldCellButton extends StatelessWidget {
this.maxLines = 1,
this.radius = BorderRadius.zero,
this.margin,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/field_type_list.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/field_type_list.dart
index 0f2875d24a..27b9612965 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/field_type_list.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/field_type_list.dart
@@ -11,8 +11,7 @@ typedef SelectFieldCallback = void Function(FieldType);
class FieldTypeList extends StatelessWidget with FlowyOverlayDelegate {
final SelectFieldCallback onSelectField;
- const FieldTypeList({required this.onSelectField, Key? key})
- : super(key: key);
+ const FieldTypeList({required this.onSelectField, super.key});
@override
Widget build(BuildContext context) {
@@ -50,8 +49,8 @@ class FieldTypeCell extends StatelessWidget {
const FieldTypeCell({
required this.fieldType,
required this.onSelectField,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/grid_header.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/grid_header.dart
index 3403c095c7..e07d92db65 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/grid_header.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/grid_header.dart
@@ -74,7 +74,7 @@ class _GridHeaderState extends State<_GridHeader> {
/// [ReorderableRow] warps the child's key with a [GlobalKey].
/// It will trigger the child's widget's to recreate.
/// The state will lose.
- _getKeyById(String id) {
+ ValueKey<String>? _getKeyById(String id) {
if (_gridMap.containsKey(id)) {
return _gridMap[id];
}
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/type_option/date.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/type_option/date.dart
index 8c40fb2ba9..a362da4ac6 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/type_option/date.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/type_option/date.dart
@@ -37,8 +37,8 @@ class DateTypeOptionWidget extends TypeOptionWidget {
const DateTypeOptionWidget({
required this.typeOptionContext,
required this.popoverMutex,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
@@ -136,8 +136,8 @@ class DateFormatButton extends StatelessWidget {
const DateFormatButton({
this.onTap,
this.onHover,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
@@ -161,8 +161,8 @@ class TimeFormatButton extends StatelessWidget {
required this.timeFormat,
this.onTap,
this.onHover,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
@@ -184,8 +184,8 @@ class DateFormatList extends StatelessWidget {
const DateFormatList({
required this.selectedFormat,
required this.onSelected,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
@@ -222,8 +222,8 @@ class DateFormatCell extends StatelessWidget {
required this.dateFormat,
required this.onSelected,
required this.isSelected,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
@@ -268,8 +268,8 @@ class TimeFormatList extends StatelessWidget {
const TimeFormatList({
required this.selectedFormat,
required this.onSelected,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
@@ -306,8 +306,8 @@ class TimeFormatCell extends StatelessWidget {
required this.timeFormat,
required this.onSelected,
required this.isSelected,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/type_option/number.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/type_option/number.dart
index 2b88aa2e76..7fba4e9a1a 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/type_option/number.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/type_option/number.dart
@@ -122,8 +122,8 @@ class NumberFormatList extends StatelessWidget {
const NumberFormatList({
required this.selectedFormat,
required this.onSelected,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
@@ -178,8 +178,8 @@ class NumberFormatCell extends StatelessWidget {
required this.isSelected,
required this.format,
required this.onSelected,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
@@ -200,7 +200,7 @@ class NumberFormatCell extends StatelessWidget {
}
class _FilterTextField extends StatelessWidget {
- const _FilterTextField({Key? key}) : super(key: key);
+ const _FilterTextField();
@override
Widget build(BuildContext context) {
return Padding(
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/type_option/select_option.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/type_option/select_option.dart
index cef1853297..2cc51639f4 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/type_option/select_option.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/type_option/select_option.dart
@@ -86,7 +86,7 @@ class _OptionTitle extends StatelessWidget {
class _OptionList extends StatelessWidget {
final PopoverMutex? popoverMutex;
- const _OptionList({Key? key, this.popoverMutex}) : super(key: key);
+ const _OptionList({this.popoverMutex});
@override
Widget build(BuildContext context) {
@@ -120,8 +120,7 @@ class _OptionList extends StatelessWidget {
class _OptionCell extends StatefulWidget {
final SelectOptionPB option;
final PopoverMutex? popoverMutex;
- const _OptionCell({required this.option, Key? key, this.popoverMutex})
- : super(key: key);
+ const _OptionCell({required this.option, this.popoverMutex});
@override
State<_OptionCell> createState() => _OptionCellState();
@@ -190,7 +189,7 @@ class _OptionCellState extends State<_OptionCell> {
}
class _AddOptionButton extends StatelessWidget {
- const _AddOptionButton({Key? key}) : super(key: key);
+ const _AddOptionButton();
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/type_option/select_option_editor.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/type_option/select_option_editor.dart
index 03354e9ec0..94641b4591 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/type_option/select_option_editor.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/type_option/select_option_editor.dart
@@ -29,8 +29,8 @@ class SelectOptionTypeOptionEditor extends StatelessWidget {
required this.onUpdated,
this.showOptions = true,
this.autoFocus = true,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
static String get identifier => (SelectOptionTypeOptionEditor).toString();
@@ -98,7 +98,7 @@ class SelectOptionTypeOptionEditor extends StatelessWidget {
}
class _DeleteTag extends StatelessWidget {
- const _DeleteTag({Key? key}) : super(key: key);
+ const _DeleteTag();
@override
Widget build(BuildContext context) {
@@ -125,8 +125,7 @@ class _OptionNameTextField extends StatelessWidget {
const _OptionNameTextField({
required this.name,
required this.autoFocus,
- Key? key,
- }) : super(key: key);
+ });
@override
Widget build(BuildContext context) {
@@ -201,8 +200,7 @@ class _SelectOptionColorCell extends StatelessWidget {
required this.color,
required this.isSelected,
required this.onSelectedColor,
- Key? key,
- }) : super(key: key);
+ });
final SelectOptionColorPB color;
final bool isSelected;
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/type_option/timestamp.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/type_option/timestamp.dart
index 3f506fc5b7..f312508317 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/type_option/timestamp.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/type_option/timestamp.dart
@@ -40,8 +40,8 @@ class TimestampTypeOptionWidget extends TypeOptionWidget {
const TimestampTypeOptionWidget({
required this.typeOptionContext,
required this.popoverMutex,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/mobile_fab.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/mobile_fab.dart
index bc699e4a9b..71a61bd8b4 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/mobile_fab.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/mobile_fab.dart
@@ -78,7 +78,7 @@ class MobileGridFab extends StatelessWidget {
@override
Widget build(BuildContext context) {
final radius = BorderRadius.circular(20);
- return Container(
+ return DecoratedBox(
decoration: BoxDecoration(
color: backgroundColor,
borderRadius: radius,
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/row/action.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/row/action.dart
index 55ff61c4cd..0188c33ad9 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/row/action.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/row/action.dart
@@ -20,8 +20,8 @@ class RowActions extends StatelessWidget {
required this.viewId,
required this.rowId,
this.groupId,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/row/row.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/row/row.dart
index 24fc59fa84..a8703c6282 100755
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/row/row.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/row/row.dart
@@ -172,7 +172,7 @@ class _RowLeadingState extends State<_RowLeading> {
}
class InsertRowButton extends StatelessWidget {
- const InsertRowButton({Key? key}) : super(key: key);
+ const InsertRowButton({super.key});
@override
Widget build(BuildContext context) {
@@ -238,8 +238,8 @@ class RowContent extends StatelessWidget {
const RowContent({
required this.builder,
required this.onExpand,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
@@ -329,7 +329,7 @@ class RegionStateNotifier extends ChangeNotifier {
class _RowEnterRegion extends StatefulWidget {
final Widget child;
- const _RowEnterRegion({required this.child, Key? key}) : super(key: key);
+ const _RowEnterRegion({required this.child, super.key});
@override
State<_RowEnterRegion> createState() => _RowEnterRegionState();
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/shortcuts.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/shortcuts.dart
index d3f7e7e9c4..1dfcebee71 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/shortcuts.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/shortcuts.dart
@@ -3,7 +3,7 @@ import 'package:flutter/services.dart';
class GridShortcuts extends StatelessWidget {
final Widget child;
- const GridShortcuts({required this.child, Key? key}) : super(key: key);
+ const GridShortcuts({required this.child, super.key});
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/sort/create_sort_list.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/sort/create_sort_list.dart
index 682509213d..847d8961aa 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/sort/create_sort_list.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/sort/create_sort_list.dart
@@ -27,8 +27,8 @@ class GridCreateSortList extends StatefulWidget {
required this.fieldController,
required this.onClosed,
this.onCreateSort,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
State<StatefulWidget> createState() => _GridCreateSortListState();
@@ -155,8 +155,8 @@ class GridSortPropertyCell extends StatelessWidget {
const GridSortPropertyCell({
required this.fieldInfo,
required this.onTap,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/sort/order_panel.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/sort/order_panel.dart
index 699d4448b3..d4a8416aa1 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/sort/order_panel.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/sort/order_panel.dart
@@ -7,7 +7,7 @@ import 'package:flutter/material.dart';
class OrderPanel extends StatelessWidget {
final Function(SortConditionPB) onCondition;
- const OrderPanel({required this.onCondition, Key? key}) : super(key: key);
+ const OrderPanel({required this.onCondition, super.key});
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/sort/sort_choice_button.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/sort/sort_choice_button.dart
index de8a5309f4..07d24c0b0e 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/sort/sort_choice_button.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/sort/sort_choice_button.dart
@@ -18,8 +18,8 @@ class SortChoiceButton extends StatelessWidget {
this.leftIcon,
this.rightIcon,
this.editable = true,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/toolbar/filter_button.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/toolbar/filter_button.dart
index fd4fdc0960..712abbbbe1 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/toolbar/filter_button.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/toolbar/filter_button.dart
@@ -12,7 +12,7 @@ import '../../layout/sizes.dart';
import '../filter/create_filter_list.dart';
class FilterButton extends StatefulWidget {
- const FilterButton({Key? key}) : super(key: key);
+ const FilterButton({super.key});
@override
State<FilterButton> createState() => _FilterButtonState();
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/toolbar/sort_button.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/toolbar/sort_button.dart
index 0a3b62a762..124940255a 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/toolbar/sort_button.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/toolbar/sort_button.dart
@@ -12,7 +12,7 @@ import 'package:appflowy/plugins/database_view/grid/presentation/layout/sizes.da
import '../sort/create_sort_list.dart';
class SortButton extends StatefulWidget {
- const SortButton({Key? key}) : super(key: key);
+ const SortButton({super.key});
@override
State<SortButton> createState() => _SortButtonState();
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/tab_bar/desktop/setting_menu.dart b/frontend/appflowy_flutter/lib/plugins/database_view/tab_bar/desktop/setting_menu.dart
index 67dbfd1ab4..f70e49c971 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/tab_bar/desktop/setting_menu.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/tab_bar/desktop/setting_menu.dart
@@ -48,8 +48,7 @@ class _DatabaseViewSettingContent extends StatelessWidget {
final FieldController fieldController;
const _DatabaseViewSettingContent({
required this.fieldController,
- Key? key,
- }) : super(key: key);
+ });
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/card.dart b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/card.dart
index 01a7781908..1129e937e8 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/card.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/card.dart
@@ -312,8 +312,7 @@ class _CardEditOption extends StatelessWidget with CardAccessory {
final EditableRowNotifier rowNotifier;
const _CardEditOption({
required this.rowNotifier,
- Key? key,
- }) : super(key: key);
+ });
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/card_cell.dart b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/card_cell.dart
index 8aa72c2e0d..0e802c0548 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/card_cell.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/card_cell.dart
@@ -64,7 +64,7 @@ class RowCardRenderHook<CustomCardData> {
CellRenderHook<dynamic, CustomCardData> _typeSafeHook<C>(
CellRenderHook<C, CustomCardData?> hook,
) {
- hookFn(cellData, cardData, buildContext) {
+ Widget? hookFn(cellData, cardData, buildContext) {
if (cellData == null) {
return null;
}
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/checkbox_card_cell.dart b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/checkbox_card_cell.dart
index 6b54ab88e2..dbcb398632 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/checkbox_card_cell.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/checkbox_card_cell.dart
@@ -13,8 +13,8 @@ class CheckboxCardCell extends CardCell {
const CheckboxCardCell({
required this.cellControllerBuilder,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
State<CheckboxCardCell> createState() => _CheckboxCellState();
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/checklist_card_cell.dart b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/checklist_card_cell.dart
index 523f3593d6..3dee5fe8d0 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/checklist_card_cell.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/checklist_card_cell.dart
@@ -9,8 +9,7 @@ import 'card_cell.dart';
class ChecklistCardCell extends CardCell {
final CellControllerBuilder cellControllerBuilder;
- const ChecklistCardCell({required this.cellControllerBuilder, Key? key})
- : super(key: key);
+ const ChecklistCardCell({required this.cellControllerBuilder, super.key});
@override
State<ChecklistCardCell> createState() => _ChecklistCellState();
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/date_card_cell.dart b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/date_card_cell.dart
index d2e1d9c4d7..1c452a005e 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/date_card_cell.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/date_card_cell.dart
@@ -14,8 +14,8 @@ class DateCardCell<CustomCardData> extends CardCell {
const DateCardCell({
required this.cellControllerBuilder,
this.renderHook,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
State<DateCardCell> createState() => _DateCellState();
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/number_card_cell.dart b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/number_card_cell.dart
index a0bb41718b..278cb8418a 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/number_card_cell.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/number_card_cell.dart
@@ -20,11 +20,11 @@ class NumberCardCell<CustomCardData>
const NumberCardCell({
required this.cellControllerBuilder,
- CustomCardData? cardData,
- NumberCardCellStyle? style,
+ super.cardData,
+ super.style,
this.renderHook,
- Key? key,
- }) : super(key: key, style: style, cardData: cardData);
+ super.key,
+ });
@override
State<NumberCardCell> createState() => _NumberCellState();
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/select_option_card_cell.dart b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/select_option_card_cell.dart
index 6f9bcc912f..fd4dc2b5f6 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/select_option_card_cell.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/select_option_card_cell.dart
@@ -21,11 +21,11 @@ class SelectOptionCardCell<CustomCardData>
SelectOptionCardCell({
required this.cellControllerBuilder,
- required CustomCardData? cardData,
+ required super.cardData,
this.renderHook,
this.editableNotifier,
- Key? key,
- }) : super(key: key, cardData: cardData);
+ super.key,
+ });
@override
State<SelectOptionCardCell> createState() => _SelectOptionCellState();
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/timestamp_card_cell.dart b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/timestamp_card_cell.dart
index 3b3f03ad85..3ae1447748 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/timestamp_card_cell.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/timestamp_card_cell.dart
@@ -14,8 +14,8 @@ class TimestampCardCell<CustomCardData> extends CardCell {
const TimestampCardCell({
required this.cellControllerBuilder,
this.renderHook,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
State<TimestampCardCell> createState() => _TimestampCellState();
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/url_card_cell.dart b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/url_card_cell.dart
index befd071cb4..8712bc298a 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/url_card_cell.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/cells/url_card_cell.dart
@@ -18,9 +18,9 @@ class URLCardCell<CustomCardData>
const URLCardCell({
required this.cellControllerBuilder,
- URLCardCellStyle? style,
- Key? key,
- }) : super(key: key, style: style);
+ super.style,
+ super.key,
+ });
@override
State<URLCardCell> createState() => _URLCellState();
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/container/accessory.dart b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/container/accessory.dart
index 76236014e8..dd5025bd2c 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/container/accessory.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/container/accessory.dart
@@ -21,8 +21,8 @@ class CardAccessoryContainer extends StatelessWidget {
const CardAccessoryContainer({
required this.accessories,
required this.onTapAccessory,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/container/card_container.dart b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/container/card_container.dart
index 99e0698a4b..77ec57014a 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/container/card_container.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/card/container/card_container.dart
@@ -15,8 +15,8 @@ class RowCardContainer extends StatelessWidget {
required this.openAccessory,
required this.accessories,
this.buildAccessoryWhen,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
@@ -60,8 +60,7 @@ class _CardEnterRegion extends StatelessWidget {
required this.child,
required this.accessories,
required this.onTapAccessory,
- Key? key,
- }) : super(key: key);
+ });
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/group/database_group.dart b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/group/database_group.dart
index 631562d772..6ecbbeb075 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/group/database_group.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/group/database_group.dart
@@ -129,8 +129,8 @@ class _GridGroupCell extends StatelessWidget {
const _GridGroupCell({
required this.fieldInfo,
required this.onSelected,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/accessory/cell_accessory.dart b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/accessory/cell_accessory.dart
index ddf2494df1..9c7cf14a72 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/accessory/cell_accessory.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/accessory/cell_accessory.dart
@@ -57,8 +57,8 @@ class PrimaryCellAccessory extends StatefulWidget {
const PrimaryCellAccessory({
required this.onTapCallback,
required this.isCellEditing,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
State<StatefulWidget> createState() => _PrimaryCellAccessoryState();
@@ -153,8 +153,7 @@ class _AccessoryHoverState extends State<AccessoryHover> {
class CellAccessoryContainer extends StatelessWidget {
final List<GridCellAccessoryBuilder> accessories;
- const CellAccessoryContainer({required this.accessories, Key? key})
- : super(key: key);
+ const CellAccessoryContainer({required this.accessories, super.key});
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/accessory/cell_shortcuts.dart b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/accessory/cell_shortcuts.dart
index f6fcbb977d..27ade02c9a 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/accessory/cell_shortcuts.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/accessory/cell_shortcuts.dart
@@ -12,14 +12,14 @@ enum CellKeyboardKey {
}
abstract class CellShortcuts extends Widget {
- const CellShortcuts({Key? key}) : super(key: key);
+ const CellShortcuts({super.key});
Map<CellKeyboardKey, CellKeyboardAction> get shortcutHandlers;
}
class GridCellShortcuts extends StatelessWidget {
final CellShortcuts child;
- const GridCellShortcuts({required this.child, Key? key}) : super(key: key);
+ const GridCellShortcuts({required this.child, super.key});
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cell_builder.dart b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cell_builder.dart
index 3b6176fed0..c00f5578e0 100755
--- a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cell_builder.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cell_builder.dart
@@ -273,7 +273,7 @@ class MobileRowDetailPageCellBuilder {
}
class BlankCell extends StatelessWidget {
- const BlankCell({Key? key}) : super(key: key);
+ const BlankCell({super.key});
@override
Widget build(BuildContext context) {
@@ -294,7 +294,7 @@ typedef AccessoryBuilder = List<GridCellAccessoryBuilder> Function(
);
abstract class CellAccessory extends Widget {
- const CellAccessory({Key? key}) : super(key: key);
+ const CellAccessory({super.key});
// The hover will show if the isHover's value is true
ValueNotifier<bool>? get onAccessoryHover;
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/cell_container.dart b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/cell_container.dart
index 80d5ec5070..43d03a4917 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/cell_container.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/cell_container.dart
@@ -15,12 +15,12 @@ class CellContainer extends StatelessWidget {
final bool isPrimary;
const CellContainer({
- Key? key,
+ super.key,
required this.child,
required this.width,
required this.isPrimary,
this.accessoryBuilder,
- }) : super(key: key);
+ });
@override
Widget build(BuildContext context) {
@@ -87,8 +87,7 @@ class _GridCellEnterRegion extends StatelessWidget {
required this.child,
required this.accessories,
required this.isPrimary,
- Key? key,
- }) : super(key: key);
+ });
final Widget child;
final List<GridCellAccessoryBuilder> accessories;
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/checkbox_cell/checkbox_cell.dart b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/checkbox_cell/checkbox_cell.dart
index a8e5509321..0463d385b6 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/checkbox_cell/checkbox_cell.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/checkbox_cell/checkbox_cell.dart
@@ -23,8 +23,8 @@ class GridCheckboxCell extends GridCellWidget {
GridCheckboxCell({
required this.cellControllerBuilder,
GridCellStyle? style,
- Key? key,
- }) : super(key: key) {
+ super.key,
+ }) {
if (style != null) {
cellStyle = (style as GridCheckboxCellStyle);
} else {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/date_cell/date_editor.dart b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/date_cell/date_editor.dart
index 7a143f4a70..dda7edbe5f 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/date_cell/date_editor.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/date_cell/date_editor.dart
@@ -28,10 +28,10 @@ class DateCellEditor extends StatefulWidget {
final DateCellController cellController;
const DateCellEditor({
- Key? key,
+ super.key,
required this.onDismissed,
required this.cellController,
- }) : super(key: key);
+ });
@override
State<StatefulWidget> createState() => _DateCellEditor();
@@ -303,7 +303,7 @@ class _DatePickerState extends State<DatePicker> {
}
class _IncludeTimeButton extends StatelessWidget {
- const _IncludeTimeButton({Key? key}) : super(key: key);
+ const _IncludeTimeButton();
@override
Widget build(BuildContext context) {
@@ -476,8 +476,8 @@ class DateTypeOptionButton extends StatelessWidget {
final PopoverMutex popoverMutex;
const DateTypeOptionButton({
required this.popoverMutex,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
@@ -524,8 +524,7 @@ class _CalDateTimeSetting extends StatefulWidget {
const _CalDateTimeSetting({
required this.dateTypeOptionPB,
required this.onEvent,
- Key? key,
- }) : super(key: key);
+ });
@override
State<_CalDateTimeSetting> createState() => _CalDateTimeSettingState();
@@ -594,7 +593,7 @@ class _CalDateTimeSettingState extends State<_CalDateTimeSetting> {
@visibleForTesting
class ClearDateButton extends StatelessWidget {
- const ClearDateButton({Key? key}) : super(key: key);
+ const ClearDateButton({super.key});
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/mobile_cell_container.dart b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/mobile_cell_container.dart
index 4929b2684d..8955d48c56 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/mobile_cell_container.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/mobile_cell_container.dart
@@ -99,8 +99,7 @@ class _GridCellEnterRegion extends StatelessWidget {
required this.child,
required this.accessories,
required this.isPrimary,
- Key? key,
- }) : super(key: key);
+ });
final Widget child;
final List<GridCellAccessoryBuilder> accessories;
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/text_cell/text_cell.dart b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/text_cell/text_cell.dart
index f6a1cf147b..f251160e91 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/text_cell/text_cell.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/text_cell/text_cell.dart
@@ -37,8 +37,8 @@ class GridTextCell extends GridCellWidget {
GridTextCell({
required this.cellControllerBuilder,
GridCellStyle? style,
- Key? key,
- }) : super(key: key) {
+ super.key,
+ }) {
if (style != null) {
cellStyle = (style as GridTextCellStyle);
} else {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/url_cell/cell_editor.dart b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/url_cell/cell_editor.dart
index a6270ab8d7..b870ff9e01 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/url_cell/cell_editor.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/url_cell/cell_editor.dart
@@ -11,8 +11,8 @@ class URLCellEditor extends StatefulWidget {
const URLCellEditor({
required this.cellController,
required this.onExit,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
State<URLCellEditor> createState() => _URLCellEditorState();
@@ -85,8 +85,8 @@ class URLEditorPopover extends StatelessWidget {
const URLEditorPopover({
required this.cellController,
required this.onExit,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/row_banner.dart b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/row_banner.dart
index 8de5322693..8633d526f9 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/row_banner.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/row_banner.dart
@@ -137,8 +137,7 @@ class _BannerTitle extends StatefulWidget {
required this.cellBuilder,
required this.popoverController,
required this.rowController,
- Key? key,
- }) : super(key: key);
+ });
@override
State<_BannerTitle> createState() => _BannerTitleState();
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/row_document.dart b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/row_document.dart
index 6a529a3976..2d4b155aea 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/row_document.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/row_document.dart
@@ -77,7 +77,7 @@ class _RowEditorState extends State<RowEditor> {
}
@override
- dispose() {
+ void dispose() {
documentBloc.close();
super.dispose();
}
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/banner.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/banner.dart
index 4020a58fd3..a8cc1c06be 100644
--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/banner.dart
+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/banner.dart
@@ -12,8 +12,8 @@ class DocumentBanner extends StatelessWidget {
const DocumentBanner({
required this.onRestore,
required this.onDelete,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart
index 48e5aaff3f..a4c5192387 100644
--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart
+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart
@@ -34,7 +34,7 @@ final List<CommandShortcutEvent> commandShortcutEvents = [
];
final List<CommandShortcutEvent> defaultCommandShortcutEvents = [
- ...commandShortcutEvents.map((e) => e.copyWith()).toList(),
+ ...commandShortcutEvents.map((e) => e.copyWith()),
];
/// Wrapper for the appflowy editor.
@@ -299,6 +299,9 @@ class _AppFlowyEditorPageState extends State<AppFlowyEditorPage> {
onPaste: () => pasteCommand.execute(editorState),
onSelectAll: () => selectAllCommand.execute(editorState),
onLiveTextInput: null,
+ onLookUp: null,
+ onSearchWeb: null,
+ onShare: null,
anchors: TextSelectionToolbarAnchors(
primaryAnchor: anchor,
),
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/block_action_add_button.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/block_action_add_button.dart
index 09b7458eea..31c1f03857 100644
--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/block_action_add_button.dart
+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/block_action_add_button.dart
@@ -11,12 +11,12 @@ import 'package:flutter/services.dart';
class BlockAddButton extends StatelessWidget {
const BlockAddButton({
- Key? key,
+ super.key,
required this.blockComponentContext,
required this.blockComponentState,
required this.editorState,
required this.showSlashMenu,
- }) : super(key: key);
+ });
final BlockComponentContext blockComponentContext;
final BlockComponentActionState blockComponentState;
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/block_action_option_button.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/block_action_option_button.dart
index e4e1f954f8..5096c1c300 100644
--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/block_action_option_button.dart
+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/block_action_option_button.dart
@@ -12,12 +12,12 @@ import 'package:flutter_bloc/flutter_bloc.dart';
class BlockOptionButton extends StatelessWidget {
const BlockOptionButton({
- Key? key,
+ super.key,
required this.blockComponentContext,
required this.blockComponentState,
required this.actions,
required this.editorState,
- }) : super(key: key);
+ });
final BlockComponentContext blockComponentContext;
final BlockComponentActionState blockComponentState;
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option_action_button.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option_action_button.dart
index fc9fe23a45..4d15e4514c 100644
--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option_action_button.dart
+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option_action_button.dart
@@ -8,12 +8,12 @@ import 'package:flutter/material.dart';
class OptionActionList extends StatelessWidget {
const OptionActionList({
- Key? key,
+ super.key,
required this.blockComponentContext,
required this.blockComponentState,
required this.actions,
required this.editorState,
- }) : super(key: key);
+ });
final BlockComponentContext blockComponentContext;
final BlockComponentActionState blockComponentState;
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/base/built_in_page_widget.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/base/built_in_page_widget.dart
index ded85f4769..780277ad15 100644
--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/base/built_in_page_widget.dart
+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/base/built_in_page_widget.dart
@@ -21,11 +21,11 @@ import 'package:flowy_infra_ui/style_widget/icon_button.dart';
class BuiltInPageWidget extends StatefulWidget {
const BuiltInPageWidget({
- Key? key,
+ super.key,
required this.node,
required this.editorState,
required this.builder,
- }) : super(key: key);
+ });
final Node node;
final EditorState editorState;
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/cover_editor.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/cover_editor.dart
index af6f278b6f..fd8bb419f2 100644
--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/cover_editor.dart
+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/cover_editor.dart
@@ -400,9 +400,9 @@ class _CoverColorPickerState extends State<CoverColorPicker> {
class DeleteImageAlertDialog extends StatelessWidget {
const DeleteImageAlertDialog({
- Key? key,
+ super.key,
required this.onSubmit,
- }) : super(key: key);
+ });
final Function() onSubmit;
@@ -452,11 +452,11 @@ class DeleteImageAlertDialog extends StatelessWidget {
class ImageGridItem extends StatefulWidget {
const ImageGridItem({
- Key? key,
+ super.key,
required this.onImageSelect,
required this.onImageDelete,
required this.imagePath,
- }) : super(key: key);
+ });
final Function() onImageSelect;
final Function() onImageDelete;
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/custom_cover_picker.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/custom_cover_picker.dart
index 1738acf4c1..d358330233 100644
--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/custom_cover_picker.dart
+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/custom_cover_picker.dart
@@ -200,7 +200,7 @@ class CoverImagePreviewWidget extends StatefulWidget {
}
class _CoverImagePreviewWidgetState extends State<CoverImagePreviewWidget> {
- _buildFilePickerWidget(BuildContext ctx) {
+ DecoratedBox _buildFilePickerWidget(BuildContext ctx) {
return DecoratedBox(
decoration: BoxDecoration(
color: Theme.of(context).cardColor,
@@ -255,7 +255,7 @@ class _CoverImagePreviewWidgetState extends State<CoverImagePreviewWidget> {
);
}
- _buildImageDeleteButton(BuildContext ctx) {
+ Positioned _buildImageDeleteButton(BuildContext ctx) {
return Positioned(
right: 10,
top: 10,
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/custom_cover_picker_bloc.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/custom_cover_picker_bloc.dart
index 6ff4b0a460..94659d3e04 100644
--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/custom_cover_picker_bloc.dart
+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/custom_cover_picker_bloc.dart
@@ -81,7 +81,7 @@ class CoverImagePickerBloc
);
}
- _saveToGallery(CoverImagePickerState state) async {
+ Future<List<String>?>? _saveToGallery(CoverImagePickerState state) async {
final SharedPreferences prefs = await SharedPreferences.getInstance();
final List<String> imagePaths = prefs.getStringList(kLocalImagesKey) ?? [];
final directory = await _coverPath();
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/infra/svg.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/infra/svg.dart
index e1a128ed92..06b7c9cd47 100644
--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/infra/svg.dart
+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/infra/svg.dart
@@ -3,14 +3,14 @@ import 'package:flutter_svg/flutter_svg.dart';
class Svg extends StatelessWidget {
const Svg({
- Key? key,
+ super.key,
this.name,
this.width,
this.height,
this.color,
this.number,
this.padding,
- }) : super(key: key);
+ });
final String? name;
final double? width;
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/more/more_button.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/more/more_button.dart
index 53d79ed679..33d5d35824 100644
--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/more/more_button.dart
+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/more/more_button.dart
@@ -10,8 +10,8 @@ import 'package:flutter_bloc/flutter_bloc.dart';
class DocumentMoreButton extends StatelessWidget {
const DocumentMoreButton({
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/trash/menu.dart b/frontend/appflowy_flutter/lib/plugins/trash/menu.dart
index f48e477e65..414d61d659 100644
--- a/frontend/appflowy_flutter/lib/plugins/trash/menu.dart
+++ b/frontend/appflowy_flutter/lib/plugins/trash/menu.dart
@@ -14,7 +14,7 @@ import 'package:flutter/material.dart';
import 'package:appflowy/generated/locale_keys.g.dart';
class MenuTrash extends StatelessWidget {
- const MenuTrash({Key? key}) : super(key: key);
+ const MenuTrash({super.key});
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/trash/src/trash_cell.dart b/frontend/appflowy_flutter/lib/plugins/trash/src/trash_cell.dart
index 487bcb82aa..bdba93eeee 100644
--- a/frontend/appflowy_flutter/lib/plugins/trash/src/trash_cell.dart
+++ b/frontend/appflowy_flutter/lib/plugins/trash/src/trash_cell.dart
@@ -17,8 +17,8 @@ class TrashCell extends StatelessWidget {
required this.object,
required this.onRestore,
required this.onDelete,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/trash/src/trash_header.dart b/frontend/appflowy_flutter/lib/plugins/trash/src/trash_header.dart
index 79cdb5d08f..e2ba8d9f58 100644
--- a/frontend/appflowy_flutter/lib/plugins/trash/src/trash_header.dart
+++ b/frontend/appflowy_flutter/lib/plugins/trash/src/trash_header.dart
@@ -52,7 +52,7 @@ class TrashHeader extends StatelessWidget {
),
];
- TrashHeader({Key? key}) : super(key: key);
+ TrashHeader({super.key});
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/plugins/trash/trash_page.dart b/frontend/appflowy_flutter/lib/plugins/trash/trash_page.dart
index 2af389562d..6c98d497f1 100644
--- a/frontend/appflowy_flutter/lib/plugins/trash/trash_page.dart
+++ b/frontend/appflowy_flutter/lib/plugins/trash/trash_page.dart
@@ -19,7 +19,7 @@ import 'application/trash_bloc.dart';
import 'src/trash_cell.dart';
class TrashPage extends StatefulWidget {
- const TrashPage({Key? key}) : super(key: key);
+ const TrashPage({super.key});
@override
State<TrashPage> createState() => _TrashPageState();
diff --git a/frontend/appflowy_flutter/lib/startup/tasks/appflowy_cloud_task.dart b/frontend/appflowy_flutter/lib/startup/tasks/appflowy_cloud_task.dart
index 29e6c74851..8709a77267 100644
--- a/frontend/appflowy_flutter/lib/startup/tasks/appflowy_cloud_task.dart
+++ b/frontend/appflowy_flutter/lib/startup/tasks/appflowy_cloud_task.dart
@@ -1,24 +1,23 @@
+import 'dart:async';
import 'dart:io';
+import 'package:app_links/app_links.dart';
import 'package:appflowy/env/cloud_env.dart';
import 'package:appflowy/startup/startup.dart';
import 'package:appflowy/startup/tasks/app_widget.dart';
import 'package:appflowy/startup/tasks/supabase_task.dart';
import 'package:appflowy/user/application/auth/auth_error.dart';
+import 'package:appflowy/user/application/auth/auth_service.dart';
import 'package:appflowy/user/application/auth/device_id.dart';
import 'package:appflowy/user/application/user_auth_listener.dart';
import 'package:appflowy/workspace/presentation/home/toast.dart';
-import 'package:appflowy_backend/log.dart';
-import 'package:flutter/material.dart';
-import 'package:url_protocol/url_protocol.dart';
-import 'dart:async';
-
-import 'package:app_links/app_links.dart';
-import 'package:appflowy/user/application/auth/auth_service.dart';
import 'package:appflowy_backend/dispatch/dispatch.dart';
+import 'package:appflowy_backend/log.dart';
import 'package:appflowy_backend/protobuf/flowy-error/errors.pb.dart';
import 'package:appflowy_backend/protobuf/flowy-user/protobuf.dart';
import 'package:dartz/dartz.dart';
+import 'package:flutter/material.dart';
+import 'package:url_protocol/url_protocol.dart';
class AppFlowyCloudDeepLink {
final _appLinks = AppLinks();
@@ -57,7 +56,7 @@ class AppFlowyCloudDeepLink {
VoidCallback subscribeDeepLinkLoadingState(
ValueChanged<DeepLinkResult> listener,
) {
- listenerFn() {
+ void listenerFn() {
if (stateNotifier.value != null) {
listener(stateNotifier.value!);
}
diff --git a/frontend/appflowy_flutter/lib/workspace/application/app/app_bloc.dart b/frontend/appflowy_flutter/lib/workspace/application/app/app_bloc.dart
index 7806e5a50f..0156cdb5cc 100644
--- a/frontend/appflowy_flutter/lib/workspace/application/app/app_bloc.dart
+++ b/frontend/appflowy_flutter/lib/workspace/application/app/app_bloc.dart
@@ -3,14 +3,14 @@ import 'dart:collection';
import 'package:appflowy/startup/startup.dart';
import 'package:appflowy/workspace/application/view/prelude.dart';
import 'package:appflowy/workspace/presentation/home/menu/menu_shared_state.dart';
-import 'package:expandable/expandable.dart';
import 'package:appflowy_backend/log.dart';
-import 'package:appflowy_backend/protobuf/flowy-folder2/view.pb.dart';
import 'package:appflowy_backend/protobuf/flowy-error/errors.pb.dart';
+import 'package:appflowy_backend/protobuf/flowy-folder2/view.pb.dart';
+import 'package:dartz/dartz.dart';
+import 'package:expandable/expandable.dart';
import 'package:flutter/foundation.dart';
-import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
-import 'package:dartz/dartz.dart';
+import 'package:freezed_annotation/freezed_annotation.dart';
part 'app_bloc.freezed.dart';
@@ -206,7 +206,7 @@ class ViewDataContext extends ChangeNotifier {
}
VoidCallback onViewSelected(void Function(ViewPB?) callback) {
- listener() {
+ void listener() {
callback(_selectedViewNotifier.value);
}
@@ -243,7 +243,7 @@ class ViewDataContext extends ChangeNotifier {
VoidCallback onViewsChanged(
void Function(UnmodifiableListView<ViewPB>) callback,
) {
- listener() {
+ void listener() {
callback(views);
}
diff --git a/frontend/appflowy_flutter/lib/workspace/application/settings/application_data_storage.dart b/frontend/appflowy_flutter/lib/workspace/application/settings/application_data_storage.dart
index 400663f387..97e6542639 100644
--- a/frontend/appflowy_flutter/lib/workspace/application/settings/application_data_storage.dart
+++ b/frontend/appflowy_flutter/lib/workspace/application/settings/application_data_storage.dart
@@ -26,7 +26,7 @@ class ApplicationDataStorage {
if (Platform.isMacOS) {
// remove the prefix `/Volumes/*`
- path = path.replaceFirst(RegExp(r'^/Volumes/[^/]+'), '');
+ path = path.replaceFirst(RegExp('^/Volumes/[^/]+'), '');
} else if (Platform.isWindows) {
path = path.replaceAll('/', '\\');
}
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/home/hotkeys.dart b/frontend/appflowy_flutter/lib/workspace/presentation/home/hotkeys.dart
index 70b9846bbd..7ca9aae327 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/home/hotkeys.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/home/hotkeys.dart
@@ -30,7 +30,7 @@ class HotKeyItem {
class HomeHotKeys extends StatelessWidget {
final Widget child;
- const HomeHotKeys({required this.child, Key? key}) : super(key: key);
+ const HomeHotKeys({required this.child, super.key});
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/menu_shared_state.dart b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/menu_shared_state.dart
index a42bd655f9..c62741823b 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/menu_shared_state.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/menu_shared_state.dart
@@ -18,7 +18,7 @@ class MenuSharedState {
}
VoidCallback addLatestViewListener(void Function(ViewPB?) callback) {
- listener() {
+ void listener() {
callback(_latestOpenView.value);
}
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/view/draggable_view_item.dart b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/view/draggable_view_item.dart
index 01bda25790..a053a4458d 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/view/draggable_view_item.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/view/draggable_view_item.dart
@@ -107,7 +107,7 @@ class _DraggableViewItemState extends State<DraggableViewItem> {
Theme.of(context).colorScheme.secondary
: Colors.transparent,
),
- Container(
+ DecoratedBox(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(6.0),
color: position == DraggableHoverPosition.center
@@ -147,7 +147,7 @@ class _DraggableViewItemState extends State<DraggableViewItem> {
: Colors.transparent,
),
),
- Container(
+ DecoratedBox(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(4.0),
color: position == DraggableHoverPosition.center
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/home/navigation.dart b/frontend/appflowy_flutter/lib/workspace/presentation/home/navigation.dart
index 3aacd41856..071dccfa98 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/home/navigation.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/home/navigation.dart
@@ -29,7 +29,7 @@ class NavigationNotifier with ChangeNotifier {
}
class FlowyNavigation extends StatelessWidget {
- const FlowyNavigation({Key? key}) : super(key: key);
+ const FlowyNavigation({super.key});
@override
Widget build(BuildContext context) {
@@ -134,7 +134,7 @@ class FlowyNavigation extends StatelessWidget {
class NaviItemWidget extends StatelessWidget {
final NavigationItem item;
- const NaviItemWidget(this.item, {Key? key}) : super(key: key);
+ const NaviItemWidget(this.item, {super.key});
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/home/toast.dart b/frontend/appflowy_flutter/lib/workspace/presentation/home/toast.dart
index 86c1edb1db..d9363ae037 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/home/toast.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/home/toast.dart
@@ -8,7 +8,7 @@ import 'package:fluttertoast/fluttertoast.dart';
class FlowyMessageToast extends StatelessWidget {
final String message;
- const FlowyMessageToast({required this.message, Key? key}) : super(key: key);
+ const FlowyMessageToast({required this.message, super.key});
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/emoji_picker/emoji_menu_item.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/emoji_picker/emoji_menu_item.dart
index 6b49630600..8d8de79af4 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/emoji_picker/emoji_menu_item.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/emoji_picker/emoji_menu_item.dart
@@ -67,10 +67,10 @@ void showEmojiPickerMenu(
class EmojiSelectionMenu extends StatefulWidget {
const EmojiSelectionMenu({
- Key? key,
+ super.key,
required this.onSubmitted,
required this.onExit,
- }) : super(key: key);
+ });
final void Function(String emoji) onSubmitted;
final void Function() onExit;
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/emoji_picker/src/default_emoji_picker_view.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/emoji_picker/src/default_emoji_picker_view.dart
index 2052cf4951..95e252370c 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/emoji_picker/src/default_emoji_picker_view.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/emoji_picker/src/default_emoji_picker_view.dart
@@ -1,19 +1,17 @@
import 'package:flowy_infra_ui/flowy_infra_ui.dart';
import 'package:flowy_infra_ui/style_widget/hover.dart';
import 'package:flutter/material.dart';
-import 'emji_picker_config.dart';
import 'emoji_picker.dart';
import 'emoji_picker_builder.dart';
-import 'emoji_view_state.dart';
import 'models/emoji_category_models.dart';
import 'models/emoji_model.dart';
class DefaultEmojiPickerView extends EmojiPickerBuilder {
const DefaultEmojiPickerView(
- EmojiPickerConfig config,
- EmojiViewState state, {
- Key? key,
- }) : super(config, state, key: key);
+ super.config,
+ super.state, {
+ super.key,
+ });
@override
DefaultEmojiPickerViewState createState() => DefaultEmojiPickerViewState();
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/emoji_picker/src/emoji_picker.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/emoji_picker/src/emoji_picker.dart
index 0dd72ad547..609e067fec 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/emoji_picker/src/emoji_picker.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/emoji_picker/src/emoji_picker.dart
@@ -82,12 +82,12 @@ typedef EmojiViewBuilder = Widget Function(
class EmojiPicker extends StatefulWidget {
/// EmojiPicker for flutter
const EmojiPicker({
- Key? key,
+ super.key,
required this.onEmojiSelected,
this.onBackspacePressed,
this.config = const EmojiPickerConfig(),
this.customWidget,
- }) : super(key: key);
+ });
/// Custom widget
final EmojiViewBuilder? customWidget;
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/emoji_picker/src/emoji_picker_builder.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/emoji_picker/src/emoji_picker_builder.dart
index bb7d139633..ea22a13662 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/emoji_picker/src/emoji_picker_builder.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/emoji_picker/src/emoji_picker_builder.dart
@@ -7,8 +7,7 @@ import 'emoji_view_state.dart';
/// Inherit this class to create your own EmojiPicker
abstract class EmojiPickerBuilder extends StatefulWidget {
/// Constructor
- const EmojiPickerBuilder(this.config, this.state, {Key? key})
- : super(key: key);
+ const EmojiPickerBuilder(this.config, this.state, {super.key});
/// Config for customizations
final EmojiPickerConfig config;
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/setting_appflowy_cloud.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/setting_appflowy_cloud.dart
index 7763222d3e..a878218c96 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/setting_appflowy_cloud.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/setting_appflowy_cloud.dart
@@ -198,8 +198,8 @@ class CloudURLInput extends StatefulWidget {
required this.url,
required this.hint,
required this.onChanged,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
CloudURLInputState createState() => CloudURLInputState();
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/setting_supabase_cloud.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/setting_supabase_cloud.dart
index 91e5a6ec06..b2b2ccccdd 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/setting_supabase_cloud.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/setting_supabase_cloud.dart
@@ -261,8 +261,8 @@ class SupabaseInput extends StatefulWidget {
required this.hint,
required this.onChanged,
required this.error,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
SupabaseInputState createState() => SupabaseInputState();
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_appearance/color_scheme.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_appearance/color_scheme.dart
index 20d0a12727..b2008075e4 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_appearance/color_scheme.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_appearance/color_scheme.dart
@@ -105,11 +105,9 @@ class ColorSchemeUploadPopover extends StatelessWidget {
ready: (plugins) => Column(
mainAxisSize: MainAxisSize.min,
children: [
- ...AppTheme.builtins
- .map(
- (theme) => _themeItemButton(context, theme.themeName),
- )
- .toList(),
+ ...AppTheme.builtins.map(
+ (theme) => _themeItemButton(context, theme.themeName),
+ ),
if (plugins.isNotEmpty) ...[
const Divider(),
...plugins
@@ -121,8 +119,7 @@ class ColorSchemeUploadPopover extends StatelessWidget {
theme.themeName,
false,
),
- )
- .toList(),
+ ),
],
],
),
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_appearance_view.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_appearance_view.dart
index bcc840a09b..5ae79395cb 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_appearance_view.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_appearance_view.dart
@@ -9,7 +9,7 @@ import 'package:flutter_bloc/flutter_bloc.dart';
import 'settings_appearance/settings_appearance.dart';
class SettingsAppearanceView extends StatelessWidget {
- const SettingsAppearanceView({Key? key}) : super(key: key);
+ const SettingsAppearanceView({super.key});
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_customize_shortcuts_view.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_customize_shortcuts_view.dart
index 84da378a2e..f739597aff 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_customize_shortcuts_view.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_customize_shortcuts_view.dart
@@ -187,7 +187,7 @@ class ShortcutsListTile extends StatelessWidget {
);
}
- _validateForConflicts(BuildContext context, String command) {
+ String? _validateForConflicts(BuildContext context, String command) {
final conflict = BlocProvider.of<ShortcutsCubit>(context).getConflict(
shortcutEvent,
command,
@@ -199,12 +199,12 @@ class ShortcutsListTile extends StatelessWidget {
);
}
- _updateKey(BuildContext context, String command) {
+ void _updateKey(BuildContext context, String command) {
shortcutEvent.updateCommand(command: command);
BlocProvider.of<ShortcutsCubit>(context).updateAllShortcuts();
}
- _dismiss(BuildContext context) => Navigator.of(context).pop();
+ void _dismiss(BuildContext context) => Navigator.of(context).pop();
}
extension on RawKeyEvent {
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_file_exporter_widget.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_file_exporter_widget.dart
index 6dd5eb2596..2f3e267168 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_file_exporter_widget.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_file_exporter_widget.dart
@@ -21,7 +21,7 @@ import 'package:path/path.dart' as p;
import '../../../../generated/locale_keys.g.dart';
class FileExporterWidget extends StatefulWidget {
- const FileExporterWidget({Key? key}) : super(key: key);
+ const FileExporterWidget({super.key});
@override
State<FileExporterWidget> createState() => _FileExporterWidgetState();
@@ -143,11 +143,7 @@ class _FileExporterWidgetState extends State<FileExporterWidget> {
}
class _ExpandedList extends StatefulWidget {
- const _ExpandedList({
- Key? key,
- // required this.apps,
- // required this.onChanged,
- }) : super(key: key);
+ const _ExpandedList();
// final List<AppPB> apps;
// final void Function(Map<String, List<String>> selectedPages) onChanged;
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_language_view.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_language_view.dart
index e27e674c78..ff5229a494 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_language_view.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_language_view.dart
@@ -9,7 +9,7 @@ import 'package:flowy_infra/language.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
class SettingsLanguageView extends StatelessWidget {
- const SettingsLanguageView({Key? key}) : super(key: key);
+ const SettingsLanguageView({super.key});
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_menu.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_menu.dart
index be3c73e81d..a5f3e889cc 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_menu.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_menu.dart
@@ -6,10 +6,10 @@ import 'package:flutter/material.dart';
class SettingsMenu extends StatelessWidget {
const SettingsMenu({
- Key? key,
+ super.key,
required this.changeSelectedPage,
required this.currentPage,
- }) : super(key: key);
+ });
final Function changeSelectedPage;
final SettingsPage currentPage;
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_menu_element.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_menu_element.dart
index 6391fc003a..ad02cd9df6 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_menu_element.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_menu_element.dart
@@ -6,13 +6,13 @@ import 'package:flutter/material.dart';
class SettingsMenuElement extends StatelessWidget {
const SettingsMenuElement({
- Key? key,
+ super.key,
required this.page,
required this.label,
required this.icon,
required this.changeSelectedPage,
required this.selectedPage,
- }) : super(key: key);
+ });
final SettingsPage page;
final SettingsPage selectedPage;
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_user_view.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_user_view.dart
index 0415d89a1d..a01f227815 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_user_view.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_user_view.dart
@@ -230,8 +230,8 @@ class UserNameInput extends StatefulWidget {
const UserNameInput(
this.name, {
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
UserNameInputState createState() => UserNameInputState();
@@ -294,8 +294,8 @@ class UserEmailInput extends StatefulWidget {
const UserEmailInput(
this.email, {
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
UserEmailInputState createState() => UserEmailInputState();
@@ -467,16 +467,14 @@ class IconGallery extends StatelessWidget {
crossAxisSpacing: 4,
children: [
if (defaultOption != null) defaultOption!,
- ...builtInSVGIcons
- .mapIndexed(
- (int index, String iconUrl) => IconOption(
- emoji: FlowySvgData('emoji/$iconUrl'),
- iconUrl: iconUrl,
- onSelectIcon: onSelectIcon,
- isSelected: iconUrl == selectedIcon,
- ),
- )
- .toList(),
+ ...builtInSVGIcons.mapIndexed(
+ (int index, String iconUrl) => IconOption(
+ emoji: FlowySvgData('emoji/$iconUrl'),
+ iconUrl: iconUrl,
+ onSelectIcon: onSelectIcon,
+ isSelected: iconUrl == selectedIcon,
+ ),
+ ),
],
);
}
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/widgets/dialogs.dart b/frontend/appflowy_flutter/lib/workspace/presentation/widgets/dialogs.dart
index 844ee5d7e1..f3cfdad0dc 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/widgets/dialogs.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/widgets/dialogs.dart
@@ -104,8 +104,8 @@ class NavigatorAlertDialog extends StatefulWidget {
required this.title,
this.confirm,
this.cancel,
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
State<NavigatorAlertDialog> createState() => _CreateFlowyAlertDialog();
@@ -168,7 +168,7 @@ class NavigatorOkCancelDialog extends StatelessWidget {
final double? maxWidth;
const NavigatorOkCancelDialog({
- Key? key,
+ super.key,
this.onOkPressed,
this.onCancelPressed,
this.okTitle,
@@ -176,7 +176,7 @@ class NavigatorOkCancelDialog extends StatelessWidget {
this.title,
required this.message,
this.maxWidth,
- }) : super(key: key);
+ });
@override
Widget build(BuildContext context) {
@@ -227,7 +227,7 @@ class OkCancelButton extends StatelessWidget {
final TextButtonMode mode;
const OkCancelButton({
- Key? key,
+ super.key,
this.onOkPressed,
this.onCancelPressed,
this.okTitle,
@@ -235,7 +235,7 @@ class OkCancelButton extends StatelessWidget {
this.minHeight,
this.alignment = MainAxisAlignment.spaceAround,
this.mode = TextButtonMode.big,
- }) : super(key: key);
+ });
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/widgets/edit_panel/edit_panel.dart b/frontend/appflowy_flutter/lib/workspace/presentation/widgets/edit_panel/edit_panel.dart
index 588af73592..003fcf23bb 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/widgets/edit_panel/edit_panel.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/widgets/edit_panel/edit_panel.dart
@@ -13,10 +13,10 @@ class EditPanel extends StatelessWidget {
final EditPanelContext panelContext;
final VoidCallback onEndEdit;
const EditPanel({
- Key? key,
+ super.key,
required this.panelContext,
required this.onEndEdit,
- }) : super(key: key);
+ });
@override
Widget build(BuildContext context) {
@@ -44,7 +44,7 @@ class EditPanel extends StatelessWidget {
class EditPanelTopBar extends StatelessWidget {
final VoidCallback onClose;
- const EditPanelTopBar({Key? key, required this.onClose}) : super(key: key);
+ const EditPanelTopBar({super.key, required this.onClose});
@override
Widget build(BuildContext context) {
return SizedBox(
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/widgets/edit_panel/panel_animation.dart b/frontend/appflowy_flutter/lib/workspace/presentation/widgets/edit_panel/panel_animation.dart
index 8bf9d8ce31..2d7ba70518 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/widgets/edit_panel/panel_animation.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/widgets/edit_panel/panel_animation.dart
@@ -9,14 +9,14 @@ class AnimatedPanel extends StatefulWidget {
final Widget? child;
const AnimatedPanel({
- Key? key,
+ super.key,
this.isClosed = false,
this.closedX = 0.0,
this.closedY = 0.0,
this.duration = 0.0,
this.curve,
this.child,
- }) : super(key: key);
+ });
@override
AnimatedPanelState createState() => AnimatedPanelState();
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/widgets/float_bubble/question_bubble.dart b/frontend/appflowy_flutter/lib/workspace/presentation/widgets/float_bubble/question_bubble.dart
index 732db75d50..99ba67144c 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/widgets/float_bubble/question_bubble.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/widgets/float_bubble/question_bubble.dart
@@ -1,8 +1,10 @@
import 'package:appflowy/generated/flowy_svgs.g.dart';
+import 'package:appflowy/generated/locale_keys.g.dart';
import 'package:appflowy/startup/tasks/rust_sdk.dart';
import 'package:appflowy/workspace/presentation/home/toast.dart';
import 'package:appflowy/workspace/presentation/widgets/pop_up_action.dart';
import 'package:appflowy_popover/appflowy_popover.dart';
+import 'package:device_info_plus/device_info_plus.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flowy_infra/size.dart';
import 'package:flowy_infra_ui/style_widget/button.dart';
@@ -10,14 +12,12 @@ import 'package:flowy_infra_ui/style_widget/text.dart';
import 'package:flowy_infra_ui/widget/spacing.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
-import 'package:styled_widget/styled_widget.dart';
import 'package:package_info_plus/package_info_plus.dart';
+import 'package:styled_widget/styled_widget.dart';
import 'package:url_launcher/url_launcher.dart';
-import 'package:appflowy/generated/locale_keys.g.dart';
-import 'package:device_info_plus/device_info_plus.dart';
class QuestionBubble extends StatelessWidget {
- const QuestionBubble({Key? key}) : super(key: key);
+ const QuestionBubble({super.key});
@override
Widget build(BuildContext context) {
@@ -30,7 +30,7 @@ class QuestionBubble extends StatelessWidget {
}
class BubbleActionList extends StatefulWidget {
- const BubbleActionList({Key? key}) : super(key: key);
+ const BubbleActionList({super.key});
@override
State<BubbleActionList> createState() => _BubbleActionListState();
@@ -117,7 +117,7 @@ class _BubbleActionListState extends State<BubbleActionList> {
);
}
- _launchURL(String url) async {
+ void _launchURL(String url) async {
final uri = Uri.parse(url);
if (await canLaunchUrl(uri)) {
await launchUrl(uri);
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/widgets/pop_up_action.dart b/frontend/appflowy_flutter/lib/workspace/presentation/widgets/pop_up_action.dart
index 182cab88f1..1ebbc029ca 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/widgets/pop_up_action.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/widgets/pop_up_action.dart
@@ -31,8 +31,8 @@ class PopoverActionList<T extends PopoverAction> extends StatefulWidget {
maxWidth: 460,
maxHeight: 300,
),
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
State<PopoverActionList<T>> createState() => _PopoverActionListState<T>();
@@ -135,11 +135,11 @@ class ActionCellWidget<T extends PopoverAction> extends StatelessWidget {
final Function(T) onSelected;
final double itemHeight;
const ActionCellWidget({
- Key? key,
+ super.key,
required this.action,
required this.onSelected,
required this.itemHeight,
- }) : super(key: key);
+ });
@override
Widget build(BuildContext context) {
diff --git a/frontend/appflowy_flutter/packages/flowy_infra/lib/time/duration.dart b/frontend/appflowy_flutter/packages/flowy_infra/lib/time/duration.dart
index 5763ce1d46..a408470da9 100644
--- a/frontend/appflowy_flutter/packages/flowy_infra/lib/time/duration.dart
+++ b/frontend/appflowy_flutter/packages/flowy_infra/lib/time/duration.dart
@@ -1,7 +1,8 @@
import 'package:time/time.dart';
+
export 'package:time/time.dart';
-class Durations {
+class FlowyDurations {
static Duration get fastest => .15.seconds;
static Duration get fast => .25.seconds;
diff --git a/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/style_widget/container.dart b/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/style_widget/container.dart
index fc91998c1f..94db80afc2 100644
--- a/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/style_widget/container.dart
+++ b/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/style_widget/container.dart
@@ -33,7 +33,7 @@ class FlowyContainer extends StatelessWidget {
height: height,
margin: margin,
alignment: align,
- duration: duration ?? Durations.medium,
+ duration: duration ?? FlowyDurations.medium,
decoration: BoxDecoration(
color: color,
borderRadius: borderRadius,
diff --git a/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/style_widget/snap_bar.dart b/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/style_widget/snap_bar.dart
index c4c48d9e94..b35898f371 100644
--- a/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/style_widget/snap_bar.dart
+++ b/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/style_widget/snap_bar.dart
@@ -8,11 +8,11 @@ void showSnapBar(BuildContext context, String title, {VoidCallback? onClosed}) {
.showSnackBar(
SnackBar(
duration: const Duration(milliseconds: 8000),
- content: WillPopScope(
- onWillPop: () async {
+ content: PopScope(
+ canPop: () {
ScaffoldMessenger.of(context).removeCurrentSnackBar();
return true;
- },
+ }(),
child: FlowyText.medium(
title,
fontSize: 12,
diff --git a/frontend/appflowy_flutter/pubspec.lock b/frontend/appflowy_flutter/pubspec.lock
index bd9691d54c..cfe77300a4 100644
--- a/frontend/appflowy_flutter/pubspec.lock
+++ b/frontend/appflowy_flutter/pubspec.lock
@@ -5,26 +5,26 @@ packages:
dependency: transitive
description:
name: _fe_analyzer_shared
- sha256: ae92f5d747aee634b87f89d9946000c2de774be1d6ac3e58268224348cd0101a
+ sha256: eb376e9acf6938204f90eb3b1f00b578640d3188b4c8a8ec054f9f479af8d051
url: "https://pub.dev"
source: hosted
- version: "61.0.0"
+ version: "64.0.0"
analyzer:
dependency: transitive
description:
name: analyzer
- sha256: ea3d8652bda62982addfd92fdc2d0214e5f82e43325104990d4f4c4a2a313562
+ sha256: "69f54f967773f6c26c7dcb13e93d7ccee8b17a641689da39e878d5cf13b06893"
url: "https://pub.dev"
source: hosted
- version: "5.13.0"
+ version: "6.2.0"
animations:
dependency: transitive
description:
name: animations
- sha256: fe8a6bdca435f718bb1dc8a11661b2c22504c6da40ef934cee8327ed77934164
+ sha256: "708e4b68c23228c264b038fe7003a2f5d01ce85fc64d8cae090e86b27fcea6c5"
url: "https://pub.dev"
source: hosted
- version: "2.0.7"
+ version: "2.0.10"
app_links:
dependency: "direct main"
description:
@@ -70,10 +70,10 @@ packages:
dependency: "direct main"
description:
name: archive
- sha256: "0c8368c9b3f0abbc193b9d6133649a614204b528982bebc7026372d61677ce3a"
+ sha256: "7b875fd4a20b165a3084bd2d210439b22ebc653f21cea4842729c0c30c82596b"
url: "https://pub.dev"
source: hosted
- version: "3.3.7"
+ version: "3.4.9"
args:
dependency: transitive
description:
@@ -102,10 +102,10 @@ packages:
dependency: "direct dev"
description:
name: bloc_test
- sha256: "5f41a3e391c89ccdade81a96233e1e5e5d01564e29e5fe180741fb23579399b9"
+ sha256: "02f04270be5abae8df171143e61a0058a7acbce5dcac887612e89bb40cca4c33"
url: "https://pub.dev"
source: hosted
- version: "9.1.2"
+ version: "9.1.5"
boolean_selector:
dependency: transitive
description:
@@ -118,10 +118,10 @@ packages:
dependency: transitive
description:
name: build
- sha256: "43865b79fbb78532e4bff7c33087aa43b1d488c4fdef014eaef568af6d8016dc"
+ sha256: "80184af8b6cb3e5c1c4ec6d8544d27711700bc3e6d2efad04238c7b5290889f0"
url: "https://pub.dev"
source: hosted
- version: "2.4.0"
+ version: "2.4.1"
build_config:
dependency: transitive
description:
@@ -134,34 +134,34 @@ packages:
dependency: transitive
description:
name: build_daemon
- sha256: "5f02d73eb2ba16483e693f80bee4f088563a820e47d1027d4cdfe62b5bb43e65"
+ sha256: "0343061a33da9c5810b2d6cee51945127d8f4c060b7fbdd9d54917f0a3feaaa1"
url: "https://pub.dev"
source: hosted
- version: "4.0.0"
+ version: "4.0.1"
build_resolvers:
dependency: transitive
description:
name: build_resolvers
- sha256: db49b8609ef8c81cca2b310618c3017c00f03a92af44c04d310b907b2d692d95
+ sha256: "64e12b0521812d1684b1917bc80945625391cb9bdd4312536b1d69dcb6133ed8"
url: "https://pub.dev"
source: hosted
- version: "2.2.0"
+ version: "2.4.1"
build_runner:
dependency: "direct dev"
description:
name: build_runner
- sha256: "220ae4553e50d7c21a17c051afc7b183d28a24a420502e842f303f8e4e6edced"
+ sha256: "67d591d602906ef9201caf93452495ad1812bea2074f04e25dbd7c133785821b"
url: "https://pub.dev"
source: hosted
- version: "2.4.4"
+ version: "2.4.7"
build_runner_core:
dependency: transitive
description:
name: build_runner_core
- sha256: "88a57f2ac99849362e73878334caa9f06ee25f31d2adced882b8337838c84e1e"
+ sha256: c9e32d21dd6626b5c163d48b037ce906bbe428bc23ab77bcd77bb21e593b6185
url: "https://pub.dev"
source: hosted
- version: "7.2.9"
+ version: "7.2.11"
built_collection:
dependency: transitive
description:
@@ -174,10 +174,10 @@ packages:
dependency: transitive
description:
name: built_value
- sha256: "7dd62d9faf105c434f3d829bbe9c4be02ec67f5ed94832222116122df67c5452"
+ sha256: "69acb7007eb2a31dc901512bfe0f7b767168be34cb734835d54c070bfa74c1b2"
url: "https://pub.dev"
source: hosted
- version: "8.6.0"
+ version: "8.8.0"
cached_network_image:
dependency: "direct main"
description:
@@ -255,18 +255,18 @@ packages:
dependency: transitive
description:
name: code_builder
- sha256: "0d43dd1288fd145de1ecc9a3948ad4a6d5a82f0a14c4fdd0892260787d975cbe"
+ sha256: b2151ce26a06171005b379ecff6e08d34c470180ffe16b8e14b6d52be292b55f
url: "https://pub.dev"
source: hosted
- version: "4.4.0"
+ version: "4.8.0"
collection:
dependency: "direct main"
description:
name: collection
- sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687
+ sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
url: "https://pub.dev"
source: hosted
- version: "1.17.2"
+ version: "1.18.0"
connectivity_plus:
dependency: "direct main"
description:
@@ -295,18 +295,18 @@ packages:
dependency: transitive
description:
name: coverage
- sha256: "2fb815080e44a09b85e0f2ca8a820b15053982b2e714b59267719e8a9ff17097"
+ sha256: "595a29b55ce82d53398e1bcc2cba525d7bd7c59faeb2d2540e9d42c390cfeeeb"
url: "https://pub.dev"
source: hosted
- version: "1.6.3"
+ version: "1.6.4"
cross_file:
dependency: transitive
description:
name: cross_file
- sha256: "445db18de832dba8d851e287aff8ccf169bed30d2e94243cb54c7d2f1ed2142c"
+ sha256: fedaadfa3a6996f75211d835aaeb8fede285dae94262485698afd832371b9a5e
url: "https://pub.dev"
source: hosted
- version: "0.3.3+6"
+ version: "0.3.3+8"
crypto:
dependency: transitive
description:
@@ -327,10 +327,10 @@ packages:
dependency: transitive
description:
name: dart_style
- sha256: f4f1f73ab3fd2afcbcca165ee601fe980d966af6a21b5970c6c9376955c528ad
+ sha256: "40ae61a5d43feea6d24bd22c0537a6629db858963b99b4bc1c3db80676f32368"
url: "https://pub.dev"
source: hosted
- version: "2.3.1"
+ version: "2.3.4"
dartz:
dependency: "direct main"
description:
@@ -343,18 +343,18 @@ packages:
dependency: transitive
description:
name: dbus
- sha256: "6f07cba3f7b3448d42d015bfd3d53fe12e5b36da2423f23838efc1d5fb31a263"
+ sha256: "365c771ac3b0e58845f39ec6deebc76e3276aa9922b0cc60840712094d9047ac"
url: "https://pub.dev"
source: hosted
- version: "0.7.8"
+ version: "0.7.10"
device_info_plus:
dependency: "direct main"
description:
name: device_info_plus
- sha256: "86add5ef97215562d2e090535b0a16f197902b10c369c558a100e74ea06e8659"
+ sha256: "0042cb3b2a76413ea5f8a2b40cec2a33e01d0c937e91f0f7c211fde4f7739ba6"
url: "https://pub.dev"
source: hosted
- version: "9.0.3"
+ version: "9.1.1"
device_info_plus_platform_interface:
dependency: transitive
description:
@@ -375,10 +375,10 @@ packages:
dependency: "direct main"
description:
name: dotted_border
- sha256: "07a5c5e8d4e6e992279e190e0352be8faa5b8f96d81c77a78b2d42f060279840"
+ sha256: "108837e11848ca776c53b30bc870086f84b62ed6e01c503ed976e8f8c7df9c04"
url: "https://pub.dev"
source: hosted
- version: "2.0.0+3"
+ version: "2.1.0"
easy_debounce:
dependency: transitive
description:
@@ -391,10 +391,10 @@ packages:
dependency: "direct main"
description:
name: easy_localization
- sha256: "30ebf25448ffe169e0bd9bc4b5da94faa8398967a2ad2ca09f438be8b6953645"
+ sha256: de63e3b422adfc97f256cbb3f8cf12739b6a4993d390f3cadb3f51837afaefe5
url: "https://pub.dev"
source: hosted
- version: "3.0.2"
+ version: "3.0.3"
easy_logger:
dependency: transitive
description:
@@ -407,18 +407,18 @@ packages:
dependency: "direct main"
description:
name: envied
- sha256: "60d3f5606c7b35bc6ef493e650d916b34351d8af2e58b7ac45881ba59dfcf039"
+ sha256: c4af8bb99203d7f216cea41f2ec70874f9dd826b2a5782cdc5bd25389c5adcc1
url: "https://pub.dev"
source: hosted
- version: "0.3.0+3"
+ version: "0.5.2"
envied_generator:
dependency: "direct dev"
description:
name: envied_generator
- sha256: dfdbe5dc52863e54c036a4c4042afbdf1bd528cb4c1e638ecba26228ba72e9e5
+ sha256: "637901d274db3974afb3919ca9ba2e1a97f110fd57350ac13a3adcd20ad7d530"
url: "https://pub.dev"
source: hosted
- version: "0.3.0+3"
+ version: "0.5.2"
equatable:
dependency: "direct main"
description:
@@ -447,10 +447,10 @@ packages:
dependency: transitive
description:
name: ffi
- sha256: ed5337a5660c506388a9f012be0288fb38b49020ce2b45fe1f8b8323fe429f99
+ sha256: "7bf0adc28a23d395f19f3f1eb21dd7cfd1dd9f8e1c50051c069122e6853bc878"
url: "https://pub.dev"
source: hosted
- version: "2.0.2"
+ version: "2.1.0"
file:
dependency: transitive
description:
@@ -589,10 +589,10 @@ packages:
dependency: "direct dev"
description:
name: flutter_lints
- sha256: aeb0b80a8b3709709c9cc496cdc027c5b3216796bc0af0ce1007eaf24464fd4c
+ sha256: e2a421b7e59244faef694ba7b30562e489c2b489866e505074eb005cd7060db7
url: "https://pub.dev"
source: hosted
- version: "2.0.1"
+ version: "3.0.1"
flutter_localizations:
dependency: "direct main"
description: flutter
@@ -601,28 +601,27 @@ packages:
flutter_math_fork:
dependency: "direct main"
description:
- path: "."
- ref: de24059
- resolved-ref: de24059e28c6abb453be42c568f33aae1a4decba
- url: "https://github.com/xazin/flutter_math_fork.git"
- source: git
- version: "0.6.3+1"
+ name: flutter_math_fork
+ sha256: "94bee4642892a94939af0748c6a7de0ff8318feee588379dcdfea7dc5cba06c8"
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.7.2"
flutter_plugin_android_lifecycle:
dependency: transitive
description:
name: flutter_plugin_android_lifecycle
- sha256: "950e77c2bbe1692bc0874fc7fb491b96a4dc340457f4ea1641443d0a6c1ea360"
+ sha256: b068ffc46f82a55844acfa4fdbb61fad72fa2aef0905548419d97f0f95c456da
url: "https://pub.dev"
source: hosted
- version: "2.0.15"
+ version: "2.0.17"
flutter_slidable:
dependency: "direct main"
description:
name: flutter_slidable
- sha256: cc4231579e3eae41ae166660df717f4bad1359c87f4a4322ad8ba1befeb3d2be
+ sha256: "19ed4813003a6ff4e9c6bcce37e792a2a358919d7603b2b31ff200229191e44c"
url: "https://pub.dev"
source: hosted
- version: "3.0.0"
+ version: "3.0.1"
flutter_sticky_header:
dependency: transitive
description:
@@ -635,10 +634,10 @@ packages:
dependency: "direct main"
description:
name: flutter_svg
- sha256: "8c5d68a82add3ca76d792f058b186a0599414f279f00ece4830b9b231b570338"
+ sha256: d39e7f95621fc84376bc0f7d504f05c3a41488c562f4a8ad410569127507402c
url: "https://pub.dev"
source: hosted
- version: "2.0.7"
+ version: "2.0.9"
flutter_test:
dependency: "direct dev"
description: flutter
@@ -653,18 +652,18 @@ packages:
dependency: "direct main"
description:
name: fluttertoast
- sha256: "474f7d506230897a3cd28c965ec21c5328ae5605fc9c400cd330e9e9d6ac175c"
+ sha256: dfdde255317af381bfc1c486ed968d5a43a2ded9c931e87cbecd88767d6a71c1
url: "https://pub.dev"
source: hosted
- version: "8.2.2"
+ version: "8.2.4"
freezed:
dependency: "direct dev"
description:
name: freezed
- sha256: a9520490532087cf38bf3f7de478ab6ebeb5f68bb1eb2641546d92719b224445
+ sha256: "21bf2825311de65501d22e563e3d7605dff57fb5e6da982db785ae5372ff018a"
url: "https://pub.dev"
source: hosted
- version: "2.3.5"
+ version: "2.4.5"
freezed_annotation:
dependency: "direct main"
description:
@@ -698,10 +697,10 @@ packages:
dependency: "direct main"
description:
name: get_it
- sha256: "529de303c739fca98cd7ece5fca500d8ff89649f1bb4b4e94fb20954abcd7468"
+ sha256: f79870884de16d689cf9a7d15eedf31ed61d750e813c538a6efb92660fea83c3
url: "https://pub.dev"
source: hosted
- version: "7.6.0"
+ version: "7.6.4"
glob:
dependency: transitive
description:
@@ -714,18 +713,18 @@ packages:
dependency: "direct main"
description:
name: go_router
- sha256: c247a4f76071c3b97bb5ae8912968870d5565644801c5e09f3bc961b4d874895
+ sha256: c5fa45fa502ee880839e3b2152d987c44abae26d064a2376d4aad434cf0f7b15
url: "https://pub.dev"
source: hosted
- version: "12.1.1"
+ version: "12.1.3"
google_fonts:
dependency: "direct main"
description:
name: google_fonts
- sha256: "2776c66b3e97c6cdd58d1bd3281548b074b64f1fd5c8f82391f7456e38849567"
+ sha256: f0b8d115a13ecf827013ec9fc883390ccc0e87a96ed5347a3114cac177ef18e8
url: "https://pub.dev"
source: hosted
- version: "4.0.5"
+ version: "6.1.0"
gotrue:
dependency: transitive
description:
@@ -778,10 +777,10 @@ packages:
dependency: "direct main"
description:
name: hotkey_manager
- sha256: "39b352b6dabb806fd53122d6c95ded1174df882d2db01eedc31cc046f8cc7b6c"
+ sha256: "8aaa0aeaca7015b8c561a58d02eb7ebba95e93357fc9540398c5751ee24afd7c"
url: "https://pub.dev"
source: hosted
- version: "0.1.7"
+ version: "0.1.8"
html:
dependency: transitive
description:
@@ -794,10 +793,10 @@ packages:
dependency: "direct main"
description:
name: http
- sha256: "4c3f04bfb64d3efd508d06b41b825542f08122d30bda4933fb95c069d22a4fa3"
+ sha256: d4872660c46d929f6b8a9ef4e7a7eff7e49bbf0c4ec3f385ee32df5119175139
url: "https://pub.dev"
source: hosted
- version: "1.0.0"
+ version: "1.1.2"
http_multi_server:
dependency: transitive
description:
@@ -903,10 +902,10 @@ packages:
dependency: transitive
description:
name: intl_utils
- sha256: "5cad11e11ff7662c3cd0ef04729248591d71ed023d4ef0903a137528b4568adf"
+ sha256: "1d6d98ce452c586d099a57751d127c0c22727e6f34f5be1f5e7f2bcc69e5062a"
url: "https://pub.dev"
source: hosted
- version: "2.8.5"
+ version: "2.8.6"
io:
dependency: transitive
description:
@@ -919,10 +918,10 @@ packages:
dependency: transitive
description:
name: irondash_engine_context
- sha256: fea21bff36d44a5955beba90619f54b9169884014128ae75f50eba2db03c24a0
+ sha256: f66a1af95756d5fece5034d357853d0127e09b9e4ef58be1f022ca47e11c6f7e
url: "https://pub.dev"
source: hosted
- version: "0.3.1"
+ version: "0.4.0"
irondash_message_channel:
dependency: transitive
description:
@@ -959,10 +958,10 @@ packages:
dependency: "direct dev"
description:
name: json_serializable
- sha256: "61a60716544392a82726dd0fa1dd6f5f1fd32aec66422b6e229e7b90d52325c4"
+ sha256: aa1f5a8912615733e0fdc7a02af03308933c93235bdc8d50d0b0c8a8ccb0b969
url: "https://pub.dev"
source: hosted
- version: "6.7.0"
+ version: "6.7.1"
jwt_decode:
dependency: transitive
description:
@@ -983,10 +982,10 @@ packages:
dependency: "direct main"
description:
name: leak_tracker
- sha256: b63ca5cc296c7509d71f6d4a8cb6085eec8461970c503f3ef3c5c541bc3f0a9a
+ sha256: "04be76c4a4bb50f14904e64749237e541e7c7bcf7ec0b196907322ab5d2fc739"
url: "https://pub.dev"
source: hosted
- version: "9.0.6"
+ version: "9.0.16"
linked_scroll_controller:
dependency: "direct main"
description:
@@ -1007,18 +1006,18 @@ packages:
dependency: transitive
description:
name: lints
- sha256: "6b0206b0bf4f04961fc5438198ccb3a885685cd67d4d4a32cc20ad7f8adbe015"
+ sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290
url: "https://pub.dev"
source: hosted
- version: "2.1.0"
+ version: "3.0.0"
loading_indicator:
dependency: transitive
description:
name: loading_indicator
- sha256: "5cb15810fc3d8872230d086b4810d9f9bbcd6e7d208a38f7cd6bc81fb2650e4b"
+ sha256: a101ffb2aa3e646137d7810bfa90b50525dd3f72c01235b6df7491cf6af6f284
url: "https://pub.dev"
source: hosted
- version: "3.1.0"
+ version: "3.1.1"
local_notifier:
dependency: "direct main"
description:
@@ -1031,10 +1030,10 @@ packages:
dependency: transitive
description:
name: logger
- sha256: db2ff852ed77090ba9f62d3611e4208a3d11dfa35991a81ae724c113fcb3e3f7
+ sha256: "7ad7215c15420a102ec687bb320a7312afd449bac63bfb1c60d9787c27b9767f"
url: "https://pub.dev"
source: hosted
- version: "1.3.0"
+ version: "1.4.0"
logging:
dependency: transitive
description:
@@ -1071,10 +1070,10 @@ packages:
dependency: transitive
description:
name: meta
- sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
+ sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e
url: "https://pub.dev"
source: hosted
- version: "1.9.1"
+ version: "1.10.0"
mime:
dependency: transitive
description:
@@ -1087,18 +1086,18 @@ packages:
dependency: transitive
description:
name: mockito
- sha256: "8b46d7eb40abdda92d62edd01546051f0c27365e65608c284de336dccfef88cc"
+ sha256: "4b693867cee1853c9d1d7ecc1871f27f39b2ef2c13c0d8d8507dfe5bebd8aaf1"
url: "https://pub.dev"
source: hosted
- version: "5.4.1"
+ version: "5.4.3"
mocktail:
dependency: "direct main"
description:
name: mocktail
- sha256: "80a996cd9a69284b3dc521ce185ffe9150cde69767c2d3a0720147d93c0cef53"
+ sha256: bac151b31e4ed78bd59ab89aa4c0928f297b1180186d5daf03734519e5f596c1
url: "https://pub.dev"
source: hosted
- version: "0.3.0"
+ version: "1.0.1"
nanoid:
dependency: "direct main"
description:
@@ -1159,10 +1158,10 @@ packages:
dependency: "direct main"
description:
name: package_info_plus
- sha256: "28386bbe89ab5a7919a47cea99cdd1128e5a6e0bbd7eaafe20440ead84a15de3"
+ sha256: "88bc797f44a94814f2213db1c9bd5badebafdfb8290ca9f78d4b9ee2a3db4d79"
url: "https://pub.dev"
source: hosted
- version: "4.0.1"
+ version: "5.0.1"
package_info_plus_platform_interface:
dependency: transitive
description:
@@ -1199,50 +1198,50 @@ packages:
dependency: "direct main"
description:
name: path_provider
- sha256: "3087813781ab814e4157b172f1a11c46be20179fcc9bea043e0fba36bc0acaa2"
+ sha256: a1aa8aaa2542a6bc57e381f132af822420216c80d4781f7aa085ca3229208aaa
url: "https://pub.dev"
source: hosted
- version: "2.0.15"
+ version: "2.1.1"
path_provider_android:
dependency: transitive
description:
name: path_provider_android
- sha256: "2cec049d282c7f13c594b4a73976b0b4f2d7a1838a6dd5aaf7bd9719196bee86"
+ sha256: e595b98692943b4881b219f0a9e3945118d3c16bd7e2813f98ec6e532d905f72
url: "https://pub.dev"
source: hosted
- version: "2.0.27"
+ version: "2.2.1"
path_provider_foundation:
dependency: transitive
description:
name: path_provider_foundation
- sha256: "1995d88ec2948dac43edf8fe58eb434d35d22a2940ecee1a9fefcd62beee6eb3"
+ sha256: "19314d595120f82aca0ba62787d58dde2cc6b5df7d2f0daf72489e38d1b57f2d"
url: "https://pub.dev"
source: hosted
- version: "2.2.3"
+ version: "2.3.1"
path_provider_linux:
dependency: transitive
description:
name: path_provider_linux
- sha256: ffbb8cc9ed2c9ec0e4b7a541e56fd79b138e8f47d2fb86815f15358a349b3b57
+ sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279
url: "https://pub.dev"
source: hosted
- version: "2.1.11"
+ version: "2.2.1"
path_provider_platform_interface:
dependency: transitive
description:
name: path_provider_platform_interface
- sha256: "57585299a729335f1298b43245842678cb9f43a6310351b18fb577d6e33165ec"
+ sha256: "94b1e0dd80970c1ce43d5d4e050a9918fce4f4a775e6142424c30a29a363265c"
url: "https://pub.dev"
source: hosted
- version: "2.0.6"
+ version: "2.1.1"
path_provider_windows:
dependency: transitive
description:
name: path_provider_windows
- sha256: "1cb68ba4cd3a795033de62ba1b7b4564dace301f952de6bfb3cd91b202b6ee96"
+ sha256: "8bc9f22eee8690981c22aa7fc602f5c85b497a6fb2ceb35ee5a5e5ed85ad8170"
url: "https://pub.dev"
source: hosted
- version: "2.1.7"
+ version: "2.2.1"
percent_indicator:
dependency: "direct main"
description:
@@ -1255,34 +1254,34 @@ packages:
dependency: transitive
description:
name: petitparser
- sha256: cb3798bef7fc021ac45b308f4b51208a152792445cce0448c9a4ba5879dd8750
+ sha256: c15605cd28af66339f8eb6fbe0e541bfe2d1b72d5825efc6598f3e0a31b9ad27
url: "https://pub.dev"
source: hosted
- version: "5.4.0"
+ version: "6.0.2"
pixel_snap:
dependency: transitive
description:
name: pixel_snap
- sha256: "5de3662b926c9bc189578cf90f9d5b350ee61bc8e20e8a91fa1dfdd26c9f5ece"
+ sha256: d31591a4f4aa8ed5dc6fc00b8d027338a5614dfbf5ca658b69d1faa7aba80af7
url: "https://pub.dev"
source: hosted
- version: "0.1.2"
+ version: "0.1.4"
platform:
dependency: transitive
description:
name: platform
- sha256: "4a451831508d7d6ca779f7ac6e212b4023dd5a7d08a27a63da33756410e32b76"
+ sha256: ae68c7bfcd7383af3629daafb32fb4e8681c7154428da4febcff06200585f102
url: "https://pub.dev"
source: hosted
- version: "3.1.0"
+ version: "3.1.2"
plugin_platform_interface:
dependency: "direct dev"
description:
name: plugin_platform_interface
- sha256: "6a2128648c854906c53fa8e33986fc0247a1116122f9534dd20e3ab9e16a32bc"
+ sha256: f4f88d4a900933e7267e2b353594774fc0d07fb072b47eedcd5b54e1ea3269f8
url: "https://pub.dev"
source: hosted
- version: "2.1.4"
+ version: "2.1.7"
pointycastle:
dependency: transitive
description:
@@ -1319,18 +1318,18 @@ packages:
dependency: "direct main"
description:
name: protobuf
- sha256: "467c7ccf3fee0272d5cb84bf20debc509f9a4f69ce06e5f7a8b749d7e6962085"
+ sha256: "01dd9bd0fa02548bf2ceee13545d4a0ec6046459d847b6b061d8a27237108a08"
url: "https://pub.dev"
source: hosted
- version: "2.0.0"
+ version: "2.1.0"
provider:
dependency: "direct main"
description:
name: provider
- sha256: cdbe7530b12ecd9eb455bdaa2fcb8d4dad22e80b8afb4798b41479d5ce26847f
+ sha256: "9a96a0a19b594dbc5bf0f1f27d2bc67d5f95957359b461cd9feb44ed6ae75096"
url: "https://pub.dev"
source: hosted
- version: "6.0.5"
+ version: "6.1.1"
pub_semver:
dependency: transitive
description:
@@ -1355,6 +1354,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.4.0"
+ recase:
+ dependency: transitive
+ description:
+ name: recase
+ sha256: e4eb4ec2dcdee52dcf99cb4ceabaffc631d7424ee55e56f280bc039737f89213
+ url: "https://pub.dev"
+ source: hosted
+ version: "4.1.0"
reorderables:
dependency: "direct main"
description:
@@ -1455,10 +1462,10 @@ packages:
dependency: transitive
description:
name: screen_retriever
- sha256: "4931f226ca158123ccd765325e9fbf360bfed0af9b460a10f960f9bb13d58323"
+ sha256: "6ee02c8a1158e6dae7ca430da79436e3b1c9563c8cf02f524af997c201ac2b90"
url: "https://pub.dev"
source: hosted
- version: "0.1.6"
+ version: "0.1.9"
shared_preferences:
dependency: "direct main"
description:
@@ -1471,26 +1478,26 @@ packages:
dependency: transitive
description:
name: shared_preferences_android
- sha256: "6478c6bbbecfe9aced34c483171e90d7c078f5883558b30ec3163cf18402c749"
+ sha256: "8568a389334b6e83415b6aae55378e158fbc2314e074983362d20c562780fb06"
url: "https://pub.dev"
source: hosted
- version: "2.1.4"
+ version: "2.2.1"
shared_preferences_foundation:
dependency: transitive
description:
name: shared_preferences_foundation
- sha256: e014107bb79d6d3297196f4f2d0db54b5d1f85b8ea8ff63b8e8b391a02700feb
+ sha256: "7bf53a9f2d007329ee6f3df7268fd498f8373602f943c975598bbb34649b62a7"
url: "https://pub.dev"
source: hosted
- version: "2.2.2"
+ version: "2.3.4"
shared_preferences_linux:
dependency: transitive
description:
name: shared_preferences_linux
- sha256: "9d387433ca65717bbf1be88f4d5bb18f10508917a8fa2fb02e0fd0d7479a9afa"
+ sha256: "9f2cbcf46d4270ea8be39fa156d86379077c8a5228d9dfdb1164ae0bb93f1faa"
url: "https://pub.dev"
source: hosted
- version: "2.2.0"
+ version: "2.3.2"
shared_preferences_platform_interface:
dependency: transitive
description:
@@ -1503,18 +1510,18 @@ packages:
dependency: transitive
description:
name: shared_preferences_web
- sha256: "74083203a8eae241e0de4a0d597dbedab3b8fef5563f33cf3c12d7e93c655ca5"
+ sha256: "7b15ffb9387ea3e237bb7a66b8a23d2147663d391cafc5c8f37b2e7b4bde5d21"
url: "https://pub.dev"
source: hosted
- version: "2.1.0"
+ version: "2.2.2"
shared_preferences_windows:
dependency: transitive
description:
name: shared_preferences_windows
- sha256: "5e588e2efef56916a3b229c3bfe81e6a525665a454519ca51dbcc4236a274173"
+ sha256: "841ad54f3c8381c480d0c9b508b89a34036f512482c407e6df7a9c4aa2ef8f59"
url: "https://pub.dev"
source: hosted
- version: "2.2.0"
+ version: "2.3.2"
shelf:
dependency: transitive
description:
@@ -1551,10 +1558,10 @@ packages:
dependency: transitive
description:
name: sign_in_with_apple
- sha256: ac3b113767dfdd765078c507dad9d4d9fe96b669cc7bd88fc36fc15376fb3400
+ sha256: "0975c23b9f8b30a80e27d5659a75993a093d4cb5f4eb7d23a9ccc586fea634e0"
url: "https://pub.dev"
source: hosted
- version: "4.3.0"
+ version: "5.0.0"
sign_in_with_apple_platform_interface:
dependency: transitive
description:
@@ -1604,18 +1611,18 @@ packages:
dependency: transitive
description:
name: source_gen
- sha256: "373f96cf5a8744bc9816c1ff41cf5391bbdbe3d7a96fe98c622b6738a8a7bd33"
+ sha256: fc0da689e5302edb6177fdd964efcb7f58912f43c28c2047a808f5bfff643d16
url: "https://pub.dev"
source: hosted
- version: "1.3.2"
+ version: "1.4.0"
source_helper:
dependency: transitive
description:
name: source_helper
- sha256: "3b67aade1d52416149c633ba1bb36df44d97c6b51830c2198e934e3fca87ca1f"
+ sha256: "6adebc0006c37dd63fe05bca0a929b99f06402fc95aa35bf36d67f5c06de01fd"
url: "https://pub.dev"
source: hosted
- version: "1.3.3"
+ version: "1.3.4"
source_map_stack_trace:
dependency: transitive
description:
@@ -1652,18 +1659,18 @@ packages:
dependency: transitive
description:
name: sqflite_common
- sha256: "8ed044102f3135add97be8653662052838859f5400075ef227f8ad72ae320803"
+ sha256: bb4738f15b23352822f4c42a531677e5c6f522e079461fd240ead29d8d8a54a6
url: "https://pub.dev"
source: hosted
- version: "2.5.0+1"
+ version: "2.5.0+2"
stack_trace:
dependency: transitive
description:
name: stack_trace
- sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
+ sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
url: "https://pub.dev"
source: hosted
- version: "1.11.0"
+ version: "1.11.1"
storage_client:
dependency: transitive
description:
@@ -1676,10 +1683,10 @@ packages:
dependency: transitive
description:
name: stream_channel
- sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8"
+ sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
url: "https://pub.dev"
source: hosted
- version: "2.1.1"
+ version: "2.1.2"
stream_transform:
dependency: transitive
description:
@@ -1700,10 +1707,10 @@ packages:
dependency: "direct main"
description:
name: string_validator
- sha256: b419cf5d21d608522e6e7cafed4deb34b6f268c43df866e63c320bab98a08cf6
+ sha256: "54d4f42cd6878ae72793a58a529d9a18ebfdfbfebd9793bbe55c9b28935e8543"
url: "https://pub.dev"
source: hosted
- version: "1.0.0"
+ version: "1.0.2"
styled_widget:
dependency: "direct main"
description:
@@ -1733,18 +1740,18 @@ packages:
dependency: "direct main"
description:
name: super_clipboard
- sha256: "548642d62d691d2ba00850efe0f7a11ce5696e59111658abd4c6cb76b49aa61d"
+ sha256: "10774204b35b68f8dc5884ab620f83220d2c12620a8dcf4e6f39c94666f3549f"
url: "https://pub.dev"
source: hosted
- version: "0.6.4"
+ version: "0.7.0"
super_native_extensions:
dependency: transitive
description:
name: super_native_extensions
- sha256: "3bbb95899f848617b819eec1fa00c80a617f1bd469a480b1f0c4dd383da4c5ec"
+ sha256: b2fb454a90308f4f25e8ab928272490883d87a28d362307678c76989287cae43
url: "https://pub.dev"
source: hosted
- version: "0.6.4"
+ version: "0.7.0"
sync_http:
dependency: transitive
description:
@@ -1781,26 +1788,26 @@ packages:
dependency: transitive
description:
name: test
- sha256: "13b41f318e2a5751c3169137103b60c584297353d4b1761b66029bae6411fe46"
+ sha256: a1f7595805820fcc05e5c52e3a231aedd0b72972cb333e8c738a8b1239448b6f
url: "https://pub.dev"
source: hosted
- version: "1.24.3"
+ version: "1.24.9"
test_api:
dependency: transitive
description:
name: test_api
- sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8"
+ sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b"
url: "https://pub.dev"
source: hosted
- version: "0.6.0"
+ version: "0.6.1"
test_core:
dependency: transitive
description:
name: test_core
- sha256: "99806e9e6d95c7b059b7a0fc08f07fc53fabe54a829497f0d9676299f1e8637e"
+ sha256: a757b14fc47507060a162cc2530d9a4a2f92f5100a952c7443b5cad5ef5b106a
url: "https://pub.dev"
source: hosted
- version: "0.5.3"
+ version: "0.5.9"
textfield_tags:
dependency: "direct main"
description:
@@ -1885,66 +1892,66 @@ packages:
dependency: "direct main"
description:
name: url_launcher
- sha256: eb1e00ab44303d50dd487aab67ebc575456c146c6af44422f9c13889984c00f3
+ sha256: b1c9e98774adf8820c96fbc7ae3601231d324a7d5ebd8babe27b6dfac91357ba
url: "https://pub.dev"
source: hosted
- version: "6.1.11"
+ version: "6.2.1"
url_launcher_android:
dependency: transitive
description:
name: url_launcher_android
- sha256: "1a5848f598acc5b7d8f7c18b8cb834ab667e59a13edc3c93e9d09cf38cc6bc87"
+ sha256: "31222ffb0063171b526d3e569079cf1f8b294075ba323443fdc690842bfd4def"
url: "https://pub.dev"
source: hosted
- version: "6.0.34"
+ version: "6.2.0"
url_launcher_ios:
dependency: transitive
description:
name: url_launcher_ios
- sha256: "9af7ea73259886b92199f9e42c116072f05ff9bea2dcb339ab935dfc957392c2"
+ sha256: bba3373219b7abb6b5e0d071b0fe66dfbe005d07517a68e38d4fc3638f35c6d3
url: "https://pub.dev"
source: hosted
- version: "6.1.4"
+ version: "6.2.1"
url_launcher_linux:
dependency: transitive
description:
name: url_launcher_linux
- sha256: "207f4ddda99b95b4d4868320a352d374b0b7e05eefad95a4a26f57da413443f5"
+ sha256: "9f2d390e096fdbe1e6e6256f97851e51afc2d9c423d3432f1d6a02a8a9a8b9fd"
url: "https://pub.dev"
source: hosted
- version: "3.0.5"
+ version: "3.1.0"
url_launcher_macos:
dependency: transitive
description:
name: url_launcher_macos
- sha256: "91ee3e75ea9dadf38036200c5d3743518f4a5eb77a8d13fda1ee5764373f185e"
+ sha256: b7244901ea3cf489c5335bdacda07264a6e960b1c1b1a9f91e4bc371d9e68234
url: "https://pub.dev"
source: hosted
- version: "3.0.5"
+ version: "3.1.0"
url_launcher_platform_interface:
dependency: "direct dev"
description:
name: url_launcher_platform_interface
- sha256: "6c9ca697a5ae218ce56cece69d46128169a58aa8653c1b01d26fcd4aad8c4370"
+ sha256: "980e8d9af422f477be6948bdfb68df8433be71f5743a188968b0c1b887807e50"
url: "https://pub.dev"
source: hosted
- version: "2.1.2"
+ version: "2.2.0"
url_launcher_web:
dependency: transitive
description:
name: url_launcher_web
- sha256: "6bb1e5d7fe53daf02a8fee85352432a40b1f868a81880e99ec7440113d5cfcab"
+ sha256: "138bd45b3a456dcfafc46d1a146787424f8d2edfbf2809c9324361e58f851cf7"
url: "https://pub.dev"
source: hosted
- version: "2.0.17"
+ version: "2.2.1"
url_launcher_windows:
dependency: transitive
description:
name: url_launcher_windows
- sha256: "254708f17f7c20a9c8c471f67d86d76d4a3f9c1591aad1e15292008aceb82771"
+ sha256: "7754a1ad30ee896b265f8d14078b0513a4dba28d358eabb9d5f339886f4a1adc"
url: "https://pub.dev"
source: hosted
- version: "3.0.6"
+ version: "3.1.0"
url_protocol:
dependency: "direct main"
description:
@@ -1974,26 +1981,26 @@ packages:
dependency: transitive
description:
name: vector_graphics
- sha256: "670f6e07aca990b4a2bcdc08a784193c4ccdd1932620244c3a86bb72a0eac67f"
+ sha256: "0f0c746dd2d6254a0057218ff980fc7f5670fd0fcf5e4db38a490d31eed4ad43"
url: "https://pub.dev"
source: hosted
- version: "1.1.7"
+ version: "1.1.9+1"
vector_graphics_codec:
dependency: transitive
description:
name: vector_graphics_codec
- sha256: "7451721781d967db9933b63f5733b1c4533022c0ba373a01bdd79d1a5457f69f"
+ sha256: "0edf6d630d1bfd5589114138ed8fada3234deacc37966bec033d3047c29248b7"
url: "https://pub.dev"
source: hosted
- version: "1.1.7"
+ version: "1.1.9+1"
vector_graphics_compiler:
dependency: transitive
description:
name: vector_graphics_compiler
- sha256: "80a13c613c8bde758b1464a1755a7b3a8f2b6cec61fbf0f5a53c94c30f03ba2e"
+ sha256: d24333727332d9bd20990f1483af4e09abdb9b1fc7c3db940b56ab5c42790c26
url: "https://pub.dev"
source: hosted
- version: "1.1.7"
+ version: "1.1.9+1"
vector_math:
dependency: transitive
description:
@@ -2014,10 +2021,10 @@ packages:
dependency: transitive
description:
name: vm_service
- sha256: c620a6f783fa22436da68e42db7ebbf18b8c44b9a46ab911f666ff09ffd9153f
+ sha256: c538be99af830f478718b51630ec1b6bee5e74e52c8a802d328d9e71d35d2583
url: "https://pub.dev"
source: hosted
- version: "11.7.1"
+ version: "11.10.0"
watcher:
dependency: transitive
description:
@@ -2030,10 +2037,10 @@ packages:
dependency: transitive
description:
name: web
- sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10
+ sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152
url: "https://pub.dev"
source: hosted
- version: "0.1.4-beta"
+ version: "0.3.0"
web_socket_channel:
dependency: transitive
description:
@@ -2054,82 +2061,82 @@ packages:
dependency: transitive
description:
name: webkit_inspection_protocol
- sha256: "67d3a8b6c79e1987d19d848b0892e582dbb0c66c57cc1fef58a177dd2aa2823d"
+ sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572"
url: "https://pub.dev"
source: hosted
- version: "1.2.0"
+ version: "1.2.1"
webview_flutter:
dependency: transitive
description:
name: webview_flutter
- sha256: "5604dac1178680a34fbe4a08c7b69ec42cca6601dc300009ec9ff69bef284cc2"
+ sha256: "42393b4492e629aa3a88618530a4a00de8bb46e50e7b3993fedbfdc5352f0dbf"
url: "https://pub.dev"
source: hosted
- version: "4.2.1"
+ version: "4.4.2"
webview_flutter_android:
dependency: transitive
description:
name: webview_flutter_android
- sha256: "57a22c86065375c1598b57224f92d6008141be0c877c64100de8bfb6f71083d8"
+ sha256: "8326ee235f87605a2bfc444a4abc897f4abc78d83f054ba7d3d1074ce82b4fbf"
url: "https://pub.dev"
source: hosted
- version: "3.7.1"
+ version: "3.12.1"
webview_flutter_platform_interface:
dependency: transitive
description:
name: webview_flutter_platform_interface
- sha256: "656e2aeaef318900fffd21468b6ddc7958c7092a642f0e7220bac328b70d4a81"
+ sha256: "68e86162aa8fc646ae859e1585995c096c95fc2476881fa0c4a8d10f56013a5a"
url: "https://pub.dev"
source: hosted
- version: "2.3.1"
+ version: "2.8.0"
webview_flutter_wkwebview:
dependency: transitive
description:
name: webview_flutter_wkwebview
- sha256: "6bbc6ade302b842999b27cbaa7171241c273deea8a9c73f92ceb3d811c767de2"
+ sha256: accdaaa49a2aca2dc3c3230907988954cdd23fed0a19525d6c9789d380f4dc76
url: "https://pub.dev"
source: hosted
- version: "3.4.4"
+ version: "3.9.4"
win32:
dependency: transitive
description:
name: win32
- sha256: f2add6fa510d3ae152903412227bda57d0d5a8da61d2c39c1fb022c9429a41c0
+ sha256: b0f37db61ba2f2e9b7a78a1caece0052564d1bc70668156cf3a29d676fe4e574
url: "https://pub.dev"
source: hosted
- version: "5.0.6"
+ version: "5.1.1"
win32_registry:
dependency: transitive
description:
name: win32_registry
- sha256: e4506d60b7244251bc59df15656a3093501c37fb5af02105a944d73eb95be4c9
+ sha256: "41fd8a189940d8696b1b810efb9abcf60827b6cbfab90b0c43e8439e3a39d85a"
url: "https://pub.dev"
source: hosted
- version: "1.1.1"
+ version: "1.1.2"
window_manager:
dependency: "direct main"
description:
name: window_manager
- sha256: "95096fede562cbb65f30d38b62d819a458f59ba9fe4a317f6cee669710f6676b"
+ sha256: dcc865277f26a7dad263a47d0e405d77e21f12cb71f30333a52710a408690bd7
url: "https://pub.dev"
source: hosted
- version: "0.3.4"
+ version: "0.3.7"
xdg_directories:
dependency: transitive
description:
name: xdg_directories
- sha256: ee1505df1426458f7f60aac270645098d318a8b4766d85fde75f76f2e21807d1
+ sha256: "589ada45ba9e39405c198fe34eb0f607cddb2108527e658136120892beac46d2"
url: "https://pub.dev"
source: hosted
- version: "1.0.0"
+ version: "1.0.3"
xml:
dependency: transitive
description:
name: xml
- sha256: "5bc72e1e45e941d825fd7468b9b4cc3b9327942649aeb6fc5cdbf135f0a86e84"
+ sha256: b015a8ad1c488f66851d762d3090a21c600e479dc75e68328c52774040cf9226
url: "https://pub.dev"
source: hosted
- version: "6.3.0"
+ version: "6.5.0"
yaml:
dependency: transitive
description:
@@ -2147,5 +2154,5 @@ packages:
source: hosted
version: "1.1.1"
sdks:
- dart: ">=3.1.5 <4.0.0"
- flutter: ">=3.13.0"
+ dart: ">=3.2.0 <4.0.0"
+ flutter: ">=3.16.0"
diff --git a/frontend/appflowy_flutter/pubspec.yaml b/frontend/appflowy_flutter/pubspec.yaml
index d802061019..ed22ea103a 100644
--- a/frontend/appflowy_flutter/pubspec.yaml
+++ b/frontend/appflowy_flutter/pubspec.yaml
@@ -18,6 +18,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
version: 0.3.9+1
environment:
+ flutter: ">=3.16.0"
sdk: ">=3.1.5 <4.0.0"
# Dependencies specify other packages that your package needs in order to work.
@@ -58,10 +59,7 @@ dependencies:
freezed_annotation: ^2.2.0
get_it: ^7.6.0
flutter_bloc: ^8.1.3
- flutter_math_fork:
- git:
- url: https://github.com/xazin/flutter_math_fork.git
- ref: de24059
+ flutter_math_fork: ^0.7.2
dartz: ^0.10.1
provider: ^6.0.5
path_provider: ^2.0.15
@@ -70,7 +68,7 @@ dependencies:
expandable: ^5.0.1
flutter_colorpicker: ^1.0.3
highlight: ^0.7.0
- package_info_plus: ^4.0.1
+ package_info_plus: ^5.0.1
url_launcher: ^6.1.11
clipboard: ^0.1.3
connectivity_plus: ^5.0.2
@@ -85,12 +83,12 @@ dependencies:
hotkey_manager: ^0.1.7
fixnum: ^1.1.0
flutter_svg: ^2.0.7
- protobuf: "2.0.0"
+ protobuf: ^2.1.0
charcode: ^1.3.1
collection: ^1.17.1
bloc: ^8.1.2
shared_preferences: ^2.2.2
- google_fonts: ^4.0.5
+ google_fonts: ^6.1.0
percent_indicator: ^4.2.3
calendar_view:
git:
@@ -99,16 +97,16 @@ dependencies:
window_manager: ^0.3.4
http: ^1.0.0
path: ^1.8.3
- mocktail: ^0.3.0
+ mocktail: ^1.0.1
archive: ^3.3.7
nanoid: ^1.0.0
supabase_flutter: ^1.10.4
- envied: ^0.3.0+3
+ envied: ^0.5.2
dotted_border: ^2.0.0+3
url_protocol:
hive: ^2.2.3
hive_flutter: ^1.1.0
- super_clipboard: ^0.6.3
+ super_clipboard: ^0.7.0
go_router: ^12.1.1
string_validator: ^1.0.0
unsplash_client: ^2.1.1
@@ -129,7 +127,7 @@ dependencies:
leak_tracker: ^9.0.6
dev_dependencies:
- flutter_lints: ^2.0.1
+ flutter_lints: ^3.0.1
flutter_test:
sdk: flutter
@@ -139,7 +137,7 @@ dev_dependencies:
freezed: ^2.3.4
bloc_test: ^9.1.2
json_serializable: ^6.7.0
- envied_generator: ^0.3.0+3
+ envied_generator: ^0.5.2
plugin_platform_interface: any
url_launcher_platform_interface: any
diff --git a/frontend/scripts/docker-buildfiles/Dockerfile b/frontend/scripts/docker-buildfiles/Dockerfile
index 15a4d2bd58..204caf7ab7 100644
--- a/frontend/scripts/docker-buildfiles/Dockerfile
+++ b/frontend/scripts/docker-buildfiles/Dockerfile
@@ -39,7 +39,7 @@ RUN source ~/.cargo/env && \
RUN sudo pacman -S --noconfirm git tar gtk3
RUN curl -sSfL \
--output flutter.tar.xz \
- https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.13.9-stable.tar.xz && \
+ https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.16.2-stable.tar.xz && \
tar -xf flutter.tar.xz && \
rm flutter.tar.xz
RUN flutter config --enable-linux-desktop
diff --git a/frontend/scripts/install_dev_env/install_ios.sh b/frontend/scripts/install_dev_env/install_ios.sh
index 5fc820d5b9..78902c94fd 100644
--- a/frontend/scripts/install_dev_env/install_ios.sh
+++ b/frontend/scripts/install_dev_env/install_ios.sh
@@ -44,9 +44,9 @@ printMessage "Setting up Flutter"
# Get the current Flutter version
FLUTTER_VERSION=$(flutter --version | grep -oE 'Flutter [^ ]+' | grep -oE '[^ ]+$')
-# Check if the current version is 3.13.9
-if [ "$FLUTTER_VERSION" = "3.13.9" ]; then
- echo "Flutter version is already 3.13.9"
+# Check if the current version is 3.16.2
+if [ "$FLUTTER_VERSION" = "3.16.2" ]; then
+ echo "Flutter version is already 3.16.2"
else
# Get the path to the Flutter SDK
FLUTTER_PATH=$(which flutter)
@@ -55,12 +55,12 @@ else
current_dir=$(pwd)
cd $FLUTTER_PATH
- # Use git to checkout version 3.13.9 of Flutter
- git checkout 3.13.9
+ # Use git to checkout version 3.16.2 of Flutter
+ git checkout 3.16.2
# Get back to current working directory
cd "$current_dir"
- echo "Switched to Flutter version 3.13.9"
+ echo "Switched to Flutter version 3.16.2"
fi
# Enable linux desktop
diff --git a/frontend/scripts/install_dev_env/install_linux.sh b/frontend/scripts/install_dev_env/install_linux.sh
index b7de2dbd64..55662b832f 100755
--- a/frontend/scripts/install_dev_env/install_linux.sh
+++ b/frontend/scripts/install_dev_env/install_linux.sh
@@ -38,9 +38,9 @@ fi
printMessage "Setting up Flutter"
# Get the current Flutter version
FLUTTER_VERSION=$(flutter --version | grep -oP 'Flutter \K\S+')
-# Check if the current version is 3.13.9
-if [ "$FLUTTER_VERSION" = "3.13.9" ]; then
- echo "Flutter version is already 3.13.9"
+# Check if the current version is 3.16.2
+if [ "$FLUTTER_VERSION" = "3.16.2" ]; then
+ echo "Flutter version is already 3.16.2"
else
# Get the path to the Flutter SDK
FLUTTER_PATH=$(which flutter)
@@ -49,12 +49,12 @@ else
current_dir=$(pwd)
cd $FLUTTER_PATH
- # Use git to checkout version 3.13.9 of Flutter
- git checkout 3.13.9
+ # Use git to checkout version 3.16.2 of Flutter
+ git checkout 3.16.2
# Get back to current working directory
cd "$current_dir"
- echo "Switched to Flutter version 3.13.9"
+ echo "Switched to Flutter version 3.16.2"
fi
# Enable linux desktop
diff --git a/frontend/scripts/install_dev_env/install_macos.sh b/frontend/scripts/install_dev_env/install_macos.sh
index 32cb6c1af4..6c30317636 100755
--- a/frontend/scripts/install_dev_env/install_macos.sh
+++ b/frontend/scripts/install_dev_env/install_macos.sh
@@ -41,9 +41,9 @@ printMessage "Setting up Flutter"
# Get the current Flutter version
FLUTTER_VERSION=$(flutter --version | grep -oE 'Flutter [^ ]+' | grep -oE '[^ ]+$')
-# Check if the current version is 3.13.9
-if [ "$FLUTTER_VERSION" = "3.13.9" ]; then
- echo "Flutter version is already 3.13.9"
+# Check if the current version is 3.16.2
+if [ "$FLUTTER_VERSION" = "3.16.2" ]; then
+ echo "Flutter version is already 3.16.2"
else
# Get the path to the Flutter SDK
FLUTTER_PATH=$(which flutter)
@@ -52,12 +52,12 @@ else
current_dir=$(pwd)
cd $FLUTTER_PATH
- # Use git to checkout version 3.13.9 of Flutter
- git checkout 3.13.9
+ # Use git to checkout version 3.16.2 of Flutter
+ git checkout 3.16.2
# Get back to current working directory
cd "$current_dir"
- echo "Switched to Flutter version 3.13.9"
+ echo "Switched to Flutter version 3.16.2"
fi
# Enable linux desktop
diff --git a/frontend/scripts/install_dev_env/install_windows.sh b/frontend/scripts/install_dev_env/install_windows.sh
index b04eeb7a78..9bae4f947c 100644
--- a/frontend/scripts/install_dev_env/install_windows.sh
+++ b/frontend/scripts/install_dev_env/install_windows.sh
@@ -48,9 +48,9 @@ fi
printMessage "Setting up Flutter"
# Get the current Flutter version
FLUTTER_VERSION=$(flutter --version | grep -oP 'Flutter \K\S+')
-# Check if the current version is 3.13.9
-if [ "$FLUTTER_VERSION" = "3.13.9" ]; then
- echo "Flutter version is already 3.13.9"
+# Check if the current version is 3.16.2
+if [ "$FLUTTER_VERSION" = "3.16.2" ]; then
+ echo "Flutter version is already 3.16.2"
else
# Get the path to the Flutter SDK
FLUTTER_PATH=$(which flutter)
@@ -59,12 +59,12 @@ else
current_dir=$(pwd)
cd $FLUTTER_PATH
- # Use git to checkout version 3.13.9 of Flutter
- git checkout 3.13.9
+ # Use git to checkout version 3.16.2 of Flutter
+ git checkout 3.16.2
# Get back to current working directory
cd "$current_dir"
- echo "Switched to Flutter version 3.13.9"
+ echo "Switched to Flutter version 3.16.2"
fi
# Add pub cache and cargo to PATH
diff --git a/frontend/scripts/makefile/flutter.toml b/frontend/scripts/makefile/flutter.toml
index 8c3a186049..cb8cffbd1d 100644
--- a/frontend/scripts/makefile/flutter.toml
+++ b/frontend/scripts/makefile/flutter.toml
@@ -166,7 +166,7 @@ script = [
fi
mkdir -p ${output_path}
- product=${PRODUCT_NAME}-arm64-v8a-release.${PRODUCT_EXT}
+ product=${PRODUCT_NAME}.${PRODUCT_EXT}
cp -R ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/appflowy_flutter/build/${TARGET_OS}/Build/Products/${FLUTTER_OUTPUT_DIR}/${product} \
${output_path}/${product}
""",