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.

37 lines
995B

  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(
  7. {@required this.color, @required this.name, @required this.value});
  8. @override
  9. Widget build(BuildContext context) {
  10. return Container(
  11. child: Row(
  12. mainAxisAlignment: MainAxisAlignment.spaceBetween,
  13. children: [
  14. Expanded(
  15. child: Container(
  16. padding: EdgeInsets.all(12),
  17. color: color,
  18. child: Text(
  19. name,
  20. style: TextStyle(fontSize: 16),
  21. ),
  22. ),
  23. ),
  24. Container(width: 2, height: 40, color: Colors.white),
  25. Expanded(
  26. child: Container(
  27. padding: EdgeInsets.all(12),
  28. color: color,
  29. child: Text(value ?? '--', style: TextStyle(fontSize: 16))),
  30. ),
  31. ],
  32. ),
  33. );
  34. }
  35. }