forked from eatvio/eatvio_app
40 lines
754 B
Dart
40 lines
754 B
Dart
import 'package:eatvio_app/core/app_export.dart';
|
|
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,
|
|
);
|
|
|
|
String? imagePath;
|
|
|
|
EdgeInsetsGeometry? margin;
|
|
|
|
Function? onTap;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return InkWell(
|
|
onTap: onTapCall,
|
|
child: Padding(
|
|
padding: margin ?? EdgeInsets.zero,
|
|
child: CustomImageView(
|
|
imagePath: imagePath,
|
|
height: 50.adaptSize,
|
|
width: 50.adaptSize,
|
|
fit: BoxFit.contain,
|
|
),
|
|
),
|
|
);
|
|
}
|
|
|
|
void onTapCall() {
|
|
}
|
|
}
|