mirror of
https://github.com/flutter/samples.git
synced 2026-05-13 10:27:09 +00:00
Symposium of small improvements to m3 app (#1573)
* small improvements * x * fixed tests * add issue links to TODOs * address feedback
This commit is contained in:
@@ -125,7 +125,6 @@ class _ElevationCardState extends State<ElevationCard> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
const BorderRadius borderRadius = BorderRadius.all(Radius.circular(4.0));
|
||||
final bool showOpacity = _elevation == widget.info.elevation;
|
||||
final Color color = Theme.of(context).colorScheme.surface;
|
||||
|
||||
return Padding(
|
||||
@@ -150,7 +149,7 @@ class _ElevationCardState extends State<ElevationCard> {
|
||||
'${widget.info.level.toInt()} dp',
|
||||
style: Theme.of(context).textTheme.labelMedium,
|
||||
),
|
||||
if (showOpacity)
|
||||
if (widget.surfaceTint != null)
|
||||
Expanded(
|
||||
child: Align(
|
||||
alignment: Alignment.bottomRight,
|
||||
|
||||
Reference in New Issue
Block a user