-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Labels
assigned for triageissue is assigned to a domain expert for further triageissue is assigned to a domain expert for further triagec: renderingUI glitches reported at the engine/skia or impeller rendering levelUI glitches reported at the engine/skia or impeller rendering levelf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.found in release: 1.22Found to occur in 1.22Found to occur in 1.22frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyWeb applications specifically
Description
Describe the bug
Using this exact code on both web and mobile results in different rendered output. On mobile, the card has a shadow, on web not.
Working on web (1):
Card(
elevation: 10,
child: Container(
color: Colors.green,
height: 100,
width: 100,
),
)NOT Working on web (2):
Card(
elevation: 10,
shape: ContinuousRectangleBorder(),
child: Container(
color: Colors.green,
height: 100,
width: 100,
),
)Working on web (3):
Card(
elevation: 10,
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(0.0)),
),
child: Container(
color: Colors.green,
height: 100,
width: 100,
),
)NOT Working on web (4):
Card(
elevation: 10,
shape: const BeveledRectangleBorder(
borderRadius: BorderRadius.only(
bottomRight: Radius.elliptical(15, 15),
topRight: Radius.elliptical(15, 15),
),
),
child: Container(
color: Colors.green,
height: 100,
width: 100,
),
)Steps to Reproduce
Use the widgets above and run on mobile, or web.
Expected results:
They should have shadows rendered.
Actual results:
(1) - Has shadow

(2) - Has no shadow

(3) - Has shadow

(4) - Has no shadow

Metadata
Metadata
Assignees
Labels
assigned for triageissue is assigned to a domain expert for further triageissue is assigned to a domain expert for further triagec: renderingUI glitches reported at the engine/skia or impeller rendering levelUI glitches reported at the engine/skia or impeller rendering levelf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.found in release: 1.22Found to occur in 1.22Found to occur in 1.22frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyWeb applications specifically
