mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: upgrade flutter to 3.13.9 (#3936)
This commit is contained in:
@ -219,7 +219,7 @@ class CellController<T, D> extends Equatable {
|
||||
@override
|
||||
List<Object> get props => [
|
||||
_cellCache.get(_cacheKey) ?? "",
|
||||
_cellContext.rowId + _cellContext.fieldInfo.id
|
||||
_cellContext.rowId + _cellContext.fieldInfo.id,
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -392,7 +392,7 @@ class FieldController {
|
||||
}
|
||||
final List<FieldInfo> newFields = fieldInfos;
|
||||
final Map<String, FieldIdPB> deletedFieldMap = {
|
||||
for (final fieldOrder in deletedFields) fieldOrder.fieldId: fieldOrder
|
||||
for (final fieldOrder in deletedFields) fieldOrder.fieldId: fieldOrder,
|
||||
};
|
||||
|
||||
newFields.retainWhere((field) => (deletedFieldMap[field.id] == null));
|
||||
|
@ -100,7 +100,7 @@ class RowList {
|
||||
final List<RowInfo> newRows = [];
|
||||
final DeletedIndexs deletedIndex = [];
|
||||
final Map<String, String> deletedRowByRowId = {
|
||||
for (var rowId in rowIds) rowId: rowId
|
||||
for (final rowId in rowIds) rowId: rowId,
|
||||
};
|
||||
|
||||
_rowInfos.asMap().forEach((index, RowInfo rowInfo) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import 'package:appflowy/plugins/database_view/tab_bar/tab_bar_view.dart';
|
||||
import 'package:appflowy/plugins/database_view/tab_bar/tab_bar_add_button.dart';
|
||||
import 'package:appflowy/plugins/database_view/tab_bar/tab_bar_view.dart';
|
||||
import 'package:appflowy/workspace/application/view/prelude.dart';
|
||||
import 'package:appflowy/workspace/application/view/view_ext.dart';
|
||||
import 'package:appflowy_backend/log.dart';
|
||||
@ -65,7 +65,8 @@ class DatabaseTabBarBloc
|
||||
if (updatePB.createChildViews.isNotEmpty) {
|
||||
final allTabBars = [
|
||||
...state.tabBars,
|
||||
...updatePB.createChildViews.map((e) => DatabaseTabBar(view: e))
|
||||
...updatePB.createChildViews
|
||||
.map((e) => DatabaseTabBar(view: e)),
|
||||
];
|
||||
emit(
|
||||
state.copyWith(
|
||||
@ -80,7 +81,7 @@ class DatabaseTabBarBloc
|
||||
if (updatePB.deleteChildViews.isNotEmpty) {
|
||||
final allTabBars = [...state.tabBars];
|
||||
final tabBarControllerByViewId = {
|
||||
...state.tabBarControllerByViewId
|
||||
...state.tabBarControllerByViewId,
|
||||
};
|
||||
var newSelectedIndex = state.selectedIndex;
|
||||
for (final viewId in updatePB.deleteChildViews) {
|
||||
@ -235,7 +236,7 @@ class DatabaseTabBarState with _$DatabaseTabBarState {
|
||||
tabBarControllerByViewId: {
|
||||
view.id: DatabaseTabBarController(
|
||||
view: view,
|
||||
)
|
||||
),
|
||||
},
|
||||
);
|
||||
}
|
||||
|
@ -237,7 +237,7 @@ class _BoardColumnHeaderState extends State<BoardColumnHeader> {
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
),
|
||||
],
|
||||
);
|
||||
},
|
||||
|
@ -431,7 +431,7 @@ class HiddenGroupPopupItemList extends StatelessWidget {
|
||||
},
|
||||
);
|
||||
},
|
||||
)
|
||||
),
|
||||
];
|
||||
|
||||
return ListView.separated(
|
||||
|
@ -283,7 +283,7 @@ class CalendarBloc extends Bloc<CalendarEvent, CalendarState> {
|
||||
return;
|
||||
}
|
||||
fieldInfoByFieldId = {
|
||||
for (var fieldInfo in fieldInfos) fieldInfo.field.id: fieldInfo
|
||||
for (final fieldInfo in fieldInfos) fieldInfo.field.id: fieldInfo,
|
||||
};
|
||||
},
|
||||
onRowsCreated: (rowIds) async {
|
||||
|
@ -230,7 +230,7 @@ class _EventCardState extends State<EventCard> {
|
||||
color: Theme.of(context).hintColor,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
@ -435,7 +435,7 @@ class UnscheduleEventsList extends StatelessWidget {
|
||||
PopoverContainer.of(context).close();
|
||||
},
|
||||
),
|
||||
)
|
||||
),
|
||||
];
|
||||
|
||||
return ListView.separated(
|
||||
|
@ -50,7 +50,7 @@ class FieldTypeOptionEditor extends StatelessWidget {
|
||||
|
||||
final List<Widget> children = [
|
||||
SwitchFieldButton(popoverMutex: popoverMutex),
|
||||
if (typeOptionWidget != null) typeOptionWidget
|
||||
if (typeOptionWidget != null) typeOptionWidget,
|
||||
];
|
||||
|
||||
return ListView(
|
||||
|
@ -48,7 +48,7 @@ class SelectOptionTypeOptionWidget extends StatelessWidget {
|
||||
const VSpace(10),
|
||||
if (state.options.isEmpty && !state.isEditingOption)
|
||||
const _AddOptionButton(),
|
||||
_OptionList(popoverMutex: popoverMutex)
|
||||
_OptionList(popoverMutex: popoverMutex),
|
||||
];
|
||||
|
||||
return ListView.builder(
|
||||
@ -77,7 +77,7 @@ class OptionTitle extends StatelessWidget {
|
||||
child: FlowyText.medium(
|
||||
LocaleKeys.grid_field_optionTitle.tr(),
|
||||
),
|
||||
)
|
||||
),
|
||||
];
|
||||
if (state.options.isNotEmpty && !state.isEditingOption) {
|
||||
children.add(const Spacer());
|
||||
|
@ -19,7 +19,7 @@ class GridShortcuts extends StatelessWidget {
|
||||
}
|
||||
|
||||
Map<ShortcutActivator, Intent> bindKeys(List<LogicalKeyboardKey> keys) {
|
||||
return {for (var key in keys) LogicalKeySet(key): KeyboardKeyIdent(key)};
|
||||
return {for (final key in keys) LogicalKeySet(key): KeyboardKeyIdent(key)};
|
||||
}
|
||||
|
||||
Map<Type, Action<Intent>> bindActions() {
|
||||
|
@ -123,7 +123,7 @@ class SelectOptionTag extends StatelessWidget {
|
||||
FlowySvgs.close_s,
|
||||
),
|
||||
),
|
||||
]
|
||||
],
|
||||
],
|
||||
),
|
||||
);
|
||||
|
@ -126,7 +126,7 @@ class _GridTextCellState extends GridEditableTextCell<GridTextCell> {
|
||||
isDense: true,
|
||||
),
|
||||
),
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
Reference in New Issue
Block a user