라이트 테마와 다크 테마를 전환할 때 부드럽고 애니메이션 효과가 있는 전환을 가능하게 하는 플러터 패키지입니다. 급격한 시각적 전환이 없이 시각적으로 매력적인 테마 변경을 제공하여 사용자 경험을 향상시킵니다. 최소한의 코드로 우아한 테마 전환을 구현하고자 하는 개발자를 위한 것입니다. 안드로이드, iOS, 웹, 맥OS, 윈도우, 리눅스 등 주요 모든 플랫폼을 지원합니다. 플러터의 테마 시스템과 원활하게 통합되며, 애니메이션 지속 시간, 곡선, 전환 효과 등을 사용자 정의할 수 있습니다.
Alternatively you could use ThemeSwitcher.switcher() or ThemeSwitcher.withTheme().
Builders of this constructors already provide you ThemeSwitcher.
ThemeSwitcher.withTheme() also provides current theme:
This package is not intended to persist selected theme on the local device. But we added special example to show how to do it using shared_preferences package.
Use the CanvasKit rendering engine to use it on web, more about it..