feature(registration): refactor

This commit is contained in:
mso7nueh
2024-07-14 16:30:10 +03:00
parent 12a0db5093
commit 3cdab9e1bb
31 changed files with 1214 additions and 689 deletions

View File

@@ -3,35 +3,16 @@ import 'package:flutter/material.dart';
// ignore: must_be_immutable
class AppbarTitleImage extends StatelessWidget {
AppbarTitleImage({
Key? key,
this.imagePath,
this.margin,
this.onTap,
}) : super(
key: key,
);
const AppbarTitleImage({required this.imagePath, super.key});
String? imagePath;
EdgeInsetsGeometry? margin;
Function? onTap;
final String? imagePath;
@override
Widget build(BuildContext context) {
return InkWell(
onTap: onTapCall,
child: Padding(
padding: margin ?? EdgeInsets.zero,
child: CustomImageView(
imagePath: imagePath,
height: 48,
fit: BoxFit.contain,
),
),
return CustomImageView(
imagePath: imagePath,
height: 48,
fit: BoxFit.contain,
);
}
void onTapCall() {}
}