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.
HMG_Patient_App/lib/widgets/data_display/services)contaniner.dart

54 lines
1.5 KiB
Dart

import 'package:hmg_patient_app/theme/colors.dart';
import 'package:hmg_patient_app/widgets/data_display/text.dart';
import 'package:flutter/material.dart';
class ServicesContainer extends StatelessWidget {
final String? title;
final String? imageLocation;
final VoidCallback? onTap;
ServicesContainer({this.title, this.imageLocation, this.onTap});
@override
Widget build(BuildContext context) {
return InkWell(
onTap: () => onTap!(),
child: Container(
height: 60,
margin: EdgeInsets.all(8),
decoration: BoxDecoration(
// color: Theme.of(context).textTheme.headline2!.color,
color: CustomColors.white,
shape: BoxShape.rectangle,
borderRadius: BorderRadius.circular(7),
),
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Row(
children: [
Image.asset(
imageLocation!,
height: 30,
width: 40,
),
SizedBox(
width: 20,
),
Texts(
title,
fontSize: 16,
color: Colors.black,
),
],
),
],
),
),
),
);
}
}