"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."

This commit is contained in:
OkaykOrhmn 2024-11-24 09:54:44 +03:30
parent 5b37c89801
commit 24321bbd32
2 changed files with 7 additions and 5 deletions

View File

@ -235,6 +235,8 @@ class _BotAssistantsPageState extends State<BotAssistantsPage> {
fontSize: 16,
fontWeight: FontWeight.bold,
color: Theme.of(context).colorScheme.checkFav,
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
const SizedBox(
height: 8,

View File

@ -292,7 +292,7 @@ class _CreateBotAssistantsPageState extends State<CreateBotAssistantsPage> {
return result;
},
hintText: 'ai@2024_B',
maxLength: 20,
maxLength: 40,
),
),
const SizedBox(
@ -316,7 +316,7 @@ class _CreateBotAssistantsPageState extends State<CreateBotAssistantsPage> {
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<CreateBotAssistantsPage> {
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<CreateBotAssistantsPage> {
'به ربات خود بگویید که چگونه رفتار کند و چگونه به پیام‌های کاربر پاسخ دهد. سعی کنید تا حد امکان پیام واضح و مشخص باشد.',
textInputType: TextInputType.multiline,
minLine: 6,
maxLine: 6,
maxLength: 2000,
maxLine: 10,
// maxLength: 2000,
hasHeight: false,
showLen: true,
onChanged: (value) {