mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: typo
This commit is contained in:
@ -213,8 +213,8 @@
|
|||||||
"aquaColor": "Aqua",
|
"aquaColor": "Aqua",
|
||||||
"blueColor": "Blue",
|
"blueColor": "Blue",
|
||||||
"deleteTag": "Delete tag",
|
"deleteTag": "Delete tag",
|
||||||
"colorPannelTitle": "Colors",
|
"colorPanelTitle": "Colors",
|
||||||
"pannelTitle": "Select an option or create one",
|
"panelTitle": "Select an option or create one",
|
||||||
"searchOption": "Search for an option"
|
"searchOption": "Search for an option"
|
||||||
},
|
},
|
||||||
"menuName": "Grid"
|
"menuName": "Grid"
|
||||||
|
@ -201,8 +201,8 @@
|
|||||||
"aquaColor": "Agua",
|
"aquaColor": "Agua",
|
||||||
"blueColor": "Azul",
|
"blueColor": "Azul",
|
||||||
"deleteTag": "Borrar etiqueta",
|
"deleteTag": "Borrar etiqueta",
|
||||||
"colorPannelTitle": "Colores",
|
"colorPanelTitle": "Colores",
|
||||||
"pannelTitle": "Selecciona una opción o crea una",
|
"panelTitle": "Selecciona una opción o crea una",
|
||||||
"searchOption": "Buscar una opción"
|
"searchOption": "Buscar una opción"
|
||||||
},
|
},
|
||||||
"menuName": "Grid"
|
"menuName": "Grid"
|
||||||
|
@ -199,8 +199,8 @@
|
|||||||
"aquaColor": "Aqua",
|
"aquaColor": "Aqua",
|
||||||
"blueColor": "Bleu",
|
"blueColor": "Bleu",
|
||||||
"deleteTag": "Supprimer l'étiquette",
|
"deleteTag": "Supprimer l'étiquette",
|
||||||
"colorPannelTitle": "Couleurs",
|
"colorPanelTitle": "Couleurs",
|
||||||
"pannelTitle": "Sélectionnez une option ou créez-en une",
|
"panelTitle": "Sélectionnez une option ou créez-en une",
|
||||||
"searchOption": "Rechercher une option"
|
"searchOption": "Rechercher une option"
|
||||||
},
|
},
|
||||||
"menuName": "Grille"
|
"menuName": "Grille"
|
||||||
|
@ -202,8 +202,8 @@
|
|||||||
"aquaColor": "Air",
|
"aquaColor": "Air",
|
||||||
"blueColor": "Biru",
|
"blueColor": "Biru",
|
||||||
"deleteTag": "Hapus tag",
|
"deleteTag": "Hapus tag",
|
||||||
"colorPannelTitle": "Warna",
|
"colorPanelTitle": "Warna",
|
||||||
"pannelTitle": "Pilih opsi atau buat baru",
|
"panelTitle": "Pilih opsi atau buat baru",
|
||||||
"searchOption": "Cari opsi"
|
"searchOption": "Cari opsi"
|
||||||
},
|
},
|
||||||
"menuName": "Grid"
|
"menuName": "Grid"
|
||||||
|
@ -191,8 +191,8 @@
|
|||||||
"aquaColor": "水色",
|
"aquaColor": "水色",
|
||||||
"blueColor": "青",
|
"blueColor": "青",
|
||||||
"deleteTag": "選択候補を削除",
|
"deleteTag": "選択候補を削除",
|
||||||
"colorPannelTitle": "色",
|
"colorPanelTitle": "色",
|
||||||
"pannelTitle": "選択候補を検索 または 作成する",
|
"panelTitle": "選択候補を検索 または 作成する",
|
||||||
"searchOption": "選択候補を検索"
|
"searchOption": "選択候補を検索"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -195,8 +195,8 @@
|
|||||||
"aquaColor": "Морской волны",
|
"aquaColor": "Морской волны",
|
||||||
"blueColor": "Синий",
|
"blueColor": "Синий",
|
||||||
"deleteTag": "Удалить вариант",
|
"deleteTag": "Удалить вариант",
|
||||||
"colorPannelTitle": "Цвета",
|
"colorPanelTitle": "Цвета",
|
||||||
"pannelTitle": "Выберите или создайте вариант",
|
"panelTitle": "Выберите или создайте вариант",
|
||||||
"searchOption": "Поиск"
|
"searchOption": "Поиск"
|
||||||
},
|
},
|
||||||
"date": {
|
"date": {
|
||||||
@ -209,4 +209,3 @@
|
|||||||
"closeSidebar": "Close sidebar"
|
"closeSidebar": "Close sidebar"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -206,8 +206,8 @@
|
|||||||
"aquaColor": "水蓝色",
|
"aquaColor": "水蓝色",
|
||||||
"blueColor": "蓝色",
|
"blueColor": "蓝色",
|
||||||
"deleteTag": "删除标签",
|
"deleteTag": "删除标签",
|
||||||
"colorPannelTitle": "颜色",
|
"colorPanelTitle": "颜色",
|
||||||
"pannelTitle": "选择或新建一个标签",
|
"panelTitle": "选择或新建一个标签",
|
||||||
"searchOption": "搜索标签"
|
"searchOption": "搜索标签"
|
||||||
},
|
},
|
||||||
"menuName": "网格"
|
"menuName": "网格"
|
||||||
|
@ -202,8 +202,8 @@
|
|||||||
"aquaColor": "水藍色",
|
"aquaColor": "水藍色",
|
||||||
"blueColor": "藍色",
|
"blueColor": "藍色",
|
||||||
"deleteTag": "刪除標籤",
|
"deleteTag": "刪除標籤",
|
||||||
"colorPannelTitle": "顏色",
|
"colorPanelTitle": "顏色",
|
||||||
"pannelTitle": "搜尋或建立選項",
|
"panelTitle": "搜尋或建立選項",
|
||||||
"searchOption": "搜尋選項"
|
"searchOption": "搜尋選項"
|
||||||
},
|
},
|
||||||
"menuName": "網格"
|
"menuName": "網格"
|
||||||
|
@ -177,7 +177,7 @@ class _Title extends StatelessWidget {
|
|||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 6),
|
padding: const EdgeInsets.symmetric(horizontal: 6),
|
||||||
child: FlowyText.medium(
|
child: FlowyText.medium(
|
||||||
LocaleKeys.grid_selectOption_pannelTitle.tr(),
|
LocaleKeys.grid_selectOption_panelTitle.tr(),
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: theme.shader3,
|
color: theme.shader3,
|
||||||
),
|
),
|
||||||
|
@ -167,7 +167,7 @@ class _FieldNameTextFieldState extends State<_FieldNameTextField> {
|
|||||||
},
|
},
|
||||||
child: BlocBuilder<FieldEditorBloc, FieldEditorState>(
|
child: BlocBuilder<FieldEditorBloc, FieldEditorState>(
|
||||||
builder: (context, state) {
|
builder: (context, state) {
|
||||||
listenOnPopoverChhanged(context);
|
listenOnPopoverChanged(context);
|
||||||
|
|
||||||
return RoundedInputField(
|
return RoundedInputField(
|
||||||
height: 36,
|
height: 36,
|
||||||
@ -191,7 +191,7 @@ class _FieldNameTextFieldState extends State<_FieldNameTextField> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void listenOnPopoverChhanged(BuildContext context) {
|
void listenOnPopoverChanged(BuildContext context) {
|
||||||
if (_popoverCallback != null) {
|
if (_popoverCallback != null) {
|
||||||
widget.popoverMutex.removePopoverStateListener(_popoverCallback!);
|
widget.popoverMutex.removePopoverStateListener(_popoverCallback!);
|
||||||
}
|
}
|
||||||
|
@ -139,7 +139,7 @@ class SelectOptionColorList extends StatelessWidget {
|
|||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
height: GridSize.typeOptionItemHeight,
|
height: GridSize.typeOptionItemHeight,
|
||||||
child: FlowyText.medium(
|
child: FlowyText.medium(
|
||||||
LocaleKeys.grid_selectOption_colorPannelTitle.tr(),
|
LocaleKeys.grid_selectOption_colorPanelTitle.tr(),
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
textAlign: TextAlign.left,
|
textAlign: TextAlign.left,
|
||||||
),
|
),
|
||||||
|
@ -2,7 +2,6 @@ import 'package:app_flowy/plugins/grid/application/setting/setting_bloc.dart';
|
|||||||
import 'package:easy_localization/easy_localization.dart';
|
import 'package:easy_localization/easy_localization.dart';
|
||||||
import 'package:flowy_infra/image.dart';
|
import 'package:flowy_infra/image.dart';
|
||||||
import 'package:flowy_infra/theme.dart';
|
import 'package:flowy_infra/theme.dart';
|
||||||
import 'package:flowy_infra_ui/flowy_infra_ui.dart';
|
|
||||||
import 'package:flowy_infra_ui/style_widget/button.dart';
|
import 'package:flowy_infra_ui/style_widget/button.dart';
|
||||||
import 'package:flowy_infra_ui/style_widget/scrolling/styled_list.dart';
|
import 'package:flowy_infra_ui/style_widget/scrolling/styled_list.dart';
|
||||||
import 'package:flowy_infra_ui/style_widget/text.dart';
|
import 'package:flowy_infra_ui/style_widget/text.dart';
|
||||||
|
@ -1,63 +0,0 @@
|
|||||||
import 'package:flowy_infra_ui/flowy_infra_ui.dart';
|
|
||||||
import 'package:flowy_infra_ui/widget/rounded_input_field.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
import 'package:window_size/window_size.dart';
|
|
||||||
|
|
||||||
class FlowyPoppuWindow extends StatelessWidget {
|
|
||||||
final Widget child;
|
|
||||||
const FlowyPoppuWindow({Key? key, required this.child}) : super(key: key);
|
|
||||||
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return Material(
|
|
||||||
type: MaterialType.transparency,
|
|
||||||
child: child,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Future<void> show(
|
|
||||||
BuildContext context, {
|
|
||||||
required Widget child,
|
|
||||||
required Size size,
|
|
||||||
}) async {
|
|
||||||
final window = await getWindowInfo();
|
|
||||||
// ignore: use_build_context_synchronously
|
|
||||||
FlowyOverlay.of(context).insertWithRect(
|
|
||||||
widget: FlowyPoppuWindow(child: child),
|
|
||||||
identifier: 'FlowyPoppuWindow',
|
|
||||||
anchorPosition: Offset(-size.width / 2.0, -size.height / 2.0),
|
|
||||||
anchorSize: window.frame.size,
|
|
||||||
anchorDirection: AnchorDirection.center,
|
|
||||||
style: FlowyOverlayStyle(blur: false),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class PopupTextField extends StatelessWidget {
|
|
||||||
final void Function(String) textDidChange;
|
|
||||||
const PopupTextField({
|
|
||||||
Key? key,
|
|
||||||
required this.textDidChange,
|
|
||||||
}) : super(key: key);
|
|
||||||
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return RoundedInputField(
|
|
||||||
style: const TextStyle(fontSize: 14, fontWeight: FontWeight.w500),
|
|
||||||
hintText: '',
|
|
||||||
normalBorderColor: const Color(0xffbdbdbd),
|
|
||||||
onChanged: textDidChange,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void show(
|
|
||||||
{required BuildContext context,
|
|
||||||
required Size size,
|
|
||||||
required void Function(String) textDidChange}) {
|
|
||||||
FlowyPoppuWindow.show(
|
|
||||||
context,
|
|
||||||
size: size,
|
|
||||||
child: PopupTextField(textDidChange: textDidChange),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
Reference in New Issue
Block a user