mirror of
https://github.com/flutter/samples.git
synced 2026-05-08 16:06:40 +00:00
Updates for 3.22 (#2266)
Updates for 3.22 --------- Co-authored-by: Brett Morgan <brettmorgan@google.com> Co-authored-by: Qun Cheng <chengqunq@gmail.com> Co-authored-by: Brett Morgan <brett.morgan@gmail.com>
This commit is contained in:
@@ -501,7 +501,7 @@ class Cards extends StatelessWidget {
|
||||
SizedBox(
|
||||
width: cardWidth,
|
||||
child: Card(
|
||||
color: Theme.of(context).colorScheme.surfaceVariant,
|
||||
color: Theme.of(context).colorScheme.surfaceContainerHighest,
|
||||
elevation: 0,
|
||||
child: Container(
|
||||
padding: const EdgeInsets.fromLTRB(10, 5, 5, 10),
|
||||
@@ -849,9 +849,9 @@ class _SwitchRowState extends State<SwitchRow> {
|
||||
bool value0 = false;
|
||||
bool value1 = true;
|
||||
|
||||
final MaterialStateProperty<Icon?> thumbIcon =
|
||||
MaterialStateProperty.resolveWith<Icon?>((states) {
|
||||
if (states.contains(MaterialState.selected)) {
|
||||
final WidgetStateProperty<Icon?> thumbIcon =
|
||||
WidgetStateProperty.resolveWith<Icon?>((states) {
|
||||
if (states.contains(WidgetState.selected)) {
|
||||
return const Icon(Icons.check);
|
||||
}
|
||||
return const Icon(Icons.close);
|
||||
@@ -2508,7 +2508,10 @@ class ComponentGroupDecoration extends StatelessWidget {
|
||||
child: Card(
|
||||
margin: EdgeInsets.zero,
|
||||
elevation: 0,
|
||||
color: Theme.of(context).colorScheme.surfaceVariant.withOpacity(0.3),
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.surfaceContainerHighest
|
||||
.withOpacity(0.3),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 20.0),
|
||||
child: Center(
|
||||
|
||||
Reference in New Issue
Block a user