mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: add missing border for ai text field and ai translate field
This commit is contained in:
@ -13,42 +13,54 @@ class MobileRowDetailSummaryCellSkin extends IEditableSummaryCellSkin {
|
|||||||
FocusNode focusNode,
|
FocusNode focusNode,
|
||||||
TextEditingController textEditingController,
|
TextEditingController textEditingController,
|
||||||
) {
|
) {
|
||||||
return Column(
|
return Container(
|
||||||
children: [
|
decoration: BoxDecoration(
|
||||||
TextField(
|
border: Border.fromBorderSide(
|
||||||
controller: textEditingController,
|
BorderSide(color: Theme.of(context).colorScheme.outline),
|
||||||
readOnly: true,
|
|
||||||
focusNode: focusNode,
|
|
||||||
onEditingComplete: () => focusNode.unfocus(),
|
|
||||||
onSubmitted: (_) => focusNode.unfocus(),
|
|
||||||
style: Theme.of(context).textTheme.bodyMedium,
|
|
||||||
textInputAction: TextInputAction.done,
|
|
||||||
maxLines: null,
|
|
||||||
minLines: 1,
|
|
||||||
decoration: InputDecoration(
|
|
||||||
contentPadding: GridSize.cellContentInsets,
|
|
||||||
border: InputBorder.none,
|
|
||||||
focusedBorder: InputBorder.none,
|
|
||||||
enabledBorder: InputBorder.none,
|
|
||||||
errorBorder: InputBorder.none,
|
|
||||||
disabledBorder: InputBorder.none,
|
|
||||||
isDense: true,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Row(
|
borderRadius: const BorderRadius.all(Radius.circular(14)),
|
||||||
children: [
|
),
|
||||||
const Spacer(),
|
padding: const EdgeInsets.symmetric(
|
||||||
Padding(
|
horizontal: 4,
|
||||||
padding: const EdgeInsets.all(8.0),
|
vertical: 2,
|
||||||
child: SummaryCellAccessory(
|
),
|
||||||
viewId: bloc.cellController.viewId,
|
child: Column(
|
||||||
fieldId: bloc.cellController.fieldId,
|
children: [
|
||||||
rowId: bloc.cellController.rowId,
|
TextField(
|
||||||
),
|
controller: textEditingController,
|
||||||
|
readOnly: true,
|
||||||
|
focusNode: focusNode,
|
||||||
|
onEditingComplete: () => focusNode.unfocus(),
|
||||||
|
onSubmitted: (_) => focusNode.unfocus(),
|
||||||
|
style: Theme.of(context).textTheme.bodyMedium,
|
||||||
|
textInputAction: TextInputAction.done,
|
||||||
|
maxLines: null,
|
||||||
|
minLines: 1,
|
||||||
|
decoration: InputDecoration(
|
||||||
|
contentPadding: GridSize.cellContentInsets,
|
||||||
|
border: InputBorder.none,
|
||||||
|
focusedBorder: InputBorder.none,
|
||||||
|
enabledBorder: InputBorder.none,
|
||||||
|
errorBorder: InputBorder.none,
|
||||||
|
disabledBorder: InputBorder.none,
|
||||||
|
isDense: true,
|
||||||
),
|
),
|
||||||
],
|
),
|
||||||
),
|
Row(
|
||||||
],
|
children: [
|
||||||
|
const Spacer(),
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.all(8.0),
|
||||||
|
child: SummaryCellAccessory(
|
||||||
|
viewId: bloc.cellController.viewId,
|
||||||
|
fieldId: bloc.cellController.fieldId,
|
||||||
|
rowId: bloc.cellController.rowId,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,42 +13,54 @@ class MobileRowDetailTranslateCellSkin extends IEditableTranslateCellSkin {
|
|||||||
FocusNode focusNode,
|
FocusNode focusNode,
|
||||||
TextEditingController textEditingController,
|
TextEditingController textEditingController,
|
||||||
) {
|
) {
|
||||||
return Column(
|
return Container(
|
||||||
children: [
|
decoration: BoxDecoration(
|
||||||
TextField(
|
border: Border.fromBorderSide(
|
||||||
readOnly: true,
|
BorderSide(color: Theme.of(context).colorScheme.outline),
|
||||||
controller: textEditingController,
|
|
||||||
focusNode: focusNode,
|
|
||||||
onEditingComplete: () => focusNode.unfocus(),
|
|
||||||
onSubmitted: (_) => focusNode.unfocus(),
|
|
||||||
style: Theme.of(context).textTheme.bodyMedium,
|
|
||||||
textInputAction: TextInputAction.done,
|
|
||||||
maxLines: null,
|
|
||||||
minLines: 1,
|
|
||||||
decoration: InputDecoration(
|
|
||||||
contentPadding: GridSize.cellContentInsets,
|
|
||||||
border: InputBorder.none,
|
|
||||||
focusedBorder: InputBorder.none,
|
|
||||||
enabledBorder: InputBorder.none,
|
|
||||||
errorBorder: InputBorder.none,
|
|
||||||
disabledBorder: InputBorder.none,
|
|
||||||
isDense: true,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Row(
|
borderRadius: const BorderRadius.all(Radius.circular(14)),
|
||||||
children: [
|
),
|
||||||
const Spacer(),
|
padding: const EdgeInsets.symmetric(
|
||||||
Padding(
|
horizontal: 4,
|
||||||
padding: const EdgeInsets.all(8.0),
|
vertical: 2,
|
||||||
child: TranslateCellAccessory(
|
),
|
||||||
viewId: bloc.cellController.viewId,
|
child: Column(
|
||||||
fieldId: bloc.cellController.fieldId,
|
children: [
|
||||||
rowId: bloc.cellController.rowId,
|
TextField(
|
||||||
),
|
readOnly: true,
|
||||||
|
controller: textEditingController,
|
||||||
|
focusNode: focusNode,
|
||||||
|
onEditingComplete: () => focusNode.unfocus(),
|
||||||
|
onSubmitted: (_) => focusNode.unfocus(),
|
||||||
|
style: Theme.of(context).textTheme.bodyMedium,
|
||||||
|
textInputAction: TextInputAction.done,
|
||||||
|
maxLines: null,
|
||||||
|
minLines: 1,
|
||||||
|
decoration: InputDecoration(
|
||||||
|
contentPadding: GridSize.cellContentInsets,
|
||||||
|
border: InputBorder.none,
|
||||||
|
focusedBorder: InputBorder.none,
|
||||||
|
enabledBorder: InputBorder.none,
|
||||||
|
errorBorder: InputBorder.none,
|
||||||
|
disabledBorder: InputBorder.none,
|
||||||
|
isDense: true,
|
||||||
),
|
),
|
||||||
],
|
),
|
||||||
),
|
Row(
|
||||||
],
|
children: [
|
||||||
|
const Spacer(),
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.all(8.0),
|
||||||
|
child: TranslateCellAccessory(
|
||||||
|
viewId: bloc.cellController.viewId,
|
||||||
|
fieldId: bloc.cellController.fieldId,
|
||||||
|
rowId: bloc.cellController.rowId,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ class CachedRecentService {
|
|||||||
final _listener = RecentViewsListener();
|
final _listener = RecentViewsListener();
|
||||||
|
|
||||||
Future<List<SectionViewPB>> recentViews() async {
|
Future<List<SectionViewPB>> recentViews() async {
|
||||||
if (_isInitialized) return _recentViews;
|
if (_isInitialized || _completer.isCompleted) return _recentViews;
|
||||||
|
|
||||||
_isInitialized = true;
|
_isInitialized = true;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user