You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.1KB

  1. import 'package:flutter/material.dart';
  2. class WidgetRowPlotInfo extends StatelessWidget {
  3. final Color color;
  4. final String name;
  5. final String value;
  6. WidgetRowPlotInfo({required this.color, required this.name, required this.value});
  7. @override
  8. Widget build(BuildContext context) {
  9. return Container(
  10. color: color,
  11. child: IntrinsicHeight(
  12. child: Row(
  13. mainAxisAlignment: MainAxisAlignment.spaceBetween,
  14. children: [
  15. Expanded(
  16. child: Container(
  17. padding: const EdgeInsets.all(12),
  18. child: Text(
  19. name,
  20. style: const TextStyle(fontSize: 16),
  21. ),
  22. ),
  23. ),
  24. Container(
  25. color: Colors.white,
  26. width: 2,
  27. ),
  28. Expanded(
  29. child: Container(
  30. padding: const EdgeInsets.all(12), child: Text(value ?? '--', textAlign: TextAlign.end, style: const TextStyle(fontSize: 16))),
  31. ),
  32. ],
  33. ),
  34. ),
  35. );
  36. }
  37. }