From ecd48f08eb307d3fbceae654c93fcff109871868 Mon Sep 17 00:00:00 2001 From: Qun Cheng Date: Tue, 21 Nov 2023 15:02:22 -0800 Subject: [PATCH] Update m3 outlined card --- material_3_demo/lib/component_screen.dart | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/material_3_demo/lib/component_screen.dart b/material_3_demo/lib/component_screen.dart index c484e96fb..1a5cd2851 100644 --- a/material_3_demo/lib/component_screen.dart +++ b/material_3_demo/lib/component_screen.dart @@ -2466,14 +2466,7 @@ class _ComponentDecorationState extends State { focusNode.requestFocus(); }, behavior: HitTestBehavior.opaque, - child: Card( - elevation: 0, - shape: RoundedRectangleBorder( - side: BorderSide( - color: Theme.of(context).colorScheme.outlineVariant, - ), - borderRadius: const BorderRadius.all(Radius.circular(12)), - ), + child: Card.outlined( child: Padding( padding: const EdgeInsets.symmetric( horizontal: 5.0, vertical: 20.0),