TF-884 Set default value for hideScrollBar

This commit is contained in:
dab246
2022-09-07 18:09:39 +07:00
committed by Dat H. Pham
parent 1dbbb468f2
commit b5d64f53be
@@ -26,7 +26,7 @@ String generateHtml(String content, {
double? minWidth,
String? styleCSS,
String? javaScripts,
bool? hideScrollBar
bool hideScrollBar = true,
}) {
return '''
<!DOCTYPE html>
@@ -40,7 +40,7 @@ String generateHtml(String content, {
min-width: ${minWidth ?? 0}px;
overflow: auto;
}
${hideScrollBar == true ? '''
${hideScrollBar ? '''
.tmail-content::-webkit-scrollbar {
display: none;
}