123456789101112131415161718192021222324252627282930313233 |
- import 'package:fis_lib_report/report/interfaces/block_element.dart';
- import 'package:fis_lib_report/report/interfaces/cell.dart';
- class RTColumnDefinition {
- double? width;
- RTColumnDefinition(this.width);
- RTColumnDefinition.fromJson(Map<String, dynamic> json) {
- width = json["Width"];
- }
- }
- class RTRowDefinition {
- double? minHeight = 18;
- double? height;
- WidthTypeEnum? type;
- RTRowDefinition.fromJson(Map<String, dynamic> json) {
- var targetMinHeight = json['MinHeight'];
- minHeight = targetMinHeight < 26 ? 26 : targetMinHeight;
- var targetHeight = json['Height'];
- height = targetHeight < 28 ? 28 : targetHeight;
- if (json['Type'] != null) {
- type = WidthTypeEnum.values
- .firstWhere((element) => element.name == json['Type']);
- }
- }
- }
- abstract class IGrid extends IBlockElement {
- List<RTColumnDefinition>? columnDefinitions;
- List<RTRowDefinition>? rowDefinitions;
- }
|