import 'package:flutter/material.dart'; import 'package:apidash/consts.dart'; class FormDataFileButton extends StatelessWidget { const FormDataFileButton({super.key, this.onPressed, this.initialValue}); final VoidCallback? onPressed; final String? initialValue; @override Widget build(BuildContext context) { return ElevatedButton.icon( icon: const Icon( Icons.snippet_folder_rounded, size: 20, ), style: ElevatedButton.styleFrom( minimumSize: const Size.fromHeight(kDataTableRowHeight), shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(6), ), ), onPressed: onPressed, label: Text( initialValue ?? kLabelSelectFile, overflow: TextOverflow.ellipsis, style: kFormDataButtonLabelTextStyle, ), ); } }