"Updated theme colors in BotAssistantsPage and CreateBotAssistantsPage"
This commit is contained in:
parent
f28592c421
commit
28b9d7efb7
|
|
@ -234,7 +234,7 @@ class _BotAssistantsPageState extends State<BotAssistantsPage> {
|
||||||
assistants.name ?? '',
|
assistants.name ?? '',
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
color: Theme.of(context).colorScheme.primary,
|
color: Theme.of(context).colorScheme.checkFav,
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 8,
|
height: 8,
|
||||||
|
|
@ -243,7 +243,7 @@ class _BotAssistantsPageState extends State<BotAssistantsPage> {
|
||||||
DidvanText(
|
DidvanText(
|
||||||
assistants.description!,
|
assistants.description!,
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: Theme.of(context).colorScheme.disabledText,
|
color: Theme.of(context).colorScheme.text,
|
||||||
maxLines: 2,
|
maxLines: 2,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
|
|
@ -256,9 +256,10 @@ class _BotAssistantsPageState extends State<BotAssistantsPage> {
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
const Icon(
|
Icon(
|
||||||
DidvanIcons.calendar_day_light,
|
DidvanIcons.calendar_day_light,
|
||||||
size: 18,
|
size: 18,
|
||||||
|
color: Theme.of(context).colorScheme.caption,
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
width: 4,
|
width: 4,
|
||||||
|
|
@ -267,6 +268,7 @@ class _BotAssistantsPageState extends State<BotAssistantsPage> {
|
||||||
DateTime.parse(assistants.createdAt!)
|
DateTime.parse(assistants.createdAt!)
|
||||||
.toPersianDateStr(),
|
.toPersianDateStr(),
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
|
color: Theme.of(context).colorScheme.caption,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
@ -279,19 +281,25 @@ class _BotAssistantsPageState extends State<BotAssistantsPage> {
|
||||||
context, Routes.createBotAssistants,
|
context, Routes.createBotAssistants,
|
||||||
arguments: assistants.id);
|
arguments: assistants.id);
|
||||||
},
|
},
|
||||||
child: const Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.end,
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
children: [
|
children: [
|
||||||
Icon(
|
Icon(
|
||||||
DidvanIcons.user_edit_light,
|
DidvanIcons.user_edit_light,
|
||||||
size: 18,
|
size: 18,
|
||||||
|
color: Theme.of(context)
|
||||||
|
.colorScheme
|
||||||
|
.caption,
|
||||||
),
|
),
|
||||||
SizedBox(
|
const SizedBox(
|
||||||
width: 4,
|
width: 4,
|
||||||
),
|
),
|
||||||
DidvanText(
|
DidvanText(
|
||||||
'ویرایش',
|
'ویرایش',
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
|
color: Theme.of(context)
|
||||||
|
.colorScheme
|
||||||
|
.caption,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
@ -313,6 +321,9 @@ class _BotAssistantsPageState extends State<BotAssistantsPage> {
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
|
color: Theme.of(context)
|
||||||
|
.colorScheme
|
||||||
|
.caption,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -390,6 +390,8 @@ class _CreateBotAssistantsPageState extends State<CreateBotAssistantsPage> {
|
||||||
.surface
|
.surface
|
||||||
.withOpacity(0.5),
|
.withOpacity(0.5),
|
||||||
),
|
),
|
||||||
|
closedFillColor:
|
||||||
|
Theme.of(context).colorScheme.surface,
|
||||||
closedBorder:
|
closedBorder:
|
||||||
Border.all(color: Colors.grey),
|
Border.all(color: Colors.grey),
|
||||||
expandedFillColor: Theme.of(context)
|
expandedFillColor: Theme.of(context)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue