add some properties for smooth animation

This commit is contained in:
ManhNTX
2022-07-10 08:48:56 +07:00
committed by Dat H. Pham
parent 06931c0581
commit e732d2314c
3 changed files with 6 additions and 4 deletions
@@ -27,6 +27,8 @@ String generateHtml(String content, {
String? styleCSS,
String? javaScripts,
bool? hideScrollBar,
String? resize,
String? cursor,
}) {
return '''
<!DOCTYPE html>
@@ -36,6 +38,8 @@ String generateHtml(String content, {
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
.tmail-content {
cursor: ${cursor ?? 'move'};
resize: ${resize ?? 'both'};
min-height: ${minHeight ?? 0}px;
min-width: ${minWidth ?? 0}px;
overflow: ${hideScrollBar == true ? 'hidden' : 'auto'};