-
Notifications
You must be signed in to change notification settings - Fork 0
/
featureButton.dart
54 lines (51 loc) · 1.35 KB
/
featureButton.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
42
43
44
45
46
47
48
49
50
51
52
53
54
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:interiit_prep/shared/appColors.dart';
class FeatureButton extends StatelessWidget {
FeatureButton({
Key? key,
required this.image,
required this.title,
}) : super(key: key);
final String image, title;
@override
Widget build(BuildContext context) {
return Container(
margin: EdgeInsets.symmetric(vertical: 6),
padding: EdgeInsets.all(13),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(12),
),
child: Row(
children: [
Container(
width: 60,
height: 60,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(12),
image: DecorationImage(
image: AssetImage(image),
fit: BoxFit.fill,
),
),
),
SizedBox(width: 14,),
Expanded(
child: Text(
title,
style: GoogleFonts.lato(
textStyle: TextStyle(
fontSize: 18,
color: AppColors.primaryBlackColor
),
),
),
),
Spacer(),
Icon(Icons.arrow_forward)
],
),
);
}
}