grid.dart 754 B

1234567891011121314151617181920212223242526272829
  1. import 'package:fis_lib_report/report/interfaces/block_element.dart';
  2. import 'package:fis_lib_report/report/interfaces/cell.dart';
  3. class RTColumnDefinition {
  4. double? width;
  5. RTColumnDefinition(this.width);
  6. RTColumnDefinition.fromJson(Map<String, dynamic> json) {
  7. width = json["Width"];
  8. }
  9. }
  10. class RTRowDefinition {
  11. double? minHeight = 18;
  12. double? height;
  13. WidthTypeEnum? type;
  14. RTRowDefinition.fromJson(Map<String, dynamic> json) {
  15. minHeight = json['MinHeight'];
  16. height = json['Height'];
  17. type = WidthTypeEnum.values
  18. .firstWhere((element) => element.name == json['Type']);
  19. }
  20. }
  21. abstract class IGrid extends IBlockElement {
  22. List<RTColumnDefinition>? columnDefinitions;
  23. List<RTRowDefinition>? rowDefinitions;
  24. }