home_action_bar.dart 1.63 KB
import 'package:flutter/material.dart';

class HomeActionWidgets extends StatelessWidget {
  const HomeActionWidgets({
    Key? key,
    this.funcStar,
    this.funcShare,
    this.funcMore,
  }) : super(key: key);

  final Function? funcStar;
  final Function? funcShare;
  final Function? funcMore;

  @override
  Widget build(BuildContext context) {
    const iconHeight = 30.0;
    const iconWidth = 30.0;
    const iconSize = 20.0;
    return Row(
      mainAxisSize: MainAxisSize.min,
      mainAxisAlignment: MainAxisAlignment.center,
      children: [
        SizedBox(
          height: iconHeight,
          width: iconWidth,
          child: IconButton(
            padding: const EdgeInsets.all(0.0),
            icon: const Icon(
              Icons.star_border,
              size: iconSize,
              color: Colors.white,
            ),
            onPressed: () {
              funcStar!();
            },
          ),
        ),
        SizedBox(
          height: iconHeight,
          width: iconWidth,
          child: IconButton(
            padding: const EdgeInsets.all(0.0),
            icon: const Icon(
              Icons.ios_share,
              size: iconSize,
              color: Colors.white,
            ),
            onPressed: () {},
          ),
        ),
        SizedBox(
          height: iconHeight,
          width: iconWidth,
          child: IconButton(
            padding: const EdgeInsets.all(0.0),
            onPressed: () {},
            icon: const Icon(
              Icons.more_horiz,
              size: iconSize,
              color: Colors.white,
            ),
          ),
        ),
      ],
    );
  }
}