adding multilingual support

This commit is contained in:
Azmat-7860
2026-10-03 15:04:48 +05:30
parent 3785ea1e45
commit 0d7785b242
51 changed files with 3007 additions and 250 deletions
@@ -1,3 +1,4 @@
import 'package:base_project/l10n/app_localizations.dart';
import 'package:base_project/utils/image_constant.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
@@ -27,16 +28,16 @@ class ShowSnackAlert {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
if (color1 == Colors.red.shade400)
const Text(
'Oh Snap!',
Text(
AppLocalizations.of(context)!.ohSnap,
style: TextStyle(fontSize: 18, color: Colors.white),
),
if (color1 == Colors.orange.shade400)
const Text('Alert',
Text(AppLocalizations.of(context)!.alertTitle,
style:
TextStyle(fontSize: 18, color: Colors.white)),
if (color1 == Colors.green.shade600)
const Text('Success',
Text(AppLocalizations.of(context)!.successTitle,
style:
TextStyle(fontSize: 18, color: Colors.white)),
Text(