DiscoverModule/lib/contacts_module/custom_widget/clickable_row.dart

43 lines
1.1 KiB
Dart

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<ClickRow> createState() => _ClickRowState();
}
class _ClickRowState extends State<ClickRow> {
@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),
),
],
),
),
);
}
}