Update: 2026-06-23 17:25:29
This commit is contained in:
@@ -438,8 +438,6 @@ class MarketingPage extends StatelessWidget {
|
||||
padding: const EdgeInsets.only(bottom: 12),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
@@ -571,6 +569,13 @@ class MarketingPage extends StatelessWidget {
|
||||
return const Center(child: CircularProgressIndicator(color: _accent));
|
||||
}
|
||||
|
||||
return ListView.builder(
|
||||
padding: const EdgeInsets.all(16),
|
||||
itemCount: c.campaignsLog.length,
|
||||
itemBuilder: (context, index) {
|
||||
final log = c.campaignsLog[index];
|
||||
final channel = log['channel']?.toString().toUpperCase() ?? 'SMS';
|
||||
|
||||
Color channelColor = _info;
|
||||
if (channel == 'SMS') channelColor = _success;
|
||||
if (channel == 'WHATSAPP') channelColor = const Color(0xFF25D366);
|
||||
@@ -602,19 +607,19 @@ class MarketingPage extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
Text(
|
||||
log['created_at'] ?? "",
|
||||
log['created_at']?.toString() ?? "",
|
||||
style: const TextStyle(color: _textSecondary, fontSize: 11),
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
Text(
|
||||
log['campaign_name'] ?? "حملة استعادة تلقائية",
|
||||
log['campaign_name']?.toString() ?? "حملة استعادة تلقائية",
|
||||
style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 14, color: _textPrimary),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
Text(
|
||||
log['message_body'] ?? "",
|
||||
log['message_body']?.toString() ?? "",
|
||||
style: const TextStyle(fontSize: 12, color: _textSecondary, height: 1.4),
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
|
||||
Reference in New Issue
Block a user