home_action_bar.dart
1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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,
),
),
),
],
);
}
}