-
Notifications
You must be signed in to change notification settings - Fork 0
/
Button.dart
41 lines (33 loc) · 914 Bytes
/
Button.dart
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
import 'package:flutter/material.dart';
class MyButton extends StatelessWidget {
final String text;
final void Function()? onTap;
const MyButton({super.key, required this.text, required this.onTap});
@override
Widget build(BuildContext context) {
return GestureDetector(
onTap: onTap,
child:Container(
decoration: BoxDecoration(
color:const Color.fromARGB(255, 233, 230, 176),
borderRadius: BorderRadius.circular(40)
),
padding: const EdgeInsets.all(20),
child: const Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
"View More",
style: TextStyle(color: Colors.black, fontWeight: FontWeight.bold),
),
//icon
Icon(
Icons.arrow_forward,
color: Colors.black,
)
],
)
)
);
}
}