TF-2271 Implement dns lookup to get jmap url

Signed-off-by: dab246 <tdvu@linagora.com>
(cherry picked from commit 7b0c0015a15a243b6b4aef3d78e7653d556ad109)
This commit is contained in:
dab246
2023-11-10 17:06:50 +07:00
committed by Dat Vu
parent c0bef69435
commit 9b661b0688
33 changed files with 773 additions and 483 deletions
@@ -2,6 +2,7 @@
import 'package:core/presentation/resources/image_paths.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:get/get.dart';
import 'package:tmail_ui_user/features/login/domain/model/recent_login_url.dart';
import 'package:tmail_ui_user/features/login/domain/model/recent_login_username.dart';
@@ -9,13 +10,15 @@ class RecentItemTileWidget<T> extends StatelessWidget {
final T item;
final EdgeInsets? contentPadding;
final ImagePaths imagePath;
final _imagePath = Get.find<ImagePaths>();
const RecentItemTileWidget(this.item, {
required this.imagePath,
RecentItemTileWidget(
this.item,
{
Key? key,
this.contentPadding,
}) : super(key: key);
}
) : super(key: key);
@override
Widget build(BuildContext context) {
@@ -23,14 +26,17 @@ class RecentItemTileWidget<T> extends StatelessWidget {
padding: contentPadding ?? const EdgeInsets.all(12),
child: Row(
children: [
SvgPicture.asset(imagePath.icClockSB),
SvgPicture.asset(_imagePath.icClockSB),
const SizedBox(width: 8),
Expanded(
child: Text(_getTitle(item),
style: const TextStyle(
fontSize: 15,
fontWeight: FontWeight.normal,
color: Colors.black)),
child: Text(
_getTitle(item),
style: const TextStyle(
fontSize: 15,
fontWeight: FontWeight.normal,
color: Colors.black
)
),
),
],
),