Files
workavia-mail-front/lib/features/login/presentation/widgets/login_back_button.dart
T
dab246 9b661b0688 TF-2271 Implement dns lookup to get jmap url
Signed-off-by: dab246 <tdvu@linagora.com>
(cherry picked from commit 7b0c0015a15a243b6b4aef3d78e7653d556ad109)
2023-11-21 16:54:33 +07:00

31 lines
805 B
Dart

import 'package:core/presentation/extensions/color_extension.dart';
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';
class LoginBackButton extends StatelessWidget {
final _imagePath = Get.find<ImagePaths>();
final VoidCallback onBackAction;
LoginBackButton({super.key, required this.onBackAction});
@override
Widget build(BuildContext context) {
return PositionedDirectional(
start: 12,
top: 12,
child: IconButton(
onPressed: onBackAction,
icon: SvgPicture.asset(
_imagePath.icBack,
alignment: Alignment.center,
colorFilter: AppColor.primaryColor.asFilter()
)
),
);
}
}