feat: language
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../../../../common/theme/theme.dart';
|
||||
import '../../../../domain/language/language.dart';
|
||||
|
||||
class LanguageTile extends StatelessWidget {
|
||||
final bool isSelected;
|
||||
final Map<String, dynamic> language;
|
||||
final Language language;
|
||||
final Function() onTap;
|
||||
const LanguageTile({
|
||||
super.key,
|
||||
@@ -42,11 +43,11 @@ class LanguageTile extends StatelessWidget {
|
||||
borderRadius: BorderRadius.circular(24),
|
||||
),
|
||||
child: Center(
|
||||
child: Text(language['flag'], style: const TextStyle(fontSize: 24)),
|
||||
child: Text(language.path, style: const TextStyle(fontSize: 24)),
|
||||
),
|
||||
),
|
||||
title: Text(
|
||||
language['name'],
|
||||
language.name,
|
||||
style: AppStyle.lg.copyWith(
|
||||
fontWeight: FontWeight.w600,
|
||||
|
||||
@@ -54,7 +55,7 @@ class LanguageTile extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
subtitle: Text(
|
||||
language['nativeName'],
|
||||
language.nativeName,
|
||||
style: AppStyle.md.copyWith(
|
||||
color: isSelected ? AppColor.primary : AppColor.textPrimary,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user