import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; class LinkButton extends StatelessWidget { final VoidCallback? onPressed; final String text; LinkButton(this.text, this.onPressed); @override Widget build(BuildContext context) { return GestureDetector( onTap: onPressed, child: Padding( padding: EdgeInsets.only(top: 2.0.h, bottom: 2.0.h), child: Text( text, style: TextStyle( fontWeight: FontWeight.w500, fontSize: 16, color: Colors.black, decoration: TextDecoration.underline, ), ), ), ); } }