You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.4 KiB
Dart
48 lines
1.4 KiB
Dart
import 'package:car_customer_app/extensions/int_extensions.dart';
|
|
import 'package:car_customer_app/extensions/string_extensions.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_svg/flutter_svg.dart';
|
|
|
|
import '../../theme/colors.dart';
|
|
|
|
class ShowImageButton extends StatelessWidget {
|
|
String icon, title;
|
|
VoidCallback onClick;
|
|
|
|
ShowImageButton({required this.icon, required this.title, required this.onClick});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return InkWell(
|
|
onTap: onClick,
|
|
child: Container(
|
|
width: double.infinity,
|
|
child: Column(
|
|
children: [
|
|
Container(
|
|
width: double.infinity,
|
|
height: 120,
|
|
child: Card(
|
|
color: MyColors.darkPrimaryColor,
|
|
shape: RoundedRectangleBorder(
|
|
side: BorderSide(color: Colors.transparent, width: 1),
|
|
borderRadius: BorderRadius.circular(8),
|
|
),
|
|
child: Padding(
|
|
padding: EdgeInsets.all(26),
|
|
child: SvgPicture.asset(
|
|
icon,
|
|
color: Colors.white,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
6.height,
|
|
title.toText(color: Colors.black, isBold: true, fontSize: 16),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|