mirrored_repositories/flutter-ui-designs/lib/MiniApps/HealtyFoodDelivery/Screens/DetailScreen
import 'package:flutter/material.dart';
import 'package:flutter_font_icons/flutter_font_icons.dart';

import 'package:flutter_uis/configs/AppDimensions.dart';
import 'package:flutter_uis/utils/Utils.dart';

class HFDDetailScreenHeader extends StatelessWidget {
  HFDDetailScreenHeader();

  @override
  Widget build(BuildContext context) {
    final padding = AppDimensions.padding * 3;
    return Positioned(
      top: padding,
      left: padding,
      right: padding,
      child: Padding(
        padding: Utils.safePaddingUnit(context, "top"),
        child: Row(
          children: <Widget>[
            SizedBox(
              width: 50,
              height: 50,
              child: Transform.translate(
                offset: Offset(4, 0.0),
                child: BackButton(
                  style: ButtonStyle(
                    backgroundColor: MaterialStateProperty.all(
                      Colors.white.withOpacity(0.3),
                    ),
                  ),
                ),
              ),
            ),
            Flexible(child: Container()),
            Container(
              width: 50,
              height: 50,
              decoration: BoxDecoration(
                shape: BoxShape.circle,
                color: Colors.white.withOpacity(0.3),
              ),
              child: IconButton(
                onPressed: () {},
                icon: Icon(MaterialCommunityIcons.heart_outline),
              ),
            )
          ],
        ),
      ),
    );
  }
}
