-
-
Save mortezanazari-hub/d81512b91fbf46ec41c1793c14ff229a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// یک extension بر روی [BuildContext] که دسترسی به تم فعلی را فراهم میکند. | |
| /// An extension on [BuildContext] that provides access to the current theme. | |
| extension ThemeExt on BuildContext { | |
| /// تم فعلی. | |
| /// The current theme. | |
| ThemeData get theme => Theme.of(this); | |
| /// تم دکمه فعلی. | |
| /// the current button theme | |
| AppButtonTheme get buttonTheme => | |
| theme.extension<AppTheme>()!.appButtonTheme as AppButtonTheme; | |
| /// تم checkbox فعلی برنامه. | |
| /// The current app checkboxTheme. | |
| AppCheckboxTheme get checkboxTheme => | |
| theme.extension<AppTheme>()!.appCheckboxTheme as AppCheckboxTheme; | |
| /// تم icon فعلی برنامه. | |
| /// The current app iconTheme. | |
| AppIconTheme get iconTheme => | |
| theme.extension<AppTheme>()!.appIconTheme as AppIconTheme; | |
| /// تم input فعلی برنامه. | |
| /// The current app inputTheme. | |
| AppInputTheme get inputTheme => | |
| theme.extension<AppTheme>()!.appInputTheme as AppInputTheme; | |
| /// تم radio فعلی برنامه. | |
| /// The current app radioTheme. | |
| AppRadioTheme get radioTheme => | |
| theme.extension<AppTheme>()!.appRadioTheme as AppRadioTheme; | |
| /// تم toggle فعلی برنامه. | |
| /// The current app toggleTheme. | |
| AppToggleTheme get toggleTheme => | |
| theme.extension<AppTheme>()!.appToggleTheme as AppToggleTheme; | |
| /// تم typography فعلی برنامه. | |
| /// The current app typographyTheme. | |
| AppTypographyTheme get typographyTheme => | |
| theme.extension<AppTheme>()!.appTypographyTheme as AppTypographyTheme; | |
| /// تم avatar فعلی برنامه. | |
| /// The current app avatarTheme. | |
| AppAvatarTheme get avatarTheme => | |
| theme.extension<AppTheme>()!.appAvatarTheme as AppAvatarTheme; | |
| /// typography فعلی برنامه. | |
| /// The current app typography. | |
| AppTypography get typography => | |
| theme.extension<AppTheme>()!.appTypography as AppTypography; | |
| /// تم navigation فعلی برنامه. | |
| /// The current app navigationTheme. | |
| AppNavigationTheme get navigationTheme => | |
| theme.extension<AppTheme>()!.appNavigationTheme as AppNavigationTheme; | |
| /// تم layout فعلی برنامه. | |
| /// The current app layoutTheme. | |
| AppLayoutTheme get layoutTheme => | |
| theme.extension<AppTheme>()!.appLayoutTheme as AppLayoutTheme; | |
| /// تم badge فعلی برنامه. | |
| /// The current app badgeTheme. | |
| AppBadgeTheme get badgeTheme => | |
| theme.extension<AppTheme>()!.appBadgeTheme as AppBadgeTheme; | |
| /// تم breadcrumb فعلی برنامه. | |
| /// The current app breadcrumbTheme. | |
| AppBreadCrumbTheme get appBreadCrumbTheme => | |
| theme.extension<AppTheme>()!.appBreadCrumbTheme as AppBreadCrumbTheme; | |
| /// تم dropdown فعلی برنامه. | |
| /// The current app appDropdownTheme. | |
| AppDropdownTheme get appDropdownTheme => | |
| theme.extension<AppTheme>()!.appDropdownTheme as AppDropdownTheme; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment