adding multilingual support
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user