From 24321bbd32a832c185f2eb581baa743a13020d34 Mon Sep 17 00:00:00 2001 From: OkaykOrhmn Date: Sun, 24 Nov 2024 09:54:44 +0330 Subject: [PATCH] "Updated text fields in BotAssistantsPage and CreateBotAssistantsPage: added maxLines and overflow to a Text widget, increased maxLength for several text inputs, and updated corresponding hints and descriptions." --- lib/views/ai/bot_assistants_page.dart | 2 ++ lib/views/ai/create_bot_assistants_page.dart | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/views/ai/bot_assistants_page.dart b/lib/views/ai/bot_assistants_page.dart index a26824b..39b5c75 100644 --- a/lib/views/ai/bot_assistants_page.dart +++ b/lib/views/ai/bot_assistants_page.dart @@ -235,6 +235,8 @@ class _BotAssistantsPageState extends State { fontSize: 16, fontWeight: FontWeight.bold, color: Theme.of(context).colorScheme.checkFav, + maxLines: 1, + overflow: TextOverflow.ellipsis, ), const SizedBox( height: 8, diff --git a/lib/views/ai/create_bot_assistants_page.dart b/lib/views/ai/create_bot_assistants_page.dart index a808e3a..8f42a7c 100644 --- a/lib/views/ai/create_bot_assistants_page.dart +++ b/lib/views/ai/create_bot_assistants_page.dart @@ -292,7 +292,7 @@ class _CreateBotAssistantsPageState extends State { return result; }, hintText: 'ai@2024_B', - maxLength: 20, + maxLength: 40, ), ), const SizedBox( @@ -316,7 +316,7 @@ class _CreateBotAssistantsPageState extends State { child: DidvanText( state.loadingName ? '...درحال بررسی اسم' - : 'نام منحصر به فرد شامل 4 تا 20 کاراکتر (حروف، اعداد، خط تیره، نقطه و زیرخط) ', + : 'نام منحصر به فرد شامل 4 تا 40 کاراکتر (حروف، اعداد، خط تیره، نقطه و زیرخط) ', textAlign: TextAlign.right, fontSize: 12, color: Theme.of(context).colorScheme.caption, @@ -337,7 +337,7 @@ class _CreateBotAssistantsPageState extends State { textInputType: TextInputType.multiline, minLine: 4, maxLine: 4, - maxLength: 200, + maxLength: 800, hasHeight: false, showLen: true, onChanged: (value) { @@ -415,8 +415,8 @@ class _CreateBotAssistantsPageState extends State { 'به ربات خود بگویید که چگونه رفتار کند و چگونه به پیام‌های کاربر پاسخ دهد. سعی کنید تا حد امکان پیام واضح و مشخص باشد.', textInputType: TextInputType.multiline, minLine: 6, - maxLine: 6, - maxLength: 2000, + maxLine: 10, + // maxLength: 2000, hasHeight: false, showLen: true, onChanged: (value) {