9b661b0688
Signed-off-by: dab246 <tdvu@linagora.com> (cherry picked from commit 7b0c0015a15a243b6b4aef3d78e7653d556ad109)
31 lines
805 B
Dart
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()
|
|
)
|
|
),
|
|
);
|
|
}
|
|
}
|