forked from eatvio/eatvio_app
33 lines
783 B
Dart
33 lines
783 B
Dart
import 'package:eatvio_app/theme/app_decoration.dart';
|
|
import 'package:eatvio_app/widgets/custom_image_view.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class AppbarTitleCircleimage extends StatelessWidget {
|
|
const AppbarTitleCircleimage({
|
|
this.imagePath,
|
|
this.margin,
|
|
});
|
|
|
|
final String? imagePath;
|
|
final EdgeInsetsGeometry? margin;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return InkWell(
|
|
borderRadius: BorderRadiusStyle.circleBorder8,
|
|
child: Padding(
|
|
padding: margin ?? EdgeInsets.zero,
|
|
child: CustomImageView(
|
|
imagePath: imagePath,
|
|
height: 40,
|
|
width: 40,
|
|
fit: BoxFit.contain,
|
|
radius: BorderRadius.circular(
|
|
20,
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|