[yew-devel] [PATCH yew-widget-toolkit] touch: material app: change default animation to 'FadeFromRight'

Dominik Csapak d.csapak at proxmox.com
Wed Jul 2 09:22:37 CEST 2025


since that is a very common thing in android/material apps.

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 src/touch/material_app.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/touch/material_app.rs b/src/touch/material_app.rs
index c8185c5..2c72e00 100644
--- a/src/touch/material_app.rs
+++ b/src/touch/material_app.rs
@@ -210,7 +210,7 @@ pub struct MaterialApp {
 
     /// Page animation style used when switching between pages
     #[builder(IntoPropValue, into_prop_value)]
-    #[prop_or_default]
+    #[prop_or(Some(PageAnimationStyle::FadeFromRight))]
     pub page_animation: Option<PageAnimationStyle>,
 }
 
-- 
2.39.5





More information about the yew-devel mailing list