From e5c7ca715b562c435e97cf4c14bc7327953fa702 Mon Sep 17 00:00:00 2001 From: Luke Walton Date: Wed, 8 May 2024 15:15:23 +0100 Subject: [PATCH] chore: update to match internal repo (#14) Squashed / Merged PR fix: [TM-42004] added set to hold compress ext for videos fix: [TM-42004] added set to hold compress ext for videos fix: [TM-42004] added flv to set fix: [TM-42004] optimized code to throw exception fix:[TM-34144] Changed the background color to white and added boundary to the cells fix:[TM-34144] Changed the background color to white and added boundary to the cells fix:[TM-34144] Code improvement-> Changed the background color to primary surface color fix:[TM-34144] Code improvement-> Changed the border width to 1.5 fix: [TM-42654] Show error message when maximum attachment limit reached fix: TM-42498 : MYWORK 23.11.1 [UK/ROI] - Embedded Wistia videos not visible on mobile app fix: [TM-42656] Allow Multiple Gif files to send in filePicker fix: [TM-42004] removed flv as supported file for compression fix: update quill. Readonly prop moves to quill controller deps: update package dependencies. deps: zeta_flutter: 0.8.1 chore: autoformat json files ci: remove check from publish action --- .github/workflows/on-release.yml | 5 +- .../ApplicationResources_ar_SA.json | 1 + .../ApplicationResources_bg_BG.json | 1 + .../ApplicationResources_bs_BA.json | 1 + .../ApplicationResources_cs_CZ.json | 1 + .../ApplicationResources_da_DK.json | 1 + .../ApplicationResources_de_AT.json | 1 + .../ApplicationResources_de_BE.json | 1 + .../ApplicationResources_de_CH.json | 1 + .../ApplicationResources_de_DE.json | 1 + .../ApplicationResources_el_GR.json | 1 + .../ApplicationResources_en_CA.json | 1 + .../ApplicationResources_en_GB.json | 1 + .../ApplicationResources_en_US.json | 1 + .../ApplicationResources_es_CL.json | 1 + .../ApplicationResources_es_EC.json | 1 + .../ApplicationResources_es_ES.json | 1 + .../ApplicationResources_es_HN.json | 182 ++++++++++++++++++ .../ApplicationResources_es_MX.json | 1 + .../ApplicationResources_es_PE.json | 1 + .../ApplicationResources_es_PR.json | 1 + .../ApplicationResources_es_UY.json | 1 + .../ApplicationResources_fi_FI.json | 1 + .../ApplicationResources_fr_BE.json | 1 + .../ApplicationResources_fr_CA.json | 1 + .../ApplicationResources_fr_CH.json | 1 + .../ApplicationResources_fr_FR.json | 1 + .../ApplicationResources_hr_HR.json | 1 + .../ApplicationResources_hu_HU.json | 1 + .../ApplicationResources_in_ID.json | 1 + .../ApplicationResources_it_IT.json | 1 + .../ApplicationResources_ja_JP.json | 1 + .../ApplicationResources_ka_GE.json | 1 + .../ApplicationResources_ko_KR.json | 1 + .../ApplicationResources_lt_LT.json | 1 + .../ApplicationResources_lv_LV.json | 1 + .../ApplicationResources_mk_MK.json | 1 + .../ApplicationResources_nb_NO.json | 1 + .../ApplicationResources_nl_NL.json | 1 + .../ApplicationResources_pl_PL.json | 1 + .../ApplicationResources_pt_BR.json | 1 + .../ApplicationResources_pt_PT.json | 1 + .../ApplicationResources_ro_RO.json | 1 + .../ApplicationResources_ru_RU.json | 1 + .../ApplicationResources_sk_SK.json | 1 + .../ApplicationResources_sl_SI.json | 1 + .../ApplicationResources_sq_AL.json | 1 + .../ApplicationResources_sr_BA.json | 1 + .../ApplicationResources_sv_SE.json | 1 + .../ApplicationResources_th_TH.json | 1 + .../ApplicationResources_tl_PH.json | 1 + .../ApplicationResources_tr_TR.json | 1 + .../ApplicationResources_uk_UK.json | 1 + .../ApplicationResources_vi_VN.json | 1 + .../ApplicationResources_zh_CN.json | 1 + .../ApplicationResources_zh_HK.json | 1 + example/android/app/build.gradle | 18 +- example/android/build.gradle | 13 -- example/android/settings.gradle | 30 ++- example/ios/Podfile.lock | 51 +++-- example/ios/Runner.xcodeproj/project.pbxproj | 19 +- .../pages/components/quill_editor_demo.dart | 1 - example/macos/Podfile.lock | 14 +- example/pubspec.yaml | 5 +- lib/assets/strings/ar.json | 1 + lib/assets/strings/bg.json | 1 + lib/assets/strings/bs.json | 1 + lib/assets/strings/cs.json | 1 + lib/assets/strings/da.json | 1 + lib/assets/strings/de.json | 1 + lib/assets/strings/de_AT.json | 1 + lib/assets/strings/de_BE.json | 1 + lib/assets/strings/de_CH.json | 1 + lib/assets/strings/el.json | 1 + lib/assets/strings/en.json | 1 + lib/assets/strings/en_CA.json | 1 + lib/assets/strings/en_GB.json | 1 + lib/assets/strings/es.json | 1 + lib/assets/strings/es_CL.json | 1 + lib/assets/strings/es_EC.json | 1 + lib/assets/strings/es_ES.json | 1 + lib/assets/strings/es_PE.json | 1 + lib/assets/strings/es_PR.json | 1 + lib/assets/strings/es_UY.json | 1 + lib/assets/strings/fi.json | 1 + lib/assets/strings/fr.json | 1 + lib/assets/strings/fr_BE.json | 1 + lib/assets/strings/fr_CA.json | 1 + lib/assets/strings/fr_CH.json | 1 + lib/assets/strings/hr.json | 1 + lib/assets/strings/hu.json | 1 + lib/assets/strings/in.json | 1 + lib/assets/strings/it.json | 1 + lib/assets/strings/ja.json | 1 + lib/assets/strings/ka.json | 1 + lib/assets/strings/ko.json | 1 + lib/assets/strings/lt.json | 1 + lib/assets/strings/lv.json | 1 + lib/assets/strings/mk.json | 1 + lib/assets/strings/nb.json | 1 + lib/assets/strings/nl.json | 1 + lib/assets/strings/pl.json | 1 + lib/assets/strings/pt.json | 1 + lib/assets/strings/pt_BR.json | 1 + lib/assets/strings/ro.json | 1 + lib/assets/strings/ru.json | 1 + lib/assets/strings/sk.json | 1 + lib/assets/strings/sl.json | 1 + lib/assets/strings/sq.json | 1 + lib/assets/strings/sr.json | 1 + lib/assets/strings/sv.json | 1 + lib/assets/strings/th.json | 1 + lib/assets/strings/tl.json | 1 + lib/assets/strings/tr.json | 1 + lib/assets/strings/uk.json | 1 + lib/assets/strings/vi.json | 1 + lib/assets/strings/zh.json | 1 + lib/assets/strings/zh_HK.json | 1 + lib/src/components/molecules/block_table.dart | 85 ++++++-- .../organisms/file_picker/file_compress.dart | 53 +++-- .../organisms/file_picker/file_picker.dart | 62 ++++-- .../organisms/file_picker/giphy_picker.dart | 132 +++++++++---- .../organisms/html_preview/html_body.dart | 1 + .../organisms/quill_editor/quill_editor.dart | 1 - pubspec.yaml | 11 +- 125 files changed, 648 insertions(+), 143 deletions(-) create mode 100644 _localizations/ApplicationResources_es_HN.json diff --git a/.github/workflows/on-release.yml b/.github/workflows/on-release.yml index fd52dba..ab23f5c 100644 --- a/.github/workflows/on-release.yml +++ b/.github/workflows/on-release.yml @@ -21,8 +21,9 @@ jobs: run: | dart format --fix . dart fix --apply - - name: Check Publish Warnings - run: dart pub publish --dry-run + # TODO: Package uses pre-release packages, so this always fails. + # - name: Check Publish Warnings + # run: dart pub publish --dry-run - name: Publish run: dart pub publish --force deploy: diff --git a/_localizations/ApplicationResources_ar_SA.json b/_localizations/ApplicationResources_ar_SA.json index 6b8ca2e..94c6e0a 100644 --- a/_localizations/ApplicationResources_ar_SA.json +++ b/_localizations/ApplicationResources_ar_SA.json @@ -1,6 +1,7 @@ { "ACCENT": "لهجة", "ACTION": "عمل", + "ADD": "إضافة", "ADD_URL": "إضافة رابط", "ALIGN_CENTER": "محاذاة المركز", "ALIGN_LEFT": "محاذاة إلى اليسار", diff --git a/_localizations/ApplicationResources_bg_BG.json b/_localizations/ApplicationResources_bg_BG.json index 573d55a..0f29e47 100644 --- a/_localizations/ApplicationResources_bg_BG.json +++ b/_localizations/ApplicationResources_bg_BG.json @@ -1,6 +1,7 @@ { "ACCENT": "Акцент", "ACTION": "действие", + "ADD": "Добави", "ADD_URL": "Добавете URL адрес", "ALIGN_CENTER": "Подравнете центъра", "ALIGN_LEFT": "Подравнете вляво", diff --git a/_localizations/ApplicationResources_bs_BA.json b/_localizations/ApplicationResources_bs_BA.json index 1925776..1d315b6 100644 --- a/_localizations/ApplicationResources_bs_BA.json +++ b/_localizations/ApplicationResources_bs_BA.json @@ -1,6 +1,7 @@ { "ACCENT": "Naglasak", "ACTION": "Akcija", + "ADD": "Dodati", "ADD_URL": "Dodajte URL", "ALIGN_CENTER": "Poravnajte centar", "ALIGN_LEFT": "Poravnajte lijevo", diff --git a/_localizations/ApplicationResources_cs_CZ.json b/_localizations/ApplicationResources_cs_CZ.json index 4b479dc..b61242a 100644 --- a/_localizations/ApplicationResources_cs_CZ.json +++ b/_localizations/ApplicationResources_cs_CZ.json @@ -1,6 +1,7 @@ { "ACCENT": "Přízvuk", "ACTION": "Akce", + "ADD": "Přidat", "ADD_URL": "Přidat adresu URL", "ALIGN_CENTER": "Zarovnat na střed", "ALIGN_LEFT": "Zarovnat vlevo", diff --git a/_localizations/ApplicationResources_da_DK.json b/_localizations/ApplicationResources_da_DK.json index 9992276..8f48630 100644 --- a/_localizations/ApplicationResources_da_DK.json +++ b/_localizations/ApplicationResources_da_DK.json @@ -1,6 +1,7 @@ { "ACCENT": "Accent", "ACTION": "Handling", + "ADD": "Tilføj", "ADD_URL": "Tilføj URL", "ALIGN_CENTER": "Juster til midt", "ALIGN_LEFT": "Juster til venstre", diff --git a/_localizations/ApplicationResources_de_AT.json b/_localizations/ApplicationResources_de_AT.json index a482c53..cc93df9 100644 --- a/_localizations/ApplicationResources_de_AT.json +++ b/_localizations/ApplicationResources_de_AT.json @@ -1,6 +1,7 @@ { "ACCENT": "Akzent", "ACTION": "Aktion", + "ADD": "Hinzufügen", "ADD_URL": "URL hinzufügen", "ALIGN_CENTER": "Zentrieren", "ALIGN_LEFT": "Linksbündig", diff --git a/_localizations/ApplicationResources_de_BE.json b/_localizations/ApplicationResources_de_BE.json index 487d060..67df050 100644 --- a/_localizations/ApplicationResources_de_BE.json +++ b/_localizations/ApplicationResources_de_BE.json @@ -1,6 +1,7 @@ { "ACCENT": "Akzent", "ACTION": "Aktion", + "ADD": "Hinzufügen", "ADD_URL": "URL hinzufügen", "ALIGN_CENTER": "Im Zentrum anordnen", "ALIGN_LEFT": "Linksbündig", diff --git a/_localizations/ApplicationResources_de_CH.json b/_localizations/ApplicationResources_de_CH.json index 91e3cdd..988e42f 100644 --- a/_localizations/ApplicationResources_de_CH.json +++ b/_localizations/ApplicationResources_de_CH.json @@ -1,6 +1,7 @@ { "ACCENT": "Akzent", "ACTION": "Aktion", + "ADD": "Hinzufügen", "ADD_URL": "URL hinzufügen", "ALIGN_CENTER": "Im Zentrum anordnen", "ALIGN_LEFT": "Linksbündig", diff --git a/_localizations/ApplicationResources_de_DE.json b/_localizations/ApplicationResources_de_DE.json index a482c53..cc93df9 100644 --- a/_localizations/ApplicationResources_de_DE.json +++ b/_localizations/ApplicationResources_de_DE.json @@ -1,6 +1,7 @@ { "ACCENT": "Akzent", "ACTION": "Aktion", + "ADD": "Hinzufügen", "ADD_URL": "URL hinzufügen", "ALIGN_CENTER": "Zentrieren", "ALIGN_LEFT": "Linksbündig", diff --git a/_localizations/ApplicationResources_el_GR.json b/_localizations/ApplicationResources_el_GR.json index 67614dc..28252db 100644 --- a/_localizations/ApplicationResources_el_GR.json +++ b/_localizations/ApplicationResources_el_GR.json @@ -1,6 +1,7 @@ { "ACCENT": "Προφορά", "ACTION": "Δράση", + "ADD": "Προσθέτω", "ADD_URL": "Προσθήκη διεύθυνσης URL", "ALIGN_CENTER": "Ευθυγραμμίστε το κέντρο", "ALIGN_LEFT": "Στοίχιση αριστερά", diff --git a/_localizations/ApplicationResources_en_CA.json b/_localizations/ApplicationResources_en_CA.json index 70b0b30..7e4b9a0 100644 --- a/_localizations/ApplicationResources_en_CA.json +++ b/_localizations/ApplicationResources_en_CA.json @@ -1,6 +1,7 @@ { "ACCENT": "Accent", "ACTION": "Action", + "ADD": "Add", "ADD_URL": "Add URL", "ALIGN_CENTER": "Align center", "ALIGN_LEFT": "Align left", diff --git a/_localizations/ApplicationResources_en_GB.json b/_localizations/ApplicationResources_en_GB.json index 66baa67..3380844 100644 --- a/_localizations/ApplicationResources_en_GB.json +++ b/_localizations/ApplicationResources_en_GB.json @@ -1,6 +1,7 @@ { "ACCENT": "Accent", "ACTION": "Action", + "ADD": "Add", "ADD_URL": "Add URL", "ALIGN_CENTER": "Align centre", "ALIGN_LEFT": "Align left", diff --git a/_localizations/ApplicationResources_en_US.json b/_localizations/ApplicationResources_en_US.json index f7f1e17..20741a5 100644 --- a/_localizations/ApplicationResources_en_US.json +++ b/_localizations/ApplicationResources_en_US.json @@ -1,6 +1,7 @@ { "ACCENT": "Accent", "ACTION": "Action", + "ADD": "Add", "ADD_URL": "Add URL", "ALIGN_CENTER": "Align center", "ALIGN_LEFT": "Align left", diff --git a/_localizations/ApplicationResources_es_CL.json b/_localizations/ApplicationResources_es_CL.json index 11614ce..61a4e33 100644 --- a/_localizations/ApplicationResources_es_CL.json +++ b/_localizations/ApplicationResources_es_CL.json @@ -1,6 +1,7 @@ { "ACCENT": "Acento", "ACTION": "Acción", + "ADD": "Agregar", "ADD_URL": "Agregar URL", "ALIGN_CENTER": "Alinear al centro", "ALIGN_LEFT": "Alinear a la izquierda", diff --git a/_localizations/ApplicationResources_es_EC.json b/_localizations/ApplicationResources_es_EC.json index cbf605c..6440774 100644 --- a/_localizations/ApplicationResources_es_EC.json +++ b/_localizations/ApplicationResources_es_EC.json @@ -1,6 +1,7 @@ { "ACCENT": "Acento", "ACTION": "Acción", + "ADD": "Agregar", "ADD_URL": "Agregar URL", "ALIGN_CENTER": "Alinear al centro", "ALIGN_LEFT": "Alinear a la izquierda", diff --git a/_localizations/ApplicationResources_es_ES.json b/_localizations/ApplicationResources_es_ES.json index 84b8ad3..aa906e4 100644 --- a/_localizations/ApplicationResources_es_ES.json +++ b/_localizations/ApplicationResources_es_ES.json @@ -1,6 +1,7 @@ { "ACCENT": "Acento", "ACTION": "Acción", + "ADD": "Añadir", "ADD_URL": "Añadir URL", "ALIGN_CENTER": "Alinear en el centro", "ALIGN_LEFT": "Alinear a la izquierda", diff --git a/_localizations/ApplicationResources_es_HN.json b/_localizations/ApplicationResources_es_HN.json new file mode 100644 index 0000000..aa906e4 --- /dev/null +++ b/_localizations/ApplicationResources_es_HN.json @@ -0,0 +1,182 @@ +{ + "ACCENT": "Acento", + "ACTION": "Acción", + "ADD": "Añadir", + "ADD_URL": "Añadir URL", + "ALIGN_CENTER": "Alinear en el centro", + "ALIGN_LEFT": "Alinear a la izquierda", + "ALIGN_RIGHT": "Alinear a la derecha", + "ALL": "Todo", + "ATTACHED_FILE": "Archivo adjunto", + "ATTACH_MAXSIZE_VALIDATE": "El tamaño del archivo debe ser inferior a {0}", + "BACKGROUND_COLOR": "Color de fondo", + "BOLD": "Atrevido", + "BULLET_LIST": "Lista de viñetas", + "Blur": "Difuminar", + "Blur Radius": "Radio de desenfoque", + "Brush": "Cepillar", + "CAMERA": "Cámara", + "CANCEL": "Cancelar", + "CHANGE_CASE": "Cambiar caso", + "CHANGE_IMAGE": "Cambiar imagen", + "CHAR_LEFT": "Caracteres restantes {0}", + "CHECKED_LIST": "lista comprobada", + "CHOOSE_AUDIO": "elegir sonido", + "CHOOSE_COLOR": "Elige un color", + "CHOOSE_FILE": "Elija el archivo", + "CHOOSE_FILE_URL_MSG": "¡Elija un archivo o ingrese una URL de archivo!", + "CHOOSE_IMAGE": "elegir imagen", + "CHOOSE_IMG_URL_MSG": "¡Elija una imagen o ingrese una URL de imagen!", + "CHOOSE_VIDEO": "elegir vídeo", + "CLEAR": "Borrar", + "CLEAR_FORMAT": "Borrar formato", + "CLEAR_FORMATTING": "Formato claro", + "CLOSE": "Cerrar", + "CODE_BLOCK": "bloque de código", + "COLOR": "Color", + "COMPLETE_EDITING": "Edición completa", + "COURIER": "mensajero", + "CROP": "Recortar", + "CUSTOM": "Personalizado", + "Color Opacity": "Opacidad de color", + "Crop": "Recortar", + "DECREASE_INDENT": "Disminuir sangría", + "DEFAULT": "Valor predeterminado", + "DELETE": "Eliminar", + "DELETE_ATTACHMENT": "Eliminar archivo adjunto", + "DONE": "Hecho", + "EDIT": "Editar", + "EDITOR_CIRCLE": "Círculo", + "EDITOR_CODE": "código", + "EDITOR_DISC": "Desct", + "EDITOR_HEADER_1": "Encabezado 1", + "EDITOR_HEADER_2": "Encabezado 2", + "EDITOR_HEADER_3": "Encabezado 3", + "EDITOR_HEADER_4": "Encabezado 4", + "EDITOR_HEADER_5": "Encabezado 5", + "EDITOR_HEADER_6": "Encabezado 6", + "EDITOR_NORMAL": "normal", + "EDITOR_PT": "punto", + "EDITOR_PX": "px", + "EDITOR_QUOTE": "cita", + "EDITOR_SQUARE": "Cuadrado", + "EDITOR_TEXT": "Texto", + "ENTER": "INGRESAR", + "ESCAPE": "Escapar", + "Emoji": "emojis", + "FILE": "Archivo", + "FILE_COMPRESSING_ER": "Ocurrió un error al comprimir un archivo", + "FILE_DUPLICATE_ER": "El archivo ya está adjunto. Por favor, elija un archivo diferente", + "FILE_OR_URL_MSG": "Ingrese un archivo o una URL de archivo, ¡no ambos!", + "FILE_PIXEL_SIZE_ER": "El tamaño de píxel del archivo debe ser inferior a {0}", + "FILE_PROCESSING_ER": "Ocurrió un error al procesar un archivo", + "FILE_SIZE_CALCULATING_ER": "Se produjo un error al calcular el tamaño de un archivo", + "FILE_UNSUPPORTED": "Este tipo de archivo no está permitido", + "FLIP": "Dar la vuelta", + "FONT_COLOR": "Color de fuente", + "FONT_FAMILY": "Familia de fuentes", + "FONT_SIZE": "Tamaño de fuente", + "FROM": "De", + "Filter": "Filtro", + "Flip": "Dar la vuelta", + "Freeform": "Forma libre", + "GALLERY": "Galería", + "GIF": "Gif", + "HEADER_STYLE": "Estilo de encabezado", + "HELP": "Ayuda", + "HEX": "Maleficio", + "HIDE": "Ocultar", + "IMAGE_OR_URL_MSG": "Ingrese una imagen o una URL de imagen, ¡no ambas!", + "IMAGE_PICKER_SEMANTIC_SELECTED": "Selector de imágenes. Imagen seleccionada", + "IMAGE_PICKER_SEMANTIC_UNSELECTED": "Selector de imágenes. Ninguna imagen seleccionada", + "IMG_URL_MSG": "¡Por favor ingrese una URL de imagen!", + "INCREASE_INDENT": "Aumentar sangría", + "INLINE_CODE": "código en línea", + "INSERT_AUDIO": "Insertar audio", + "INSERT_FILE": "Insertar archivo", + "INSERT_IMAGE": "Insertar imagen", + "INSERT_LINK": "Insertar el link", + "INSERT_PARAGRAPH": "Insertar párrafo", + "INSERT_TABLE": "Insertar tabla", + "INSERT_URL": "Insertar URL", + "INSERT_VIDEO": "Insertar vídeo", + "ITALIC": "Cursiva", + "Insert Your Message": "Inserta tu mensaje", + "JUSTIFY_WIDTH": "Justificar el ancho de ganancia", + "KEY_COMBINATION": "combinación de teclas", + "LINK": "Enlace", + "LINK_NAME": "Nombre del enlace", + "LINK_URL": "URL de enlace", + "LOWERCASE": "minúsculas", + "LOWER_ALPHA": "alfa inferior", + "LOWER_ROMAN": "bajo romano", + "MATERIAL": "Material", + "MAX_ATTACH_MSG": "Límite máximo de archivos adjuntos alcanzado", + "MEDIA_ERROR": "Error al cargar medios.", + "MONTH": "Mes", + "NO_RESULTS": "No hay resultados", + "NUMBERED": "Numerado", + "NUMBERED_LIST": "lista numerada", + "OK": "Aceptar", + "OPEN_IN_NEW_WINDOW": "Abrir en Nueva ventana", + "PICK_GIF": "elige un gif", + "PICK_IMAGE": "Elegir imagen", + "PRIMARY": "Primario", + "READ_LESS": "Leer menos", + "READ_MORE": "Leer más", + "REDO": "Rehacer", + "REDO_MSG": "Rehacer el último comando", + "REMOVE": "Eliminar", + "RESET": "Restablecer", + "REST_COLOR_MSG": "Restablecer al color predeterminado", + "ROTATE_LEFT": "Girar a hacia la izquierda", + "ROTATE_RIGHT": "Girar hacia la derecha", + "Reset": "Restablecer", + "Rotate left": "Girar a la izquierda", + "Rotate right": "Gira a la derecha", + "SANS_SERIF": "sans serif", + "SAVE": "Guardar", + "SEARCH": "Buscar", + "SEARCH_GIF": "Busca todos los GIF", + "SELECT_COLOR": "Seleccionar el color", + "SELECT_DATE": "Seleccione fecha", + "SELECT_FROM_FILES": "Seleccionar de archivos", + "SELECT_STL_MSG": "Seleccionar estilo de lista", + "SENTENCE_CASE": "Caso de sentencia", + "SET_COLOR": "Establecer color", + "SHOW": "Mostrar", + "SMALL": "Pequeño", + "STRIKE_THROUGH": "Penetrar", + "STR_UNDO": "Deshacer", + "SUBSCRIPT": "Subíndice", + "SUPERSCRIPT": "Superíndice", + "SWIPE_TO_REVEAL_SEMANTIC": "Desliza hacia la izquierda para revelar acciones", + "Select Emoji": "Seleccionar emoji", + "Slider Color": "Color del control deslizante", + "Slider White Black Color": "Control deslizante Blanco Negro Color", + "Square": "Cuadrado", + "TAB": "PESTAÑA", + "TABLE_CONTENT": "Haga clic para ver el contenido de la tabla", + "TEXT_ALIGN": "Texto alineado", + "TEXT_DIRECTION": "Dirección del texto", + "TEXT_TO_DISPLAY": "Texto para mostrar", + "TIMES_NEW_ROMAN": "Times New Roman", + "TITLE_CASE": "Titulo del caso", + "TO": "Para", + "Text": "Texto", + "UNDERLINE": "Subrayar", + "UNDO_MSG": "Deshacer el último comando", + "UNKNOWN": "Desconocido", + "UNTAB": "desabrochar", + "UPPERCASE": "MAYÚSCULAS", + "UPPER_ALPHA": "alfa superior", + "UPPER_ROMAN": "romano superior", + "URL": "URL", + "URL_DUPLICATE_ER": "La URL ya está adjunta. Ingrese una URL diferente", + "URL_INVALID_ER": "Introduce una URL válida", + "URL_MSG": "¡Por favor ingrese una URL!", + "VIDEO": "Vídeo", + "VIEW": "Ver", + "WEEK": "Semana", + "WHEEL": "Rueda" +} \ No newline at end of file diff --git a/_localizations/ApplicationResources_es_MX.json b/_localizations/ApplicationResources_es_MX.json index ef01c21..89ef6fb 100644 --- a/_localizations/ApplicationResources_es_MX.json +++ b/_localizations/ApplicationResources_es_MX.json @@ -1,6 +1,7 @@ { "ACCENT": "Acento", "ACTION": "Acción", + "ADD": "Añadir", "ADD_URL": "Agregar URL", "ALIGN_CENTER": "Alinear al centro", "ALIGN_LEFT": "Alinear a la izquierda", diff --git a/_localizations/ApplicationResources_es_PE.json b/_localizations/ApplicationResources_es_PE.json index cbf605c..6440774 100644 --- a/_localizations/ApplicationResources_es_PE.json +++ b/_localizations/ApplicationResources_es_PE.json @@ -1,6 +1,7 @@ { "ACCENT": "Acento", "ACTION": "Acción", + "ADD": "Agregar", "ADD_URL": "Agregar URL", "ALIGN_CENTER": "Alinear al centro", "ALIGN_LEFT": "Alinear a la izquierda", diff --git a/_localizations/ApplicationResources_es_PR.json b/_localizations/ApplicationResources_es_PR.json index cbf605c..6440774 100644 --- a/_localizations/ApplicationResources_es_PR.json +++ b/_localizations/ApplicationResources_es_PR.json @@ -1,6 +1,7 @@ { "ACCENT": "Acento", "ACTION": "Acción", + "ADD": "Agregar", "ADD_URL": "Agregar URL", "ALIGN_CENTER": "Alinear al centro", "ALIGN_LEFT": "Alinear a la izquierda", diff --git a/_localizations/ApplicationResources_es_UY.json b/_localizations/ApplicationResources_es_UY.json index cbf605c..6440774 100644 --- a/_localizations/ApplicationResources_es_UY.json +++ b/_localizations/ApplicationResources_es_UY.json @@ -1,6 +1,7 @@ { "ACCENT": "Acento", "ACTION": "Acción", + "ADD": "Agregar", "ADD_URL": "Agregar URL", "ALIGN_CENTER": "Alinear al centro", "ALIGN_LEFT": "Alinear a la izquierda", diff --git a/_localizations/ApplicationResources_fi_FI.json b/_localizations/ApplicationResources_fi_FI.json index 1c0e748..8e9ad20 100644 --- a/_localizations/ApplicationResources_fi_FI.json +++ b/_localizations/ApplicationResources_fi_FI.json @@ -1,6 +1,7 @@ { "ACCENT": "Aksentti", "ACTION": "Toiminto", + "ADD": "Lisää", "ADD_URL": "Lisää URL", "ALIGN_CENTER": "Tasaa keskelle", "ALIGN_LEFT": "Tasaa vasemmalle", diff --git a/_localizations/ApplicationResources_fr_BE.json b/_localizations/ApplicationResources_fr_BE.json index 46e4cb8..aaea9dd 100644 --- a/_localizations/ApplicationResources_fr_BE.json +++ b/_localizations/ApplicationResources_fr_BE.json @@ -1,6 +1,7 @@ { "ACCENT": "Accent", "ACTION": "action", + "ADD": "Ajouter", "ADD_URL": "Ajouter l'URL", "ALIGN_CENTER": "Aligner le centre", "ALIGN_LEFT": "Alignez à gauche", diff --git a/_localizations/ApplicationResources_fr_CA.json b/_localizations/ApplicationResources_fr_CA.json index df2d7bf..27e63b0 100644 --- a/_localizations/ApplicationResources_fr_CA.json +++ b/_localizations/ApplicationResources_fr_CA.json @@ -1,6 +1,7 @@ { "ACCENT": "Accent", "ACTION": "Action", + "ADD": "Ajouter", "ADD_URL": "Ajouter une URL", "ALIGN_CENTER": "Centrer", "ALIGN_LEFT": "Aligner à gauche", diff --git a/_localizations/ApplicationResources_fr_CH.json b/_localizations/ApplicationResources_fr_CH.json index 46e4cb8..aaea9dd 100644 --- a/_localizations/ApplicationResources_fr_CH.json +++ b/_localizations/ApplicationResources_fr_CH.json @@ -1,6 +1,7 @@ { "ACCENT": "Accent", "ACTION": "action", + "ADD": "Ajouter", "ADD_URL": "Ajouter l'URL", "ALIGN_CENTER": "Aligner le centre", "ALIGN_LEFT": "Alignez à gauche", diff --git a/_localizations/ApplicationResources_fr_FR.json b/_localizations/ApplicationResources_fr_FR.json index 5364abf..9db3bb9 100644 --- a/_localizations/ApplicationResources_fr_FR.json +++ b/_localizations/ApplicationResources_fr_FR.json @@ -1,6 +1,7 @@ { "ACCENT": "Accent", "ACTION": "Action", + "ADD": "Ajouter", "ADD_URL": "Ajouter une URL", "ALIGN_CENTER": "Centrer", "ALIGN_LEFT": "Aligner à gauche", diff --git a/_localizations/ApplicationResources_hr_HR.json b/_localizations/ApplicationResources_hr_HR.json index 65ec798..34628d7 100644 --- a/_localizations/ApplicationResources_hr_HR.json +++ b/_localizations/ApplicationResources_hr_HR.json @@ -1,6 +1,7 @@ { "ACCENT": "Naglasak", "ACTION": "Radnja", + "ADD": "Dodati", "ADD_URL": "Dodajte URL", "ALIGN_CENTER": "Poravnajte sredinu", "ALIGN_LEFT": "Poravnajte lijevo", diff --git a/_localizations/ApplicationResources_hu_HU.json b/_localizations/ApplicationResources_hu_HU.json index 59eb223..9c12e44 100644 --- a/_localizations/ApplicationResources_hu_HU.json +++ b/_localizations/ApplicationResources_hu_HU.json @@ -1,6 +1,7 @@ { "ACCENT": "Hangsúly", "ACTION": "Művelet", + "ADD": "Hozzáadás", "ADD_URL": "URL-cím hozzáadása", "ALIGN_CENTER": "Középre igazítás", "ALIGN_LEFT": "Balra igazítás", diff --git a/_localizations/ApplicationResources_in_ID.json b/_localizations/ApplicationResources_in_ID.json index 3cf1673..421b03e 100644 --- a/_localizations/ApplicationResources_in_ID.json +++ b/_localizations/ApplicationResources_in_ID.json @@ -1,6 +1,7 @@ { "ACCENT": "Aksen", "ACTION": "Tindakan", + "ADD": "Menambahkan", "ADD_URL": "Tambahkan URL", "ALIGN_CENTER": "Sejajarkan tengah", "ALIGN_LEFT": "Rata kiri", diff --git a/_localizations/ApplicationResources_it_IT.json b/_localizations/ApplicationResources_it_IT.json index 7b8b4ae..4dab8f6 100644 --- a/_localizations/ApplicationResources_it_IT.json +++ b/_localizations/ApplicationResources_it_IT.json @@ -1,6 +1,7 @@ { "ACCENT": "Accento", "ACTION": "Azione", + "ADD": "Inserisci", "ADD_URL": "Aggiungi URL", "ALIGN_CENTER": "Allinea al centro", "ALIGN_LEFT": "Allineare a sinistra", diff --git a/_localizations/ApplicationResources_ja_JP.json b/_localizations/ApplicationResources_ja_JP.json index 0fcaf6d..7027b0e 100644 --- a/_localizations/ApplicationResources_ja_JP.json +++ b/_localizations/ApplicationResources_ja_JP.json @@ -1,6 +1,7 @@ { "ACCENT": "アクセント", "ACTION": "アクション", + "ADD": "追加する", "ADD_URL": "URLを追加", "ALIGN_CENTER": "中央に揃える", "ALIGN_LEFT": "左揃え", diff --git a/_localizations/ApplicationResources_ka_GE.json b/_localizations/ApplicationResources_ka_GE.json index 69f3c86..929ff45 100644 --- a/_localizations/ApplicationResources_ka_GE.json +++ b/_localizations/ApplicationResources_ka_GE.json @@ -1,6 +1,7 @@ { "ACCENT": "Აქცენტი", "ACTION": "მოქმედება", + "ADD": "დამატება", "ADD_URL": "დაამატეთ URL", "ALIGN_CENTER": "გასწორება ცენტრი", "ALIGN_LEFT": "გასწორება მარცხნივ", diff --git a/_localizations/ApplicationResources_ko_KR.json b/_localizations/ApplicationResources_ko_KR.json index d289af0..b2b361e 100644 --- a/_localizations/ApplicationResources_ko_KR.json +++ b/_localizations/ApplicationResources_ko_KR.json @@ -1,6 +1,7 @@ { "ACCENT": "악센트", "ACTION": "동작", + "ADD": "더하다", "ADD_URL": "URL 추가", "ALIGN_CENTER": "중앙 정렬", "ALIGN_LEFT": "왼쪽 정렬", diff --git a/_localizations/ApplicationResources_lt_LT.json b/_localizations/ApplicationResources_lt_LT.json index 324fde2..ef89941 100644 --- a/_localizations/ApplicationResources_lt_LT.json +++ b/_localizations/ApplicationResources_lt_LT.json @@ -1,6 +1,7 @@ { "ACCENT": "Akcentas", "ACTION": "Veiksmas", + "ADD": "Pridėti", "ADD_URL": "Pridėti URL", "ALIGN_CENTER": "Centrinis lygiavimas", "ALIGN_LEFT": "Kairysis lygiavimas", diff --git a/_localizations/ApplicationResources_lv_LV.json b/_localizations/ApplicationResources_lv_LV.json index a75b654..e8bb9d7 100644 --- a/_localizations/ApplicationResources_lv_LV.json +++ b/_localizations/ApplicationResources_lv_LV.json @@ -1,6 +1,7 @@ { "ACCENT": "Akcents", "ACTION": "Darbība", + "ADD": "Pievienot", "ADD_URL": "Pievienot URL adresi", "ALIGN_CENTER": "Izlīdzināt centrā", "ALIGN_LEFT": "Izlīdzināt pa kreisi", diff --git a/_localizations/ApplicationResources_mk_MK.json b/_localizations/ApplicationResources_mk_MK.json index a84e8ba..8f047e8 100644 --- a/_localizations/ApplicationResources_mk_MK.json +++ b/_localizations/ApplicationResources_mk_MK.json @@ -1,6 +1,7 @@ { "ACCENT": "Акцент", "ACTION": "Акција", + "ADD": "Додадете", "ADD_URL": "Додадете URL", "ALIGN_CENTER": "Порамнете го центарот", "ALIGN_LEFT": "Порамни лево", diff --git a/_localizations/ApplicationResources_nb_NO.json b/_localizations/ApplicationResources_nb_NO.json index 535552b..4748016 100644 --- a/_localizations/ApplicationResources_nb_NO.json +++ b/_localizations/ApplicationResources_nb_NO.json @@ -1,6 +1,7 @@ { "ACCENT": "Aksent", "ACTION": "Handling", + "ADD": "Legg til", "ADD_URL": "Legg til URL", "ALIGN_CENTER": "Midtstill loddrett", "ALIGN_LEFT": "Venstrejuster", diff --git a/_localizations/ApplicationResources_nl_NL.json b/_localizations/ApplicationResources_nl_NL.json index bb0788a..fa22a6f 100644 --- a/_localizations/ApplicationResources_nl_NL.json +++ b/_localizations/ApplicationResources_nl_NL.json @@ -1,6 +1,7 @@ { "ACCENT": "Accent", "ACTION": "Actie", + "ADD": "Toevoegen", "ADD_URL": "URL toevoegen", "ALIGN_CENTER": "Midden uitlijnen", "ALIGN_LEFT": "Links uitlijnen", diff --git a/_localizations/ApplicationResources_pl_PL.json b/_localizations/ApplicationResources_pl_PL.json index cb46815..fcb7c09 100644 --- a/_localizations/ApplicationResources_pl_PL.json +++ b/_localizations/ApplicationResources_pl_PL.json @@ -1,6 +1,7 @@ { "ACCENT": "Akcent", "ACTION": "Działanie", + "ADD": "Dodaj", "ADD_URL": "Dodaj URL", "ALIGN_CENTER": "Wyrównaj do środka", "ALIGN_LEFT": "Wyrównaj do lewej", diff --git a/_localizations/ApplicationResources_pt_BR.json b/_localizations/ApplicationResources_pt_BR.json index 84af8f3..7aaadc7 100644 --- a/_localizations/ApplicationResources_pt_BR.json +++ b/_localizations/ApplicationResources_pt_BR.json @@ -1,6 +1,7 @@ { "ACCENT": "Sotaque", "ACTION": "Ação", + "ADD": "Adicionar", "ADD_URL": "Adicionar URL", "ALIGN_CENTER": "Centralizar", "ALIGN_LEFT": "Alinhar à esquerda", diff --git a/_localizations/ApplicationResources_pt_PT.json b/_localizations/ApplicationResources_pt_PT.json index 3cf2613..04f8cd6 100644 --- a/_localizations/ApplicationResources_pt_PT.json +++ b/_localizations/ApplicationResources_pt_PT.json @@ -1,6 +1,7 @@ { "ACCENT": "Sotaque", "ACTION": "Ação", + "ADD": "Adicionar", "ADD_URL": "Adicionar URL", "ALIGN_CENTER": "Alinhar ao centro", "ALIGN_LEFT": "Alinhar à esquerda", diff --git a/_localizations/ApplicationResources_ro_RO.json b/_localizations/ApplicationResources_ro_RO.json index a7e4d4d..16761ca 100644 --- a/_localizations/ApplicationResources_ro_RO.json +++ b/_localizations/ApplicationResources_ro_RO.json @@ -1,6 +1,7 @@ { "ACCENT": "Accent", "ACTION": "Acțiune", + "ADD": "Adăuga", "ADD_URL": "Adaugă URL", "ALIGN_CENTER": "Aliniere la centru", "ALIGN_LEFT": "Alinia la stânga", diff --git a/_localizations/ApplicationResources_ru_RU.json b/_localizations/ApplicationResources_ru_RU.json index e99a580..1c2ac75 100644 --- a/_localizations/ApplicationResources_ru_RU.json +++ b/_localizations/ApplicationResources_ru_RU.json @@ -1,6 +1,7 @@ { "ACCENT": "Акцент", "ACTION": "действие", + "ADD": "добавлять", "ADD_URL": "Добавить сайт", "ALIGN_CENTER": "Выровнять по центру", "ALIGN_LEFT": "Выровнять по левому краю", diff --git a/_localizations/ApplicationResources_sk_SK.json b/_localizations/ApplicationResources_sk_SK.json index b3f7d7d..45159cc 100644 --- a/_localizations/ApplicationResources_sk_SK.json +++ b/_localizations/ApplicationResources_sk_SK.json @@ -1,6 +1,7 @@ { "ACCENT": "Prízvuk", "ACTION": "Akcia", + "ADD": "Pridať", "ADD_URL": "Pridať adresu URL", "ALIGN_CENTER": "Zarovnať v strede", "ALIGN_LEFT": "Zarovnať vľavo", diff --git a/_localizations/ApplicationResources_sl_SI.json b/_localizations/ApplicationResources_sl_SI.json index 8035751..4c724fb 100644 --- a/_localizations/ApplicationResources_sl_SI.json +++ b/_localizations/ApplicationResources_sl_SI.json @@ -1,6 +1,7 @@ { "ACCENT": "Naglas", "ACTION": "Dejanje", + "ADD": "Dodaj", "ADD_URL": "Dodajanje URL-ja", "ALIGN_CENTER": "Poravnaj na sredino", "ALIGN_LEFT": "Poravnaj levo", diff --git a/_localizations/ApplicationResources_sq_AL.json b/_localizations/ApplicationResources_sq_AL.json index d0b7504..915b90c 100644 --- a/_localizations/ApplicationResources_sq_AL.json +++ b/_localizations/ApplicationResources_sq_AL.json @@ -1,6 +1,7 @@ { "ACCENT": "Theksim", "ACTION": "Veprimi", + "ADD": "Shtoni", "ADD_URL": "Shto URL", "ALIGN_CENTER": "Rreshtoni qendrën", "ALIGN_LEFT": "Rreshtoni majtas", diff --git a/_localizations/ApplicationResources_sr_BA.json b/_localizations/ApplicationResources_sr_BA.json index 49dfc64..f24e204 100644 --- a/_localizations/ApplicationResources_sr_BA.json +++ b/_localizations/ApplicationResources_sr_BA.json @@ -1,6 +1,7 @@ { "ACCENT": "Акценат", "ACTION": "поступак", + "ADD": "Додати", "ADD_URL": "Додајте УРЛ адресу", "ALIGN_CENTER": "Поравнајте по средини", "ALIGN_LEFT": "Поравнати лево", diff --git a/_localizations/ApplicationResources_sv_SE.json b/_localizations/ApplicationResources_sv_SE.json index 1e52e76..cf58600 100644 --- a/_localizations/ApplicationResources_sv_SE.json +++ b/_localizations/ApplicationResources_sv_SE.json @@ -1,6 +1,7 @@ { "ACCENT": "Accent", "ACTION": "Åtgärd", + "ADD": "Lägg till", "ADD_URL": "Lägg till URL", "ALIGN_CENTER": "Centrera", "ALIGN_LEFT": "Vänsterjustera", diff --git a/_localizations/ApplicationResources_th_TH.json b/_localizations/ApplicationResources_th_TH.json index 1aab659..a9970b2 100644 --- a/_localizations/ApplicationResources_th_TH.json +++ b/_localizations/ApplicationResources_th_TH.json @@ -1,6 +1,7 @@ { "ACCENT": "สำเนียง", "ACTION": "การกระทำ", + "ADD": "เพิ่ม", "ADD_URL": "เพิ่ม URL", "ALIGN_CENTER": "จัดตำแหน่งกึ่งกลาง", "ALIGN_LEFT": "จัดชิดซ้าย", diff --git a/_localizations/ApplicationResources_tl_PH.json b/_localizations/ApplicationResources_tl_PH.json index 2ca683e..95ebbf5 100644 --- a/_localizations/ApplicationResources_tl_PH.json +++ b/_localizations/ApplicationResources_tl_PH.json @@ -1,6 +1,7 @@ { "ACCENT": "Accent", "ACTION": "Pagkilos", + "ADD": "Idagdag", "ADD_URL": "Magdagdag ng URL", "ALIGN_CENTER": "Pantayin ang gitna", "ALIGN_LEFT": "Align left", diff --git a/_localizations/ApplicationResources_tr_TR.json b/_localizations/ApplicationResources_tr_TR.json index 4ce9a67..b31b2b3 100644 --- a/_localizations/ApplicationResources_tr_TR.json +++ b/_localizations/ApplicationResources_tr_TR.json @@ -1,6 +1,7 @@ { "ACCENT": "Aksan", "ACTION": "Aksiyon", + "ADD": "Eklemek", "ADD_URL": "URL ekle", "ALIGN_CENTER": "Merkezi hizalama", "ALIGN_LEFT": "Sola hizalamak", diff --git a/_localizations/ApplicationResources_uk_UK.json b/_localizations/ApplicationResources_uk_UK.json index 82cb386..1a40078 100644 --- a/_localizations/ApplicationResources_uk_UK.json +++ b/_localizations/ApplicationResources_uk_UK.json @@ -1,6 +1,7 @@ { "ACCENT": "Акцент", "ACTION": "Дія", + "ADD": "Додайте", "ADD_URL": "Додати URL-адресу", "ALIGN_CENTER": "Вирівняти по центру", "ALIGN_LEFT": "Вирівняти ліворуч", diff --git a/_localizations/ApplicationResources_vi_VN.json b/_localizations/ApplicationResources_vi_VN.json index 80c55e2..3e4e0c4 100644 --- a/_localizations/ApplicationResources_vi_VN.json +++ b/_localizations/ApplicationResources_vi_VN.json @@ -1,6 +1,7 @@ { "ACCENT": "Giọng", "ACTION": "Hoạt động", + "ADD": "Thêm vào", "ADD_URL": "Thêm URL", "ALIGN_CENTER": "Căn giữa", "ALIGN_LEFT": "Căn trái", diff --git a/_localizations/ApplicationResources_zh_CN.json b/_localizations/ApplicationResources_zh_CN.json index 44493e9..20c22b6 100644 --- a/_localizations/ApplicationResources_zh_CN.json +++ b/_localizations/ApplicationResources_zh_CN.json @@ -1,6 +1,7 @@ { "ACCENT": "口音", "ACTION": "行动", + "ADD": "加", "ADD_URL": "添加网址", "ALIGN_CENTER": "居中对齐", "ALIGN_LEFT": "左对齐", diff --git a/_localizations/ApplicationResources_zh_HK.json b/_localizations/ApplicationResources_zh_HK.json index 44493e9..20c22b6 100644 --- a/_localizations/ApplicationResources_zh_HK.json +++ b/_localizations/ApplicationResources_zh_HK.json @@ -1,6 +1,7 @@ { "ACCENT": "口音", "ACTION": "行动", + "ADD": "加", "ADD_URL": "添加网址", "ALIGN_CENTER": "居中对齐", "ALIGN_LEFT": "左对齐", diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index fce0294..a58f742 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -1,3 +1,8 @@ +plugins { + id "com.android.application" + id "kotlin-android" + id "dev.flutter.flutter-gradle-plugin" +} def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { @@ -6,11 +11,6 @@ if (localPropertiesFile.exists()) { } } -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} - def flutterVersionCode = localProperties.getProperty('flutter.versionCode') if (flutterVersionCode == null) { flutterVersionCode = '1' @@ -21,10 +21,6 @@ if (flutterVersionName == null) { flutterVersionName = '1.0' } -apply plugin: 'com.android.application' -apply plugin: 'kotlin-android' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" - android { compileSdkVersion 34 ndkVersion "26.1.10909125" @@ -55,7 +51,3 @@ android { flutter { source '../..' } - -dependencies { - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" -} diff --git a/example/android/build.gradle b/example/android/build.gradle index 2b79d10..394293f 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -1,16 +1,3 @@ -buildscript { - ext.kotlin_version = '1.7.21' - repositories { - google() - jcenter() - } - - dependencies { - classpath 'com.android.tools.build:gradle:7.4.2' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } -} - allprojects { repositories { google() diff --git a/example/android/settings.gradle b/example/android/settings.gradle index 44e62bc..85de5cb 100644 --- a/example/android/settings.gradle +++ b/example/android/settings.gradle @@ -1,11 +1,25 @@ -include ':app' +pluginManagement { + def flutterSdkPath = { + def properties = new Properties() + file("local.properties").withInputStream { properties.load(it) } + def flutterSdkPath = properties.getProperty("flutter.sdk") + assert flutterSdkPath != null, "flutter.sdk not set in local.properties" + return flutterSdkPath + }() -def localPropertiesFile = new File(rootProject.projectDir, "local.properties") -def properties = new Properties() + includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") -assert localPropertiesFile.exists() -localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} -def flutterSdkPath = properties.getProperty("flutter.sdk") -assert flutterSdkPath != null, "flutter.sdk not set in local.properties" -apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" +plugins { + id "dev.flutter.flutter-plugin-loader" version "1.0.0" + id "com.android.application" version "7.4.2" apply false + id "org.jetbrains.kotlin.android" version "1.7.21" apply false +} + +include ":app" \ No newline at end of file diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index a2d9ec1..7565d3e 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -1,4 +1,9 @@ PODS: + - audio_session (0.0.1): + - Flutter + - camerawesome (0.0.1): + - Flutter + - JPSVolumeButtonHandler - device_info_plus (0.0.1): - Flutter - DKImagePickerController/Core (4.3.4): @@ -54,6 +59,9 @@ PODS: - Flutter - irondash_engine_context (0.0.1): - Flutter + - JPSVolumeButtonHandler (1.0.5) + - just_audio (0.0.1): + - Flutter - libwebp (1.3.1): - libwebp/demux (= 1.3.1) - libwebp/mux (= 1.3.1) @@ -79,6 +87,9 @@ PODS: - FlutterMacOS - permission_handler_apple (9.3.0): - Flutter + - record_darwin (1.0.0): + - Flutter + - FlutterMacOS - SDWebImage (5.17.0): - SDWebImage/Core (= 5.17.0) - SDWebImage/Core (5.17.0) @@ -107,6 +118,8 @@ PODS: - Flutter DEPENDENCIES: + - audio_session (from `.symlinks/plugins/audio_session/ios`) + - camerawesome (from `.symlinks/plugins/camerawesome/ios`) - device_info_plus (from `.symlinks/plugins/device_info_plus/ios`) - file_picker (from `.symlinks/plugins/file_picker/ios`) - Flutter (from `Flutter`) @@ -115,10 +128,12 @@ DEPENDENCIES: - flutter_keyboard_visibility (from `.symlinks/plugins/flutter_keyboard_visibility/ios`) - image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`) - irondash_engine_context (from `.symlinks/plugins/irondash_engine_context/ios`) + - just_audio (from `.symlinks/plugins/just_audio/ios`) - open_filex (from `.symlinks/plugins/open_filex/ios`) - package_info_plus (from `.symlinks/plugins/package_info_plus/ios`) - path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`) - permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`) + - record_darwin (from `.symlinks/plugins/record_darwin/ios`) - share_plus (from `.symlinks/plugins/share_plus/ios`) - shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`) - sqflite (from `.symlinks/plugins/sqflite/darwin`) @@ -132,6 +147,7 @@ SPEC REPOS: trunk: - DKImagePickerController - DKPhotoGallery + - JPSVolumeButtonHandler - libwebp - Mantle - OrderedSet @@ -140,6 +156,10 @@ SPEC REPOS: - SwiftyGif EXTERNAL SOURCES: + audio_session: + :path: ".symlinks/plugins/audio_session/ios" + camerawesome: + :path: ".symlinks/plugins/camerawesome/ios" device_info_plus: :path: ".symlinks/plugins/device_info_plus/ios" file_picker: @@ -156,6 +176,8 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/image_picker_ios/ios" irondash_engine_context: :path: ".symlinks/plugins/irondash_engine_context/ios" + just_audio: + :path: ".symlinks/plugins/just_audio/ios" open_filex: :path: ".symlinks/plugins/open_filex/ios" package_info_plus: @@ -164,6 +186,8 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/path_provider_foundation/darwin" permission_handler_apple: :path: ".symlinks/plugins/permission_handler_apple/ios" + record_darwin: + :path: ".symlinks/plugins/record_darwin/ios" share_plus: :path: ".symlinks/plugins/share_plus/ios" shared_preferences_foundation: @@ -182,34 +206,39 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/wakelock_plus/ios" SPEC CHECKSUMS: - device_info_plus: c6fb39579d0f423935b0c9ce7ee2f44b71b9fce6 + audio_session: 088d2483ebd1dc43f51d253d4a1c517d9a2e7207 + camerawesome: 1e06540f60158809bc70f398ed1ac2cf93fe4188 + device_info_plus: 97af1d7e84681a90d0693e63169a5d50e0839a0d DKImagePickerController: b512c28220a2b8ac7419f21c491fc8534b7601ac DKPhotoGallery: fdfad5125a9fdda9cc57df834d49df790dbb4179 - file_picker: 15fd9539e4eb735dc54bae8c0534a7a9511a03de + file_picker: 09aa5ec1ab24135ccd7a1621c46c84134bfd6655 Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7 flutter_image_compress_common: ec1d45c362c9d30a3f6a0426c297f47c52007e3e flutter_inappwebview_ios: 97215cf7d4677db55df76782dbd2930c5e1c1ea0 flutter_keyboard_visibility: 0339d06371254c3eb25eeb90ba8d17dca8f9c069 - image_picker_ios: 99dfe1854b4fa34d0364e74a78448a0151025425 + image_picker_ios: b545a5f16c0fa88e3ecbbce3ed4de45567a8ec18 irondash_engine_context: 3458bf979b90d616ffb8ae03a150bafe2e860cc9 + JPSVolumeButtonHandler: 53110330c9168ed325def93eabff39f0fe3e8082 + just_audio: baa7252489dbcf47a4c7cc9ca663e9661c99aafa libwebp: 33dc822fbbf4503668d09f7885bbfedc76c45e96 Mantle: c5aa8794a29a022dfbbfc9799af95f477a69b62d open_filex: 6e26e659846ec990262224a12ef1c528bb4edbe4 OrderedSet: aaeb196f7fef5a9edf55d89760da9176ad40b93c - package_info_plus: 115f4ad11e0698c8c1c5d8a689390df880f47e85 - path_provider_foundation: 3784922295ac71e43754bd15e0653ccfd36a147c - permission_handler_apple: 036b856153a2b1f61f21030ff725f3e6fece2b78 + package_info_plus: 58f0028419748fad15bf008b270aaa8e54380b1c + path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46 + permission_handler_apple: 9878588469a2b0d0fc1e048d9f43605f92e6cec2 + record_darwin: 1f6619f2abac4d1ca91d3eeab038c980d76f1517 SDWebImage: 750adf017a315a280c60fde706ab1e552a3ae4e9 SDWebImageWebPCoder: af09429398d99d524cae2fe00f6f0f6e491ed102 - share_plus: c3fef564749587fc939ef86ffb283ceac0baf9f5 - shared_preferences_foundation: b4c3b4cddf1c21f02770737f147a3f5da9d39695 + share_plus: 8875f4f2500512ea181eef553c3e27dba5135aad + shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78 sqflite: 673a0e54cc04b7d6dba8d24fb8095b31c3a99eec super_native_extensions: 4916b3c627a9c7fffdc48a23a9eca0b1ac228fa7 SwiftyGif: 93a1cc87bf3a51916001cf8f3d63835fb64c819f - url_launcher_ios: bbd758c6e7f9fd7b5b1d4cde34d2b95fcce5e812 + url_launcher_ios: 6116280ddcfe98ab8820085d8d76ae7449447586 video_compress: fce97e4fb1dfd88175aa07d2ffc8a2f297f87fbe - video_player_avfoundation: 02011213dab73ae3687df27ce441fbbcc82b5579 - wakelock_plus: 8b09852c8876491e4b6d179e17dfe2a0b5f60d47 + video_player_avfoundation: 2b4384f3b157206b5e150a0083cdc0c905d260d3 + wakelock_plus: 78ec7c5b202cab7761af8e2b2b3d0671be6c4ae1 PODFILE CHECKSUM: ef2759a31e8883d6b534c00ef22a7f4104f8de0d diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/example/ios/Runner.xcodeproj/project.pbxproj index 2548c51..69b0c70 100644 --- a/example/ios/Runner.xcodeproj/project.pbxproj +++ b/example/ios/Runner.xcodeproj/project.pbxproj @@ -139,6 +139,7 @@ 9705A1C41CF9048500538489 /* Embed Frameworks */, 3B06AD1E1E4923F5004D2608 /* Thin Binary */, EB347F71DB431DBD76862E64 /* [CP] Embed Pods Frameworks */, + 541ABBD2B882161D57F0CE08 /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -213,6 +214,23 @@ shellPath = /bin/sh; shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; }; + 541ABBD2B882161D57F0CE08 /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Copy Pods Resources"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; 9740EEB61CF901F6004384FC /* Run Script */ = { isa = PBXShellScriptBuildPhase; alwaysOutOfDate = 1; @@ -493,7 +511,6 @@ baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - EXCLUDED_ARCHS = arm64; CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; DEVELOPMENT_TEAM = ""; diff --git a/example/lib/pages/components/quill_editor_demo.dart b/example/lib/pages/components/quill_editor_demo.dart index 7f88a98..d2a7b3f 100644 --- a/example/lib/pages/components/quill_editor_demo.dart +++ b/example/lib/pages/components/quill_editor_demo.dart @@ -71,7 +71,6 @@ class _QuillEditorDemoState extends State { configurations: QuillEditorConfigurations( padding: const EdgeInsets.all(16), controller: controller, - readOnly: true, ), focusNode: FocusNode(canRequestFocus: false), ), diff --git a/example/macos/Podfile.lock b/example/macos/Podfile.lock index 9cd0f9c..e458fbb 100644 --- a/example/macos/Podfile.lock +++ b/example/macos/Podfile.lock @@ -111,24 +111,24 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: audio_session: dea1f41890dbf1718f04a56f1d6150fd50039b72 - device_info_plus: 5401765fde0b8d062a2f8eb65510fb17e77cf07f - file_selector_macos: 468fb6b81fac7c0e88d71317f3eec34c3b008ff9 + device_info_plus: ce1b7762849d3ec103d0e0517299f2db7ad60720 + file_selector_macos: 54fdab7caa3ac3fc43c9fac4d7d8d231277f8cf2 flutter_image_compress_macos: c26c3c13ea0f28ae6dea4e139b3292e7729f99f1 flutter_inappwebview_macos: 9600c9df9fdb346aaa8933812009f8d94304203d FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 irondash_engine_context: da62996ee25616d2f01bbeb85dc115d813359478 just_audio: 9b67ca7b97c61cfc9784ea23cd8cc55eb226d489 OrderedSet: aaeb196f7fef5a9edf55d89760da9176ad40b93c - package_info_plus: 02d7a575e80f194102bef286361c6c326e4c29ce - path_provider_foundation: 3784922295ac71e43754bd15e0653ccfd36a147c + package_info_plus: fa739dd842b393193c5ca93c26798dff6e3d0e0c + path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46 record_darwin: 1f6619f2abac4d1ca91d3eeab038c980d76f1517 - share_plus: 76dd39142738f7a68dd57b05093b5e8193f220f7 - shared_preferences_foundation: b4c3b4cddf1c21f02770737f147a3f5da9d39695 + share_plus: 36537c04ce0c3e3f5bd297ce4318b6d5ee5fd6cf + shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78 sqflite: 673a0e54cc04b7d6dba8d24fb8095b31c3a99eec super_native_extensions: 85efee3a7495b46b04befcfc86ed12069264ebf3 url_launcher_macos: d2691c7dd33ed713bf3544850a623080ec693d95 video_compress: c896234f100791b5fef7f049afa38f6d2ef7b42f - video_player_avfoundation: 02011213dab73ae3687df27ce441fbbcc82b5579 + video_player_avfoundation: 2b4384f3b157206b5e150a0083cdc0c905d260d3 wakelock_plus: 4783562c9a43d209c458cb9b30692134af456269 PODFILE CHECKSUM: 813f07c89880cd0ec4c0da55108415b820f8783a diff --git a/example/pubspec.yaml b/example/pubspec.yaml index fc9e96d..23179ce 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -11,7 +11,6 @@ dependencies: flutter: sdk: flutter lottie: ^2.1.0 - intl: ^0.18.0 table_calendar: ^3.0.9 shared_preferences: ^2.2.2 zds_flutter: @@ -22,9 +21,11 @@ dependencies: path_provider: ^2.1.2 scrollable_positioned_list: ^0.3.8 url_launcher: ^6.2.5 - zeta_flutter: ^0.4.0 cross_file: ^0.3.3+8 +dependency_overrides: + intl: 0.19.0 + flutter: uses-material-design: true assets: diff --git a/lib/assets/strings/ar.json b/lib/assets/strings/ar.json index 6b8ca2e..94c6e0a 100644 --- a/lib/assets/strings/ar.json +++ b/lib/assets/strings/ar.json @@ -1,6 +1,7 @@ { "ACCENT": "لهجة", "ACTION": "عمل", + "ADD": "إضافة", "ADD_URL": "إضافة رابط", "ALIGN_CENTER": "محاذاة المركز", "ALIGN_LEFT": "محاذاة إلى اليسار", diff --git a/lib/assets/strings/bg.json b/lib/assets/strings/bg.json index 573d55a..0f29e47 100644 --- a/lib/assets/strings/bg.json +++ b/lib/assets/strings/bg.json @@ -1,6 +1,7 @@ { "ACCENT": "Акцент", "ACTION": "действие", + "ADD": "Добави", "ADD_URL": "Добавете URL адрес", "ALIGN_CENTER": "Подравнете центъра", "ALIGN_LEFT": "Подравнете вляво", diff --git a/lib/assets/strings/bs.json b/lib/assets/strings/bs.json index 1925776..1d315b6 100644 --- a/lib/assets/strings/bs.json +++ b/lib/assets/strings/bs.json @@ -1,6 +1,7 @@ { "ACCENT": "Naglasak", "ACTION": "Akcija", + "ADD": "Dodati", "ADD_URL": "Dodajte URL", "ALIGN_CENTER": "Poravnajte centar", "ALIGN_LEFT": "Poravnajte lijevo", diff --git a/lib/assets/strings/cs.json b/lib/assets/strings/cs.json index 4b479dc..b61242a 100644 --- a/lib/assets/strings/cs.json +++ b/lib/assets/strings/cs.json @@ -1,6 +1,7 @@ { "ACCENT": "Přízvuk", "ACTION": "Akce", + "ADD": "Přidat", "ADD_URL": "Přidat adresu URL", "ALIGN_CENTER": "Zarovnat na střed", "ALIGN_LEFT": "Zarovnat vlevo", diff --git a/lib/assets/strings/da.json b/lib/assets/strings/da.json index 9992276..8f48630 100644 --- a/lib/assets/strings/da.json +++ b/lib/assets/strings/da.json @@ -1,6 +1,7 @@ { "ACCENT": "Accent", "ACTION": "Handling", + "ADD": "Tilføj", "ADD_URL": "Tilføj URL", "ALIGN_CENTER": "Juster til midt", "ALIGN_LEFT": "Juster til venstre", diff --git a/lib/assets/strings/de.json b/lib/assets/strings/de.json index a482c53..cc93df9 100644 --- a/lib/assets/strings/de.json +++ b/lib/assets/strings/de.json @@ -1,6 +1,7 @@ { "ACCENT": "Akzent", "ACTION": "Aktion", + "ADD": "Hinzufügen", "ADD_URL": "URL hinzufügen", "ALIGN_CENTER": "Zentrieren", "ALIGN_LEFT": "Linksbündig", diff --git a/lib/assets/strings/de_AT.json b/lib/assets/strings/de_AT.json index a482c53..cc93df9 100644 --- a/lib/assets/strings/de_AT.json +++ b/lib/assets/strings/de_AT.json @@ -1,6 +1,7 @@ { "ACCENT": "Akzent", "ACTION": "Aktion", + "ADD": "Hinzufügen", "ADD_URL": "URL hinzufügen", "ALIGN_CENTER": "Zentrieren", "ALIGN_LEFT": "Linksbündig", diff --git a/lib/assets/strings/de_BE.json b/lib/assets/strings/de_BE.json index 487d060..67df050 100644 --- a/lib/assets/strings/de_BE.json +++ b/lib/assets/strings/de_BE.json @@ -1,6 +1,7 @@ { "ACCENT": "Akzent", "ACTION": "Aktion", + "ADD": "Hinzufügen", "ADD_URL": "URL hinzufügen", "ALIGN_CENTER": "Im Zentrum anordnen", "ALIGN_LEFT": "Linksbündig", diff --git a/lib/assets/strings/de_CH.json b/lib/assets/strings/de_CH.json index 91e3cdd..988e42f 100644 --- a/lib/assets/strings/de_CH.json +++ b/lib/assets/strings/de_CH.json @@ -1,6 +1,7 @@ { "ACCENT": "Akzent", "ACTION": "Aktion", + "ADD": "Hinzufügen", "ADD_URL": "URL hinzufügen", "ALIGN_CENTER": "Im Zentrum anordnen", "ALIGN_LEFT": "Linksbündig", diff --git a/lib/assets/strings/el.json b/lib/assets/strings/el.json index 67614dc..28252db 100644 --- a/lib/assets/strings/el.json +++ b/lib/assets/strings/el.json @@ -1,6 +1,7 @@ { "ACCENT": "Προφορά", "ACTION": "Δράση", + "ADD": "Προσθέτω", "ADD_URL": "Προσθήκη διεύθυνσης URL", "ALIGN_CENTER": "Ευθυγραμμίστε το κέντρο", "ALIGN_LEFT": "Στοίχιση αριστερά", diff --git a/lib/assets/strings/en.json b/lib/assets/strings/en.json index f7f1e17..20741a5 100644 --- a/lib/assets/strings/en.json +++ b/lib/assets/strings/en.json @@ -1,6 +1,7 @@ { "ACCENT": "Accent", "ACTION": "Action", + "ADD": "Add", "ADD_URL": "Add URL", "ALIGN_CENTER": "Align center", "ALIGN_LEFT": "Align left", diff --git a/lib/assets/strings/en_CA.json b/lib/assets/strings/en_CA.json index 70b0b30..7e4b9a0 100644 --- a/lib/assets/strings/en_CA.json +++ b/lib/assets/strings/en_CA.json @@ -1,6 +1,7 @@ { "ACCENT": "Accent", "ACTION": "Action", + "ADD": "Add", "ADD_URL": "Add URL", "ALIGN_CENTER": "Align center", "ALIGN_LEFT": "Align left", diff --git a/lib/assets/strings/en_GB.json b/lib/assets/strings/en_GB.json index 66baa67..3380844 100644 --- a/lib/assets/strings/en_GB.json +++ b/lib/assets/strings/en_GB.json @@ -1,6 +1,7 @@ { "ACCENT": "Accent", "ACTION": "Action", + "ADD": "Add", "ADD_URL": "Add URL", "ALIGN_CENTER": "Align centre", "ALIGN_LEFT": "Align left", diff --git a/lib/assets/strings/es.json b/lib/assets/strings/es.json index ef01c21..89ef6fb 100644 --- a/lib/assets/strings/es.json +++ b/lib/assets/strings/es.json @@ -1,6 +1,7 @@ { "ACCENT": "Acento", "ACTION": "Acción", + "ADD": "Añadir", "ADD_URL": "Agregar URL", "ALIGN_CENTER": "Alinear al centro", "ALIGN_LEFT": "Alinear a la izquierda", diff --git a/lib/assets/strings/es_CL.json b/lib/assets/strings/es_CL.json index 11614ce..61a4e33 100644 --- a/lib/assets/strings/es_CL.json +++ b/lib/assets/strings/es_CL.json @@ -1,6 +1,7 @@ { "ACCENT": "Acento", "ACTION": "Acción", + "ADD": "Agregar", "ADD_URL": "Agregar URL", "ALIGN_CENTER": "Alinear al centro", "ALIGN_LEFT": "Alinear a la izquierda", diff --git a/lib/assets/strings/es_EC.json b/lib/assets/strings/es_EC.json index cbf605c..6440774 100644 --- a/lib/assets/strings/es_EC.json +++ b/lib/assets/strings/es_EC.json @@ -1,6 +1,7 @@ { "ACCENT": "Acento", "ACTION": "Acción", + "ADD": "Agregar", "ADD_URL": "Agregar URL", "ALIGN_CENTER": "Alinear al centro", "ALIGN_LEFT": "Alinear a la izquierda", diff --git a/lib/assets/strings/es_ES.json b/lib/assets/strings/es_ES.json index 84b8ad3..aa906e4 100644 --- a/lib/assets/strings/es_ES.json +++ b/lib/assets/strings/es_ES.json @@ -1,6 +1,7 @@ { "ACCENT": "Acento", "ACTION": "Acción", + "ADD": "Añadir", "ADD_URL": "Añadir URL", "ALIGN_CENTER": "Alinear en el centro", "ALIGN_LEFT": "Alinear a la izquierda", diff --git a/lib/assets/strings/es_PE.json b/lib/assets/strings/es_PE.json index cbf605c..6440774 100644 --- a/lib/assets/strings/es_PE.json +++ b/lib/assets/strings/es_PE.json @@ -1,6 +1,7 @@ { "ACCENT": "Acento", "ACTION": "Acción", + "ADD": "Agregar", "ADD_URL": "Agregar URL", "ALIGN_CENTER": "Alinear al centro", "ALIGN_LEFT": "Alinear a la izquierda", diff --git a/lib/assets/strings/es_PR.json b/lib/assets/strings/es_PR.json index cbf605c..6440774 100644 --- a/lib/assets/strings/es_PR.json +++ b/lib/assets/strings/es_PR.json @@ -1,6 +1,7 @@ { "ACCENT": "Acento", "ACTION": "Acción", + "ADD": "Agregar", "ADD_URL": "Agregar URL", "ALIGN_CENTER": "Alinear al centro", "ALIGN_LEFT": "Alinear a la izquierda", diff --git a/lib/assets/strings/es_UY.json b/lib/assets/strings/es_UY.json index cbf605c..6440774 100644 --- a/lib/assets/strings/es_UY.json +++ b/lib/assets/strings/es_UY.json @@ -1,6 +1,7 @@ { "ACCENT": "Acento", "ACTION": "Acción", + "ADD": "Agregar", "ADD_URL": "Agregar URL", "ALIGN_CENTER": "Alinear al centro", "ALIGN_LEFT": "Alinear a la izquierda", diff --git a/lib/assets/strings/fi.json b/lib/assets/strings/fi.json index 1c0e748..8e9ad20 100644 --- a/lib/assets/strings/fi.json +++ b/lib/assets/strings/fi.json @@ -1,6 +1,7 @@ { "ACCENT": "Aksentti", "ACTION": "Toiminto", + "ADD": "Lisää", "ADD_URL": "Lisää URL", "ALIGN_CENTER": "Tasaa keskelle", "ALIGN_LEFT": "Tasaa vasemmalle", diff --git a/lib/assets/strings/fr.json b/lib/assets/strings/fr.json index 5364abf..9db3bb9 100644 --- a/lib/assets/strings/fr.json +++ b/lib/assets/strings/fr.json @@ -1,6 +1,7 @@ { "ACCENT": "Accent", "ACTION": "Action", + "ADD": "Ajouter", "ADD_URL": "Ajouter une URL", "ALIGN_CENTER": "Centrer", "ALIGN_LEFT": "Aligner à gauche", diff --git a/lib/assets/strings/fr_BE.json b/lib/assets/strings/fr_BE.json index 46e4cb8..aaea9dd 100644 --- a/lib/assets/strings/fr_BE.json +++ b/lib/assets/strings/fr_BE.json @@ -1,6 +1,7 @@ { "ACCENT": "Accent", "ACTION": "action", + "ADD": "Ajouter", "ADD_URL": "Ajouter l'URL", "ALIGN_CENTER": "Aligner le centre", "ALIGN_LEFT": "Alignez à gauche", diff --git a/lib/assets/strings/fr_CA.json b/lib/assets/strings/fr_CA.json index df2d7bf..27e63b0 100644 --- a/lib/assets/strings/fr_CA.json +++ b/lib/assets/strings/fr_CA.json @@ -1,6 +1,7 @@ { "ACCENT": "Accent", "ACTION": "Action", + "ADD": "Ajouter", "ADD_URL": "Ajouter une URL", "ALIGN_CENTER": "Centrer", "ALIGN_LEFT": "Aligner à gauche", diff --git a/lib/assets/strings/fr_CH.json b/lib/assets/strings/fr_CH.json index 46e4cb8..aaea9dd 100644 --- a/lib/assets/strings/fr_CH.json +++ b/lib/assets/strings/fr_CH.json @@ -1,6 +1,7 @@ { "ACCENT": "Accent", "ACTION": "action", + "ADD": "Ajouter", "ADD_URL": "Ajouter l'URL", "ALIGN_CENTER": "Aligner le centre", "ALIGN_LEFT": "Alignez à gauche", diff --git a/lib/assets/strings/hr.json b/lib/assets/strings/hr.json index 65ec798..34628d7 100644 --- a/lib/assets/strings/hr.json +++ b/lib/assets/strings/hr.json @@ -1,6 +1,7 @@ { "ACCENT": "Naglasak", "ACTION": "Radnja", + "ADD": "Dodati", "ADD_URL": "Dodajte URL", "ALIGN_CENTER": "Poravnajte sredinu", "ALIGN_LEFT": "Poravnajte lijevo", diff --git a/lib/assets/strings/hu.json b/lib/assets/strings/hu.json index 59eb223..9c12e44 100644 --- a/lib/assets/strings/hu.json +++ b/lib/assets/strings/hu.json @@ -1,6 +1,7 @@ { "ACCENT": "Hangsúly", "ACTION": "Művelet", + "ADD": "Hozzáadás", "ADD_URL": "URL-cím hozzáadása", "ALIGN_CENTER": "Középre igazítás", "ALIGN_LEFT": "Balra igazítás", diff --git a/lib/assets/strings/in.json b/lib/assets/strings/in.json index 3cf1673..421b03e 100644 --- a/lib/assets/strings/in.json +++ b/lib/assets/strings/in.json @@ -1,6 +1,7 @@ { "ACCENT": "Aksen", "ACTION": "Tindakan", + "ADD": "Menambahkan", "ADD_URL": "Tambahkan URL", "ALIGN_CENTER": "Sejajarkan tengah", "ALIGN_LEFT": "Rata kiri", diff --git a/lib/assets/strings/it.json b/lib/assets/strings/it.json index 7b8b4ae..4dab8f6 100644 --- a/lib/assets/strings/it.json +++ b/lib/assets/strings/it.json @@ -1,6 +1,7 @@ { "ACCENT": "Accento", "ACTION": "Azione", + "ADD": "Inserisci", "ADD_URL": "Aggiungi URL", "ALIGN_CENTER": "Allinea al centro", "ALIGN_LEFT": "Allineare a sinistra", diff --git a/lib/assets/strings/ja.json b/lib/assets/strings/ja.json index 0fcaf6d..7027b0e 100644 --- a/lib/assets/strings/ja.json +++ b/lib/assets/strings/ja.json @@ -1,6 +1,7 @@ { "ACCENT": "アクセント", "ACTION": "アクション", + "ADD": "追加する", "ADD_URL": "URLを追加", "ALIGN_CENTER": "中央に揃える", "ALIGN_LEFT": "左揃え", diff --git a/lib/assets/strings/ka.json b/lib/assets/strings/ka.json index 69f3c86..929ff45 100644 --- a/lib/assets/strings/ka.json +++ b/lib/assets/strings/ka.json @@ -1,6 +1,7 @@ { "ACCENT": "Აქცენტი", "ACTION": "მოქმედება", + "ADD": "დამატება", "ADD_URL": "დაამატეთ URL", "ALIGN_CENTER": "გასწორება ცენტრი", "ALIGN_LEFT": "გასწორება მარცხნივ", diff --git a/lib/assets/strings/ko.json b/lib/assets/strings/ko.json index d289af0..b2b361e 100644 --- a/lib/assets/strings/ko.json +++ b/lib/assets/strings/ko.json @@ -1,6 +1,7 @@ { "ACCENT": "악센트", "ACTION": "동작", + "ADD": "더하다", "ADD_URL": "URL 추가", "ALIGN_CENTER": "중앙 정렬", "ALIGN_LEFT": "왼쪽 정렬", diff --git a/lib/assets/strings/lt.json b/lib/assets/strings/lt.json index 324fde2..ef89941 100644 --- a/lib/assets/strings/lt.json +++ b/lib/assets/strings/lt.json @@ -1,6 +1,7 @@ { "ACCENT": "Akcentas", "ACTION": "Veiksmas", + "ADD": "Pridėti", "ADD_URL": "Pridėti URL", "ALIGN_CENTER": "Centrinis lygiavimas", "ALIGN_LEFT": "Kairysis lygiavimas", diff --git a/lib/assets/strings/lv.json b/lib/assets/strings/lv.json index a75b654..e8bb9d7 100644 --- a/lib/assets/strings/lv.json +++ b/lib/assets/strings/lv.json @@ -1,6 +1,7 @@ { "ACCENT": "Akcents", "ACTION": "Darbība", + "ADD": "Pievienot", "ADD_URL": "Pievienot URL adresi", "ALIGN_CENTER": "Izlīdzināt centrā", "ALIGN_LEFT": "Izlīdzināt pa kreisi", diff --git a/lib/assets/strings/mk.json b/lib/assets/strings/mk.json index a84e8ba..8f047e8 100644 --- a/lib/assets/strings/mk.json +++ b/lib/assets/strings/mk.json @@ -1,6 +1,7 @@ { "ACCENT": "Акцент", "ACTION": "Акција", + "ADD": "Додадете", "ADD_URL": "Додадете URL", "ALIGN_CENTER": "Порамнете го центарот", "ALIGN_LEFT": "Порамни лево", diff --git a/lib/assets/strings/nb.json b/lib/assets/strings/nb.json index 535552b..4748016 100644 --- a/lib/assets/strings/nb.json +++ b/lib/assets/strings/nb.json @@ -1,6 +1,7 @@ { "ACCENT": "Aksent", "ACTION": "Handling", + "ADD": "Legg til", "ADD_URL": "Legg til URL", "ALIGN_CENTER": "Midtstill loddrett", "ALIGN_LEFT": "Venstrejuster", diff --git a/lib/assets/strings/nl.json b/lib/assets/strings/nl.json index bb0788a..fa22a6f 100644 --- a/lib/assets/strings/nl.json +++ b/lib/assets/strings/nl.json @@ -1,6 +1,7 @@ { "ACCENT": "Accent", "ACTION": "Actie", + "ADD": "Toevoegen", "ADD_URL": "URL toevoegen", "ALIGN_CENTER": "Midden uitlijnen", "ALIGN_LEFT": "Links uitlijnen", diff --git a/lib/assets/strings/pl.json b/lib/assets/strings/pl.json index cb46815..fcb7c09 100644 --- a/lib/assets/strings/pl.json +++ b/lib/assets/strings/pl.json @@ -1,6 +1,7 @@ { "ACCENT": "Akcent", "ACTION": "Działanie", + "ADD": "Dodaj", "ADD_URL": "Dodaj URL", "ALIGN_CENTER": "Wyrównaj do środka", "ALIGN_LEFT": "Wyrównaj do lewej", diff --git a/lib/assets/strings/pt.json b/lib/assets/strings/pt.json index 3cf2613..04f8cd6 100644 --- a/lib/assets/strings/pt.json +++ b/lib/assets/strings/pt.json @@ -1,6 +1,7 @@ { "ACCENT": "Sotaque", "ACTION": "Ação", + "ADD": "Adicionar", "ADD_URL": "Adicionar URL", "ALIGN_CENTER": "Alinhar ao centro", "ALIGN_LEFT": "Alinhar à esquerda", diff --git a/lib/assets/strings/pt_BR.json b/lib/assets/strings/pt_BR.json index 84af8f3..7aaadc7 100644 --- a/lib/assets/strings/pt_BR.json +++ b/lib/assets/strings/pt_BR.json @@ -1,6 +1,7 @@ { "ACCENT": "Sotaque", "ACTION": "Ação", + "ADD": "Adicionar", "ADD_URL": "Adicionar URL", "ALIGN_CENTER": "Centralizar", "ALIGN_LEFT": "Alinhar à esquerda", diff --git a/lib/assets/strings/ro.json b/lib/assets/strings/ro.json index a7e4d4d..16761ca 100644 --- a/lib/assets/strings/ro.json +++ b/lib/assets/strings/ro.json @@ -1,6 +1,7 @@ { "ACCENT": "Accent", "ACTION": "Acțiune", + "ADD": "Adăuga", "ADD_URL": "Adaugă URL", "ALIGN_CENTER": "Aliniere la centru", "ALIGN_LEFT": "Alinia la stânga", diff --git a/lib/assets/strings/ru.json b/lib/assets/strings/ru.json index e99a580..1c2ac75 100644 --- a/lib/assets/strings/ru.json +++ b/lib/assets/strings/ru.json @@ -1,6 +1,7 @@ { "ACCENT": "Акцент", "ACTION": "действие", + "ADD": "добавлять", "ADD_URL": "Добавить сайт", "ALIGN_CENTER": "Выровнять по центру", "ALIGN_LEFT": "Выровнять по левому краю", diff --git a/lib/assets/strings/sk.json b/lib/assets/strings/sk.json index b3f7d7d..45159cc 100644 --- a/lib/assets/strings/sk.json +++ b/lib/assets/strings/sk.json @@ -1,6 +1,7 @@ { "ACCENT": "Prízvuk", "ACTION": "Akcia", + "ADD": "Pridať", "ADD_URL": "Pridať adresu URL", "ALIGN_CENTER": "Zarovnať v strede", "ALIGN_LEFT": "Zarovnať vľavo", diff --git a/lib/assets/strings/sl.json b/lib/assets/strings/sl.json index 8035751..4c724fb 100644 --- a/lib/assets/strings/sl.json +++ b/lib/assets/strings/sl.json @@ -1,6 +1,7 @@ { "ACCENT": "Naglas", "ACTION": "Dejanje", + "ADD": "Dodaj", "ADD_URL": "Dodajanje URL-ja", "ALIGN_CENTER": "Poravnaj na sredino", "ALIGN_LEFT": "Poravnaj levo", diff --git a/lib/assets/strings/sq.json b/lib/assets/strings/sq.json index d0b7504..915b90c 100644 --- a/lib/assets/strings/sq.json +++ b/lib/assets/strings/sq.json @@ -1,6 +1,7 @@ { "ACCENT": "Theksim", "ACTION": "Veprimi", + "ADD": "Shtoni", "ADD_URL": "Shto URL", "ALIGN_CENTER": "Rreshtoni qendrën", "ALIGN_LEFT": "Rreshtoni majtas", diff --git a/lib/assets/strings/sr.json b/lib/assets/strings/sr.json index 49dfc64..f24e204 100644 --- a/lib/assets/strings/sr.json +++ b/lib/assets/strings/sr.json @@ -1,6 +1,7 @@ { "ACCENT": "Акценат", "ACTION": "поступак", + "ADD": "Додати", "ADD_URL": "Додајте УРЛ адресу", "ALIGN_CENTER": "Поравнајте по средини", "ALIGN_LEFT": "Поравнати лево", diff --git a/lib/assets/strings/sv.json b/lib/assets/strings/sv.json index 1e52e76..cf58600 100644 --- a/lib/assets/strings/sv.json +++ b/lib/assets/strings/sv.json @@ -1,6 +1,7 @@ { "ACCENT": "Accent", "ACTION": "Åtgärd", + "ADD": "Lägg till", "ADD_URL": "Lägg till URL", "ALIGN_CENTER": "Centrera", "ALIGN_LEFT": "Vänsterjustera", diff --git a/lib/assets/strings/th.json b/lib/assets/strings/th.json index 1aab659..a9970b2 100644 --- a/lib/assets/strings/th.json +++ b/lib/assets/strings/th.json @@ -1,6 +1,7 @@ { "ACCENT": "สำเนียง", "ACTION": "การกระทำ", + "ADD": "เพิ่ม", "ADD_URL": "เพิ่ม URL", "ALIGN_CENTER": "จัดตำแหน่งกึ่งกลาง", "ALIGN_LEFT": "จัดชิดซ้าย", diff --git a/lib/assets/strings/tl.json b/lib/assets/strings/tl.json index 2ca683e..95ebbf5 100644 --- a/lib/assets/strings/tl.json +++ b/lib/assets/strings/tl.json @@ -1,6 +1,7 @@ { "ACCENT": "Accent", "ACTION": "Pagkilos", + "ADD": "Idagdag", "ADD_URL": "Magdagdag ng URL", "ALIGN_CENTER": "Pantayin ang gitna", "ALIGN_LEFT": "Align left", diff --git a/lib/assets/strings/tr.json b/lib/assets/strings/tr.json index 4ce9a67..b31b2b3 100644 --- a/lib/assets/strings/tr.json +++ b/lib/assets/strings/tr.json @@ -1,6 +1,7 @@ { "ACCENT": "Aksan", "ACTION": "Aksiyon", + "ADD": "Eklemek", "ADD_URL": "URL ekle", "ALIGN_CENTER": "Merkezi hizalama", "ALIGN_LEFT": "Sola hizalamak", diff --git a/lib/assets/strings/uk.json b/lib/assets/strings/uk.json index 82cb386..1a40078 100644 --- a/lib/assets/strings/uk.json +++ b/lib/assets/strings/uk.json @@ -1,6 +1,7 @@ { "ACCENT": "Акцент", "ACTION": "Дія", + "ADD": "Додайте", "ADD_URL": "Додати URL-адресу", "ALIGN_CENTER": "Вирівняти по центру", "ALIGN_LEFT": "Вирівняти ліворуч", diff --git a/lib/assets/strings/vi.json b/lib/assets/strings/vi.json index 80c55e2..3e4e0c4 100644 --- a/lib/assets/strings/vi.json +++ b/lib/assets/strings/vi.json @@ -1,6 +1,7 @@ { "ACCENT": "Giọng", "ACTION": "Hoạt động", + "ADD": "Thêm vào", "ADD_URL": "Thêm URL", "ALIGN_CENTER": "Căn giữa", "ALIGN_LEFT": "Căn trái", diff --git a/lib/assets/strings/zh.json b/lib/assets/strings/zh.json index 44493e9..20c22b6 100644 --- a/lib/assets/strings/zh.json +++ b/lib/assets/strings/zh.json @@ -1,6 +1,7 @@ { "ACCENT": "口音", "ACTION": "行动", + "ADD": "加", "ADD_URL": "添加网址", "ALIGN_CENTER": "居中对齐", "ALIGN_LEFT": "左对齐", diff --git a/lib/assets/strings/zh_HK.json b/lib/assets/strings/zh_HK.json index 44493e9..20c22b6 100644 --- a/lib/assets/strings/zh_HK.json +++ b/lib/assets/strings/zh_HK.json @@ -1,6 +1,7 @@ { "ACCENT": "口音", "ACTION": "行动", + "ADD": "加", "ADD_URL": "添加网址", "ALIGN_CENTER": "居中对齐", "ALIGN_LEFT": "左对齐", diff --git a/lib/src/components/molecules/block_table.dart b/lib/src/components/molecules/block_table.dart index 69928fc..a31e843 100644 --- a/lib/src/components/molecules/block_table.dart +++ b/lib/src/components/molecules/block_table.dart @@ -2,7 +2,7 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:linked_scroll_controller/linked_scroll_controller.dart'; -import '../../../../zds_flutter.dart'; +import '../../../zds_flutter.dart'; /// Defines a header for a [ZdsBlockTable] class ZdsBlockTableHeader { @@ -174,7 +174,7 @@ class _BlockTable extends State with WidgetsBindingObserver { @override Widget build(BuildContext context) { return ColoredBox( - color: Zeta.of(context).colors.borderSubtle, + color: Zeta.of(context).colors.surfacePrimary, child: IntrinsicHeight( child: Column( crossAxisAlignment: CrossAxisAlignment.start, @@ -233,13 +233,26 @@ class _BlockTable extends State with WidgetsBindingObserver { items.length, (int index) { final themeData = Theme.of(context); + final zetaColors = Zeta.of(context).colors; return Row( children: [ Container( + decoration: BoxDecoration( + color: themeData.colorScheme.surface, + border: Border( + bottom: BorderSide( + width: 1.5, + color: zetaColors.borderSubtle, + ), + right: BorderSide( + width: 1.5, + color: zetaColors.borderSubtle, + ), + ), + ), alignment: Alignment.center, width: _getDayColumnWidth(), height: 28, - color: themeData.colorScheme.surface, child: Text( items[index].text, style: themeData.textTheme.bodySmall?.copyWith( @@ -264,7 +277,7 @@ class _BlockTable extends State with WidgetsBindingObserver { final ZdsBlockTableRow row = rows[index]; final ZdsBlockTableCellData cellItem = row.titleCell; final themeData = Theme.of(context); - + final zetaColors = Zeta.of(context).colors; return Row( children: [ Column( @@ -275,10 +288,15 @@ class _BlockTable extends State with WidgetsBindingObserver { height: headerHeight, width: _getAssocColumnWidth(), decoration: BoxDecoration( - color: Zeta.of(context).colors.borderDisabled, + color: zetaColors.borderDisabled, border: Border( bottom: BorderSide( - color: Zeta.of(context).colors.borderSubtle, + width: 1.5, + color: zetaColors.borderSubtle, + ), + right: BorderSide( + width: 1.5, + color: zetaColors.borderSubtle, ), ), ), @@ -294,10 +312,22 @@ class _BlockTable extends State with WidgetsBindingObserver { ), ), Container( + decoration: BoxDecoration( + color: cellItem.backgroundColor ?? themeData.colorScheme.surface, + border: Border( + bottom: BorderSide( + width: 1.5, + color: zetaColors.borderSubtle, + ), + right: BorderSide( + width: 1.5, + color: zetaColors.borderSubtle, + ), + ), + ), alignment: Alignment.center, width: _getAssocColumnWidth(), height: widget.cellHeight + widget.cellPadding, - color: cellItem.backgroundColor ?? themeData.colorScheme.surface, margin: const EdgeInsets.only(bottom: 1), child: cellItem.child ?? Text( @@ -326,7 +356,7 @@ class _BlockTable extends State with WidgetsBindingObserver { final List cells = []; final List rows = widget.rows; final double cellHeight = widget.cellHeight + widget.cellPadding; - + final zetaColors = Zeta.of(context).colors; for (int j = 0; j < rows[index].data.length; j++) { final List columnWidgets = []; @@ -335,9 +365,16 @@ class _BlockTable extends State with WidgetsBindingObserver { Container( height: headerHeight, decoration: BoxDecoration( - color: Zeta.of(context).colors.borderDisabled, + color: zetaColors.borderDisabled, border: Border( - bottom: BorderSide(color: Zeta.of(context).colors.borderSubtle), + bottom: BorderSide( + width: 1.5, + color: zetaColors.borderSubtle, + ), + right: BorderSide( + width: 1.5, + color: zetaColors.borderSubtle, + ), ), ), ), @@ -351,7 +388,18 @@ class _BlockTable extends State with WidgetsBindingObserver { Expanded( child: DecoratedBox( decoration: BoxDecoration( - border: isSelected ? Border.all(color: themeData.colorScheme.secondary, width: 2) : null, + border: isSelected + ? Border.all(color: themeData.colorScheme.secondary, width: 2) + : Border( + bottom: BorderSide( + width: 1.5, + color: zetaColors.borderSubtle, + ), + right: BorderSide( + width: 1.5, + color: zetaColors.borderSubtle, + ), + ), color: isSelected ? themeData.colorScheme.secondary.withLight( 0.1, @@ -424,11 +472,24 @@ class _BlockTable extends State with WidgetsBindingObserver { } Widget _getZeroCellWidget() { + final zetaColors = Zeta.of(context).colors; return Container( + decoration: BoxDecoration( + color: Theme.of(context).colorScheme.surface, + border: Border( + bottom: BorderSide( + width: 1.5, + color: zetaColors.borderSubtle, + ), + right: BorderSide( + width: 1.5, + color: zetaColors.borderSubtle, + ), + ), + ), alignment: Alignment.center, width: _getAssocColumnWidth(), height: 28, - color: Theme.of(context).colorScheme.surface, ).paddingOnly(right: 1); } diff --git a/lib/src/components/organisms/file_picker/file_compress.dart b/lib/src/components/organisms/file_picker/file_compress.dart index 956b247..9578af9 100644 --- a/lib/src/components/organisms/file_picker/file_compress.dart +++ b/lib/src/components/organisms/file_picker/file_compress.dart @@ -18,7 +18,14 @@ const int _maxVideoUploadSize = 5 * 1024 * 1024; // 25 Mb @immutable class ZdsFileCompressPostProcessor implements ZdsFilePostProcessor { /// Default constructor - const ZdsFileCompressPostProcessor(); + const ZdsFileCompressPostProcessor({ + this.compressVideoTypes = const {'mp4', 'mov', '3gp', 'm4v', 'hevc', 'avi'}, + }); + + /// Video types to compress + /// Default tested types are `{'mp4', 'mov', '3gp', 'm4v', 'hevc', 'avi'}` + /// You can add more types to compress, but make sure to check if compression works fine for that type + final Set compressVideoTypes; @override Future process(ZdsFilePickerConfig config, ZdsFileWrapper file) async { @@ -27,10 +34,7 @@ class ZdsFileCompressPostProcessor implements ZdsFilePostProcessor { } else if (file.isImage()) { return ZdsFileWrapper(file.type, await _compressImage(File(file.xFilePath), config)); } else if (file.isVideo()) { - return ZdsFileWrapper( - file.type, - await _compressVideo(File(file.xFilePath), config), - ); + return ZdsFileWrapper(file.type, await _compressVideo(File(file.xFilePath), config)); } else { return file; } @@ -38,21 +42,25 @@ class ZdsFileCompressPostProcessor implements ZdsFilePostProcessor { Future _compressVideo(File video, ZdsFilePickerConfig config) async { try { - final String dir = await zdsTempDirectory(); final String fileExtension = path.extension(video.path).toLowerCase().replaceAll('.', ''); - final File targetFile = File('$dir/${path.basenameWithoutExtension(video.path)}.$fileExtension'); final int maxFileSize = config.maxFileSize == 0 ? _maxVideoUploadSize : config.maxFileSize; - File compressedVideo; - try { - compressedVideo = await ZdsCompressor.compressVideo( - video: video, - target: targetFile, - maxFileSize: maxFileSize, - quality: _videoQuality(config.videoCompressionLevel), - ) ?? - video; - } catch (e) { + + if (compressVideoTypes.contains(fileExtension)) { + try { + final String dir = await zdsTempDirectory(); + final File targetFile = File('$dir/${path.basenameWithoutExtension(video.path)}.$fileExtension'); + compressedVideo = await ZdsCompressor.compressVideo( + video: video, + target: targetFile, + maxFileSize: maxFileSize, + quality: _videoQuality(config.videoCompressionLevel), + ) ?? + video; + } catch (e) { + compressedVideo = video; + } + } else { compressedVideo = video; } @@ -97,9 +105,16 @@ class ZdsFileCompressPostProcessor implements ZdsFilePostProcessor { if (format != null) { try { - final Compression c = - Compression(maxFileSize: fileSize, minHeight: h, minWidth: h, format: format, quality: quality); + final Compression c = Compression( + maxFileSize: fileSize, + minHeight: h, + minWidth: h, + format: format, + quality: quality, + ); + File? compressed = await ZdsCompressor.compressImage(image: image, compression: c); + if (compressed != null) { // Rename file back to jpg if picked file was jpg and allowed file types dose not contain jpeg. // This step is needed as jpg is compressed to jpeg diff --git a/lib/src/components/organisms/file_picker/file_picker.dart b/lib/src/components/organisms/file_picker/file_picker.dart index 370bba5..dc20e3c 100644 --- a/lib/src/components/organisms/file_picker/file_picker.dart +++ b/lib/src/components/organisms/file_picker/file_picker.dart @@ -19,6 +19,7 @@ import '../../atoms/absorb_pointer.dart'; import '../../atoms/button.dart'; import '../../atoms/card.dart'; import '../../molecules/list.dart'; +import '../../molecules/toast.dart'; import '../camera/camera_page.dart'; import '../file_preview.dart'; import '../list_tile.dart'; @@ -602,24 +603,42 @@ extension _Methods on ZdsFilePickerState { } Future _handleGifAction(BuildContext context) async { - final GiphyGif? gif = await Navigator.push( + final maxFilesAllowed = config.maxFilesAllowed; + final allowMultiple = maxFilesAllowed == 0 || maxFilesAllowed > 1; + final List? result = await Navigator.push?>( context, - MaterialPageRoute( - builder: (BuildContext context) => ZdsGiphyPicker(apiKey: config.giphyKey!), + MaterialPageRoute?>( + builder: (BuildContext context) => ZdsGiphyPicker( + apiKey: config.giphyKey!, + allowMultiple: allowMultiple, + ), ), ); + try { - if (gif == null) return; + if (result == null) return; _busy = true; - if (context.mounted) { - final file = await onPicked( - context, - ZdsFileWrapper(ZdsFilePickerOptions.GIF, gif), - ZdsFilePickerOptions.GIF, - ); - if (file != null) widget.onPicked?.call([file]); + final List list = []; + + if (context.mounted) { + for (final GiphyGif gif in result) { + final itemsLength = controller.items.where((ZdsFileWrapper element) => !element.isLink).toList().length + + controller.remoteItems.length; + if (maxFilesAllowed != 0 && itemsLength >= maxFilesAllowed && context.mounted) { + showToast(context, PickerExceptionType.maxLimitReached.message(context)); + break; + } + final file = await onPicked( + context, + ZdsFileWrapper(ZdsFilePickerOptions.GIF, gif), + ZdsFilePickerOptions.GIF, + ); + if (file != null) list.add(file); + } } + + if (list.isNotEmpty) widget.onPicked?.call(list); } on Exception catch (e) { if (context.mounted) widget.onError?.call(context, config, e); } finally { @@ -734,7 +753,8 @@ extension _Methods on ZdsFilePickerState { for (final PlatformFile file in result.files) { final itemsLength = controller.items.where((ZdsFileWrapper element) => !element.isLink).toList().length + controller.remoteItems.length; - if (maxFilesAllowed != 0 && itemsLength >= maxFilesAllowed) { + if (maxFilesAllowed != 0 && itemsLength >= maxFilesAllowed && context.mounted) { + showToast(context, PickerExceptionType.maxLimitReached.message(context)); break; } if (kIsWeb) { @@ -765,6 +785,24 @@ extension _Methods on ZdsFilePickerState { } } + void showToast(BuildContext context, String title) { + ScaffoldMessenger.of(context).showZdsToast( + ZdsToast( + title: Text(title), + leading: const Icon(ZdsIcons.check_circle), + color: ZdsToastColors.error, + actions: [ + IconButton( + onPressed: () { + ScaffoldMessenger.of(context).hideCurrentSnackBar(); + }, + icon: const Icon(ZdsIcons.close), + ), + ], + ), + ); + } + Future onPicked( BuildContext context, ZdsFileWrapper file, diff --git a/lib/src/components/organisms/file_picker/giphy_picker.dart b/lib/src/components/organisms/file_picker/giphy_picker.dart index cefbb1b..a8627f4 100644 --- a/lib/src/components/organisms/file_picker/giphy_picker.dart +++ b/lib/src/components/organisms/file_picker/giphy_picker.dart @@ -1,4 +1,5 @@ import 'dart:async'; + import 'package:extended_image/extended_image.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; @@ -20,19 +21,24 @@ class ZdsGiphyPicker extends StatefulWidget { /// /// The [key] parameter is optional and is used to control the framework's /// widget replacement and state synchronization mechanisms. - const ZdsGiphyPicker({super.key, required this.apiKey}); + const ZdsGiphyPicker({super.key, required this.apiKey, this.allowMultiple = false}); /// API Key, required to use giphy service. /// /// See [Giphy Developers](https://developers.giphy.com/). final String apiKey; + /// Check for allowing multiple files or not + final bool allowMultiple; + @override State createState() => _ZdsGiphyPickerState(); @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { super.debugFillProperties(properties); - properties.add(StringProperty('apiKey', apiKey)); + properties + ..add(StringProperty('apiKey', apiKey)) + ..add(DiagnosticsProperty('allowMultiple', allowMultiple)); } } @@ -67,6 +73,8 @@ class _ZdsGiphyPickerState extends State { /// Delay before the debounce effect takes place. late Duration debounceDelay; + List selectedGIFs = []; + @override void initState() { super.initState(); @@ -121,7 +129,21 @@ class _ZdsGiphyPickerState extends State { : null; return Scaffold( - appBar: AppBar(title: Text(ComponentStrings.of(context).get('PICK_GIF', 'Pick a Gif'))), + appBar: AppBar( + title: Text(ComponentStrings.of(context).get('PICK_GIF', 'Pick a Gif')), + actions: widget.allowMultiple + ? [ + TextButton( + onPressed: selectedGIFs.isNotEmpty + ? () { + Navigator.pop(context, selectedGIFs); + } + : null, + child: Text(ComponentStrings.of(context).get('ADD', 'Add')), + ), + ] + : [], + ), backgroundColor: Theme.of(context).colorScheme.background, body: LayoutBuilder( builder: (BuildContext context, BoxConstraints box) { @@ -169,46 +191,81 @@ class _ZdsGiphyPickerState extends State { Widget _item(BuildContext context, GiphyGif gif) { final String? url = gif.images?.previewWebp?.url; return InkWell( - onTap: () => Navigator.pop(context, gif), + onTap: () { + if (widget.allowMultiple) { + _toggleCheckBox(gif); + } else { + Navigator.pop(context, [gif]); + } + }, child: url == null ? Container() - : ExtendedImage.network( - url, - semanticLabel: gif.title, - gaplessPlayback: true, - fit: BoxFit.fill, - headers: const {'accept': 'image/*'}, - loadStateChanged: (ExtendedImageState state) => AnimatedSwitcher( - duration: const Duration(milliseconds: 350), - child: gif.images == null - ? Container() - : { - LoadState.loading: AspectRatio( - aspectRatio: 1, - child: Container(color: Theme.of(context).cardColor), - ), - LoadState.completed: AspectRatio( - aspectRatio: 1, - child: ExtendedRawImage(fit: BoxFit.fill, image: state.extendedImageInfo?.image), - ), - LoadState.failed: AspectRatio( - aspectRatio: 1, - child: Container(color: Theme.of(context).cardColor), - ), - }.get( - state.extendedImageLoadState, - fallback: AspectRatio( - aspectRatio: 1, - child: Container( - color: Theme.of(context).cardColor, + : Stack( + alignment: Alignment.bottomRight, + children: [ + ExtendedImage.network( + url, + semanticLabel: gif.title, + gaplessPlayback: true, + fit: BoxFit.fill, + headers: const {'accept': 'image/*'}, + loadStateChanged: (ExtendedImageState state) => AnimatedSwitcher( + duration: const Duration(milliseconds: 350), + child: gif.images == null + ? Container() + : { + LoadState.loading: AspectRatio( + aspectRatio: 1, + child: Container(color: Theme.of(context).cardColor), + ), + LoadState.completed: AspectRatio( + aspectRatio: 1, + child: ExtendedRawImage(fit: BoxFit.fill, image: state.extendedImageInfo?.image), + ), + LoadState.failed: AspectRatio( + aspectRatio: 1, + child: Container(color: Theme.of(context).cardColor), + ), + }.get( + state.extendedImageLoadState, + fallback: AspectRatio( + aspectRatio: 1, + child: Container( + color: Theme.of(context).cardColor, + ), + ), ), - ), - ), - ), + ), + ), + if (widget.allowMultiple) + Checkbox( + value: selectedGIFs.contains(gif), + shape: const CircleBorder(), + onChanged: (bool? value) { + _toggleCheckBox(gif); + }, + side: selectedGIFs.contains(gif) + ? const BorderSide( + color: Colors.red, + width: 2, + ) + : BorderSide.none, + ), + ], ), ); } + void _toggleCheckBox(GiphyGif gif) { + setState(() { + if (selectedGIFs.contains(gif)) { + selectedGIFs.remove(gif); + } else { + selectedGIFs.add(gif); + } + }); + } + Future _loadMore() async { if (_isLoading || _collection?.pagination?.totalCount == _list.length) { return; @@ -269,6 +326,7 @@ class _ZdsGiphyPickerState extends State { properties ..add(DiagnosticsProperty('debounceDelay', debounceDelay)) ..add(IntProperty('offset', offset)) - ..add(DiagnosticsProperty('scrollController', scrollController)); + ..add(DiagnosticsProperty('scrollController', scrollController)) + ..add(IterableProperty('selecetdGifs', selectedGIFs)); } } diff --git a/lib/src/components/organisms/html_preview/html_body.dart b/lib/src/components/organisms/html_preview/html_body.dart index 2542a72..56e3ea5 100644 --- a/lib/src/components/organisms/html_preview/html_body.dart +++ b/lib/src/components/organisms/html_preview/html_body.dart @@ -194,6 +194,7 @@ class ZdsHtml extends StatelessWidget { verticalScrollBarEnabled: false, horizontalScrollBarEnabled: false, disableHorizontalScroll: true, + iframeAllowFullscreen: true, disableVerticalScroll: true, supportZoom: false, disableContextMenu: true, diff --git a/lib/src/components/organisms/quill_editor/quill_editor.dart b/lib/src/components/organisms/quill_editor/quill_editor.dart index 6fbdf86..a64fb15 100644 --- a/lib/src/components/organisms/quill_editor/quill_editor.dart +++ b/lib/src/components/organisms/quill_editor/quill_editor.dart @@ -80,7 +80,6 @@ class ZdsQuillEditor extends StatelessWidget { final editor = QuillEditor.basic( configurations: QuillEditorConfigurations( controller: controller, - readOnly: readOnly, keyboardAppearance: keyboardAppearance ?? Brightness.light, embedBuilders: embedBuilders, padding: padding, diff --git a/pubspec.yaml b/pubspec.yaml index 2aa3ed9..78ebdd4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -29,7 +29,7 @@ dependencies: dropdown_button2: ^2.1.4 expand_tap_area: ^1.1.0 extended_image: ^8.2.0 - file_picker: ^6.1.1 + file_picker: ^8.0.3 flutter: sdk: flutter flutter_colorpicker: ^1.0.3 @@ -53,7 +53,7 @@ dependencies: image_editor_plus: ^1.0.3 image_picker: ^1.0.2 interval_time_picker: ^2.0.0+5 - intl: ^0.18.0 + intl: ^0.18.1 just_audio: ^0.9.36 linked_scroll_controller: ^0.2.0 mime: ^1.0.0 @@ -63,7 +63,7 @@ dependencies: path_provider: ^2.0.2 popover: ^0.3.0 record: ^5.0.4 - share_plus: ^7.2.2 + share_plus: ^9.0.0 shared_preferences: ^2.2.2 shimmer: ^3.0.0 table_calendar: ^3.0.3 @@ -73,7 +73,7 @@ dependencies: video_compress: ^3.1.0 video_player: ^2.7.2 vsc_quill_delta_to_html: ^1.0.3 - zeta_flutter: ^0.4.0 + zeta_flutter: ^0.8.1 dev_dependencies: flutter_test: @@ -81,6 +81,9 @@ dev_dependencies: lottie: ^3.0.0 zds_analysis: ^1.0.0 +dependency_overrides: + intl: 0.19.0 + flutter: assets: - lib/assets/images/