64 lines
1.6 KiB
Dart
64 lines
1.6 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:kmobile/l10n/app_localizations.dart';
|
|
|
|
class FaqsScreen extends StatefulWidget {
|
|
const FaqsScreen({super.key});
|
|
|
|
@override
|
|
State<FaqsScreen> createState() => _FaqsScreenState();
|
|
}
|
|
|
|
class _FaqsScreenState extends State<FaqsScreen> {
|
|
@override
|
|
void initState() {
|
|
super.initState();
|
|
_getFaqs();
|
|
}
|
|
|
|
// A placeholder for your future API call
|
|
Future<void> _getFaqs() async {
|
|
// TODO: Implement API call to fetch FAQs data
|
|
// For now, simulating a network call with a delay
|
|
await Future.delayed(const Duration(seconds: 1));
|
|
// In a real implementation, you would process the API response here
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
title: Row(
|
|
children: [
|
|
Flexible(
|
|
child: Text(
|
|
AppLocalizations.of(context).faq,
|
|
softWrap: true,
|
|
style: const TextStyle(
|
|
fontSize: 16.5,
|
|
),
|
|
textAlign: TextAlign.left,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
body: Stack(
|
|
children: [
|
|
IgnorePointer(
|
|
child: Center(
|
|
child: Opacity(
|
|
opacity: 0.1, // Low opacity
|
|
child: Image.asset(
|
|
'assets/images/logo.png',
|
|
width: 200, // Adjust size as needed
|
|
height: 200, // Adjust size as needed
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|