forked from eatvio/eatvio_app
feature(registration): refactor
This commit is contained in:
@@ -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() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user