Open fatimaown1993 opened 2 years ago
hi after checking there is no condition for the PaperSize.mm72 in _getMaxCharsPerLine function I hope you consider this.
like this for example:
int _getMaxCharsPerLine(PosFontType? font) { if (_paperSize == PaperSize.mm58) { return (font == null || font == PosFontType.fontA) ? 32 : 42; } else if (_paperSize == PaperSize.mm72) { return (font == null || font == PosFontType.fontA) ? 42 : 42; } else { return (font == null || font == PosFontType.fontA) ? 48 : 64; } }
hi after checking there is no condition for the PaperSize.mm72 in _getMaxCharsPerLine function I hope you consider this.
like this for example:
int _getMaxCharsPerLine(PosFontType? font) { if (_paperSize == PaperSize.mm58) { return (font == null || font == PosFontType.fontA) ? 32 : 42; } else if (_paperSize == PaperSize.mm72) { return (font == null || font == PosFontType.fontA) ? 42 : 42; } else { return (font == null || font == PosFontType.fontA) ? 48 : 64; } }