Header_Home function

Widget Header_Home(
  1. BuildContext context,
  2. String title,
  3. String? profile_picture,
  4. dynamic onTap, [
  5. Widget? right,
])

Implementation

Widget Header_Home(BuildContext context, String title, String? profile_picture, onTap, [Widget? right]) {
    return Header(
        InkWell( onTap: onTap, child: Container(
            padding: EdgeInsets.symmetric(horizontal: 16),
            child: ProfilePhoto(context, profile_picture),
        )),
        CustomText(variant: 'heading', font_size: 'h3', txt: title),
        right ?? Container()
    );
}