Language Change
This commit is contained in:
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
import 'package:material_symbols_icons/material_symbols_icons.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||
|
||||
class EnquiryScreen extends StatefulWidget {
|
||||
const EnquiryScreen({super.key});
|
||||
@@ -16,7 +17,7 @@ class _EnquiryScreen extends State<EnquiryScreen> {
|
||||
if (await canLaunchUrl(emailUri)) {
|
||||
await launchUrl(emailUri);
|
||||
} else {
|
||||
debugPrint('Could not launch email client for $email');
|
||||
debugPrint('${AppLocalizations.of(context).emailLaunchError} $email');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +26,7 @@ class _EnquiryScreen extends State<EnquiryScreen> {
|
||||
if (await canLaunchUrl(phoneUri)) {
|
||||
await launchUrl(phoneUri);
|
||||
} else {
|
||||
debugPrint('Could not launch dialer for $phone');
|
||||
debugPrint('${AppLocalizations.of(context).dialerLaunchError} $phone');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,8 +59,8 @@ class _EnquiryScreen extends State<EnquiryScreen> {
|
||||
Navigator.pop(context);
|
||||
},
|
||||
),
|
||||
title: const Text(
|
||||
'Enquiry',
|
||||
title: Text(
|
||||
AppLocalizations.of(context).enquiry,
|
||||
style: TextStyle(color: Colors.black, fontWeight: FontWeight.w500),
|
||||
),
|
||||
centerTitle: false,
|
||||
@@ -87,16 +88,17 @@ class _EnquiryScreen extends State<EnquiryScreen> {
|
||||
// … existing Mail us / Call us / Write to us …
|
||||
|
||||
const SizedBox(height: 20),
|
||||
const Text("Write to us", style: TextStyle(color: Colors.grey)),
|
||||
Text(AppLocalizations.of(context).writeToUs,
|
||||
style: TextStyle(color: Colors.grey)),
|
||||
const SizedBox(height: 4),
|
||||
const Text(
|
||||
"complaint@kccb.in",
|
||||
style: TextStyle(color: Colors.blue),
|
||||
),
|
||||
|
||||
const SizedBox(height: 20),
|
||||
SizedBox(height: 20),
|
||||
Text(
|
||||
"Key Contacts",
|
||||
AppLocalizations.of(context).keyContacts,
|
||||
style: TextStyle(
|
||||
fontSize: 17,
|
||||
color: Theme.of(context).primaryColor,
|
||||
@@ -106,25 +108,25 @@ class _EnquiryScreen extends State<EnquiryScreen> {
|
||||
Divider(color: Colors.grey[300]),
|
||||
const SizedBox(height: 16),
|
||||
_buildContactItem(
|
||||
"Chairman",
|
||||
AppLocalizations.of(context).chairman,
|
||||
"chairman@kccb.in",
|
||||
"01892-222677",
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
_buildContactItem(
|
||||
"Managing Director",
|
||||
AppLocalizations.of(context).managingDirector,
|
||||
"md@kccb.in",
|
||||
"01892-224969",
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
_buildContactItem(
|
||||
"General Manager (West)",
|
||||
AppLocalizations.of(context).gmWest,
|
||||
"gmw@kccb.in",
|
||||
"01892-223280",
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
_buildContactItem(
|
||||
"General Manager (North)",
|
||||
AppLocalizations.of(context).gmNorth,
|
||||
"gmn@kccb.in",
|
||||
"01892-224607",
|
||||
),
|
||||
|
Reference in New Issue
Block a user