import 'package:discover_module/contacts_module/custom_widget/text.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; class ClickRow extends StatefulWidget { final IconData? icon; final String? text; final VoidCallback? onTap; const ClickRow({super.key, this.icon, this.text, this.onTap}); @override State createState() => _ClickRowState(); } class _ClickRowState extends State { @override Widget build(BuildContext context) { return Padding( padding: const EdgeInsets.only(left: 15.0), child: InkWell( onTap: widget.onTap, child: Row( children: [ Icon( size: 16, widget.icon, color: Colors.white, ), const SizedBox(width: 3.0), Expanded( child: Text1( title: widget.text!, txtcolor: Colors.white, fontweight: FontWeight.normal, txtfont: 14.0), ), ], ), ), ); } }