import 'package:diplomaticquarterapp/uitl/app_toast.dart'; import 'package:diplomaticquarterapp/widgets/data_display/text.dart'; import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart'; import 'package:flutter/material.dart'; import 'package:flutter_svg/flutter_svg.dart'; class AccountServices extends StatelessWidget { final String title; final String serviceImage; final Function onTap; const AccountServices({this.title, this.onTap, this.serviceImage}); @override Widget build(BuildContext context) { return Expanded( child: InkWell( onTap: onTap, // () { // if (customerId == null) { // AppToast.showErrorToast( // message: "Customer not found"); // return; // } // Navigator.push( // context, // FadePage( // page: OrderPage( // customerID: customerId))); // }, child: Column( children: [ // Image(image: AssetImage('assets/images/pharmacy/orders_icon.svg')), SvgPicture.asset( '$serviceImage', width: 55, height: 55, ), SizedBox( height: 7, ), Texts( title, fontSize: 15.0, fontWeight: FontWeight.bold, ), ], ), ), ); } }