forked from eatvio/eatvio_app
45 lines
910 B
Dart
45 lines
910 B
Dart
import 'package:eatvio_app/core/app_export.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
// ignore: must_be_immutable
|
|
class AppbarTitleCircleimage extends StatelessWidget {
|
|
AppbarTitleCircleimage({
|
|
Key? key,
|
|
this.imagePath,
|
|
this.margin,
|
|
this.onTap,
|
|
}) : super(
|
|
key: key,
|
|
);
|
|
|
|
String? imagePath;
|
|
|
|
EdgeInsetsGeometry? margin;
|
|
|
|
Function? onTap;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return InkWell(
|
|
borderRadius: BorderRadiusStyle.circleBorder8,
|
|
onTap: onTapCall,
|
|
child: Padding(
|
|
padding: margin ?? EdgeInsets.zero,
|
|
child: CustomImageView(
|
|
imagePath: imagePath,
|
|
height: 40.adaptSize,
|
|
width: 40.adaptSize,
|
|
fit: BoxFit.contain,
|
|
radius: BorderRadius.circular(
|
|
20.h,
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
|
|
void onTapCall() {
|
|
onTap!.call();
|
|
}
|
|
}
|