resetComponentSpecificProperties method
Reset component-specific properties to defaults. Called by resetToDefaults() after resetting common properties.
Implementation
@override
void resetComponentSpecificProperties() {
documentBorderRadius = 8.0;
documentPadding = 16.0;
documentTitle = 'Medical Report.pdf';
documentDate = 'Nov 28, 2024';
documentSize = '2.4 MB';
currentPage = 1;
totalPages = 5;
toolbarHeight = 48.0;
toolbarButtonSize = 36.0;
controlButtonSize = 36.0;
navButtonSize = 44.0;
titleFontSize = 16.0;
metaFontSize = 12.0;
pageFontSize = 14.0;
pageInfoFontSize = 12.0;
titleFontWeight = FontWeight.w600;
zoomLevel = 100.0;
minZoom = 50.0;
maxZoom = 200.0;
// Reset Rest state colors
restDocumentBgLight = const Color(0xFFffffff);
restDocumentBgDark = const Color(0xFF374151);
restTitleColorLight = const Color(0xFF1f2937);
restTitleColorDark = const Color(0xFFf3f4f6);
restMetaColorLight = const Color(0xFF6b7280);
restMetaColorDark = const Color(0xFF9ca3af);
restToolbarBgLight = const Color(0xFFf3f4f6);
restToolbarBgDark = const Color(0xFF374151);
restToolbarButtonColorLight = const Color(0xFFe0e5ec);
restToolbarButtonColorDark = const Color(0xFF4b5563);
restToolbarIconColorLight = const Color(0xFF374151);
restToolbarIconColorDark = const Color(0xFFf3f4f6);
restControlButtonColorLight = const Color(0xFFe0e5ec);
restControlButtonColorDark = const Color(0xFF4b5563);
restControlIconColorLight = const Color(0xFF374151);
restControlIconColorDark = const Color(0xFFf3f4f6);
restPageIndicatorColorLight = const Color(0xFF6b7280);
restPageIndicatorColorDark = const Color(0xFF9ca3af);
restDividerColorLight = const Color(0xFFd1d5db);
restDividerColorDark = const Color(0xFF4b5563);
// Reset Disabled state colors
disabledTitleColorLight = const Color(0xFF9ca3af);
disabledTitleColorDark = const Color(0xFF4b5563);
disabledToolbarButtonColorLight = const Color(0xFFe5e7eb);
disabledToolbarButtonColorDark = const Color(0xFF374151);
disabledControlButtonColorLight = const Color(0xFFe5e7eb);
disabledControlButtonColorDark = const Color(0xFF374151);
}