content: import 'package:flutter/material.dart';
  
  class EditableField extends StatelessWidget {
    const EditableField({
      Key? key,
      required this.label,
      required this.text,
      this.onTap,
    }) : super(key: key);
  
    final String label;
    final String text;
    final VoidCallback? onTap;
  
    @override
    Widget build(BuildContext context) {
      return InkWell(
        onTap: onTap,
        splashColor: Colors.transparent,
        borderRadius: BorderRadius.circular(8),
        child: Padding(
          padding: const EdgeInsets.all(8),
          child: Row(
            crossAxisAlignment: CrossAxisAlignment.center,
            children: [
              Expanded(
                child: _buildContent(context),
              ),
              Icon(
                Icons.edit,
                size: 20,
                color: Theme.of(context).colorScheme.secondary,
              ),
            ],
          ),
        ),
      );
    }
  
    Widget _buildContent(BuildContext context) {
      return Column(
        crossAxisAlignment: CrossAxisAlignment.stretch,
        children: [
          Text(
            label,
            style: TextStyle(
              fontSize: 12,
              color: Theme.of(context).colorScheme.secondary,
            ),
          ),
          SizedBox(height: 4),
          Text(
            text,
            overflow: TextOverflow.ellipsis,
            style: TextStyle(
              fontSize: 16,
              color: Theme.of(context).colorScheme.onSurface,
            ),
          ),
        ],
      );
    }
  }
  