1
0
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:
Pierre-Louis
2023-01-18 17:41:55 +01:00
committed by GitHub
parent 66a8d9e211
commit af1b13501c
4 changed files with 645 additions and 660 deletions

View File

@@ -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,