-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCronometroBotao.dart
More file actions
43 lines (40 loc) · 914 Bytes
/
CronometroBotao.dart
File metadata and controls
43 lines (40 loc) · 914 Bytes
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
import 'package:flutter/material.dart';
class CronometroBotao extends StatelessWidget {
final String texto;
final IconData icone;
final void Function()? click;
const CronometroBotao({
required this.texto,
required this.icone,
this.click,
super.key,
});
@override
Widget build(BuildContext context) {
return ElevatedButton(
style: ElevatedButton.styleFrom(
backgroundColor: Colors.black,
padding: const EdgeInsets.symmetric(
horizontal: 30,
vertical: 20,
),
textStyle: const TextStyle(
fontSize: 25,
),
),
onPressed: click,
child: Row(
children: [
Padding(
padding: const EdgeInsets.only(right: 10),
child: Icon(
icone,
size: 35,
),
),
Text(texto),
],
),
);
}
}