refactor: Update FAQ and Support screens to use contentTheme for colors and improve UI consistency
This commit is contained in:
parent
d62f0d2c60
commit
2f283765c1
@ -112,11 +112,11 @@ class _FAQScreenState extends State<FAQScreen> with UIMixin {
|
||||
Container(
|
||||
padding: const EdgeInsets.all(12),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.blue.withOpacity(0.1),
|
||||
color: contentTheme.primary.withOpacity(0.1),
|
||||
shape: BoxShape.circle,
|
||||
),
|
||||
child: const Icon(LucideIcons.badge_help,
|
||||
color: Colors.blue, size: 24),
|
||||
child: Icon(LucideIcons.badge_help,
|
||||
color: contentTheme.primary, size: 24),
|
||||
),
|
||||
const SizedBox(width: 16),
|
||||
Expanded(
|
||||
|
||||
@ -34,13 +34,11 @@ class _SupportScreenState extends State<SupportScreen> with UIMixin {
|
||||
final Uri uri = Uri.parse(action);
|
||||
|
||||
if (await canLaunchUrl(uri)) {
|
||||
// Use LaunchMode.externalApplication for mailto/tel
|
||||
await launchUrl(
|
||||
uri,
|
||||
mode: LaunchMode.externalApplication,
|
||||
);
|
||||
} else {
|
||||
// Fallback if no app found
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
const SnackBar(content: Text('No app found to open this link.')),
|
||||
);
|
||||
@ -95,10 +93,11 @@ class _SupportScreenState extends State<SupportScreen> with UIMixin {
|
||||
Container(
|
||||
padding: const EdgeInsets.all(12),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.red.withOpacity(0.1),
|
||||
color: contentTheme.primary.withOpacity(0.1),
|
||||
shape: BoxShape.circle,
|
||||
),
|
||||
child: Icon(contact["icon"], color: Colors.red, size: 24),
|
||||
child:
|
||||
Icon(contact["icon"], color: contentTheme.primary, size: 24),
|
||||
),
|
||||
const SizedBox(width: 16),
|
||||
Expanded(
|
||||
@ -145,10 +144,10 @@ class _SupportScreenState extends State<SupportScreen> with UIMixin {
|
||||
Container(
|
||||
padding: const EdgeInsets.all(12),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.red.withOpacity(0.1),
|
||||
color: contentTheme.primary.withOpacity(0.1),
|
||||
shape: BoxShape.circle,
|
||||
),
|
||||
child: Icon(icon, color: Colors.red, size: 28),
|
||||
child: Icon(icon, color: contentTheme.primary, size: 28),
|
||||
),
|
||||
const SizedBox(width: 16),
|
||||
Expanded(
|
||||
@ -176,9 +175,7 @@ class _SupportScreenState extends State<SupportScreen> with UIMixin {
|
||||
),
|
||||
body: SafeArea(
|
||||
child: RefreshIndicator(
|
||||
onRefresh: () async {
|
||||
// Optional: Implement refresh logic
|
||||
},
|
||||
onRefresh: () async {},
|
||||
child: SingleChildScrollView(
|
||||
physics: const AlwaysScrollableScrollPhysics(),
|
||||
child: Column(
|
||||
@ -190,7 +187,7 @@ class _SupportScreenState extends State<SupportScreen> with UIMixin {
|
||||
child: MyText.titleLarge(
|
||||
"Need Help?",
|
||||
fontWeight: 700,
|
||||
color: Colors.red,
|
||||
color: contentTheme.primary,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user