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