form_cell.dart 635 B

12345678910111213141516171819202122232425262728
  1. import 'package:flutter/material.dart';
  2. class FormCell extends StatelessWidget {
  3. const FormCell({super.key, required this.content, required this.title});
  4. final String title;
  5. final Widget content;
  6. @override
  7. Widget build(BuildContext context) {
  8. return Container(
  9. margin: const EdgeInsets.symmetric(vertical: 16),
  10. child: Row(
  11. children: [
  12. SizedBox(
  13. width: 150,
  14. child: Text(
  15. title,
  16. style: const TextStyle(fontSize: 20),
  17. ),
  18. ),
  19. Expanded(
  20. child: content,
  21. ),
  22. ],
  23. ),
  24. );
  25. }
  26. }