"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:
parent
5b37c89801
commit
24321bbd32
|
|
@ -235,6 +235,8 @@ class _BotAssistantsPageState extends State<BotAssistantsPage> {
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
color: Theme.of(context).colorScheme.checkFav,
|
color: Theme.of(context).colorScheme.checkFav,
|
||||||
|
maxLines: 1,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 8,
|
height: 8,
|
||||||
|
|
|
||||||
|
|
@ -292,7 +292,7 @@ class _CreateBotAssistantsPageState extends State<CreateBotAssistantsPage> {
|
||||||
return result;
|
return result;
|
||||||
},
|
},
|
||||||
hintText: 'ai@2024_B',
|
hintText: 'ai@2024_B',
|
||||||
maxLength: 20,
|
maxLength: 40,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
|
|
@ -316,7 +316,7 @@ class _CreateBotAssistantsPageState extends State<CreateBotAssistantsPage> {
|
||||||
child: DidvanText(
|
child: DidvanText(
|
||||||
state.loadingName
|
state.loadingName
|
||||||
? '...درحال بررسی اسم'
|
? '...درحال بررسی اسم'
|
||||||
: 'نام منحصر به فرد شامل 4 تا 20 کاراکتر (حروف، اعداد، خط تیره، نقطه و زیرخط) ',
|
: 'نام منحصر به فرد شامل 4 تا 40 کاراکتر (حروف، اعداد، خط تیره، نقطه و زیرخط) ',
|
||||||
textAlign: TextAlign.right,
|
textAlign: TextAlign.right,
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: Theme.of(context).colorScheme.caption,
|
color: Theme.of(context).colorScheme.caption,
|
||||||
|
|
@ -337,7 +337,7 @@ class _CreateBotAssistantsPageState extends State<CreateBotAssistantsPage> {
|
||||||
textInputType: TextInputType.multiline,
|
textInputType: TextInputType.multiline,
|
||||||
minLine: 4,
|
minLine: 4,
|
||||||
maxLine: 4,
|
maxLine: 4,
|
||||||
maxLength: 200,
|
maxLength: 800,
|
||||||
hasHeight: false,
|
hasHeight: false,
|
||||||
showLen: true,
|
showLen: true,
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
|
|
@ -415,8 +415,8 @@ class _CreateBotAssistantsPageState extends State<CreateBotAssistantsPage> {
|
||||||
'به ربات خود بگویید که چگونه رفتار کند و چگونه به پیامهای کاربر پاسخ دهد. سعی کنید تا حد امکان پیام واضح و مشخص باشد.',
|
'به ربات خود بگویید که چگونه رفتار کند و چگونه به پیامهای کاربر پاسخ دهد. سعی کنید تا حد امکان پیام واضح و مشخص باشد.',
|
||||||
textInputType: TextInputType.multiline,
|
textInputType: TextInputType.multiline,
|
||||||
minLine: 6,
|
minLine: 6,
|
||||||
maxLine: 6,
|
maxLine: 10,
|
||||||
maxLength: 2000,
|
// maxLength: 2000,
|
||||||
hasHeight: false,
|
hasHeight: false,
|
||||||
showLen: true,
|
showLen: true,
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue