forked from firka/flutter
Dev, examples/api, etc updated for Material 3 by default (#129683)
Updated tests in dev, examples/api, and tests/widgets to ensure that they continue to pass when the default for `ThemeData.useMaterial3` is changed to true. This is the final set of changes required for https://github.com/flutter/flutter/issues/127064.
This commit is contained in:
@@ -79,30 +79,29 @@ class _BodyState extends State<Body> with WidgetsBindingObserver {
|
||||
return Center(
|
||||
child: SizedBox(
|
||||
width: 300,
|
||||
child: IntrinsicHeight(
|
||||
child: Column(
|
||||
children: <Widget>[
|
||||
RadioListTile<bool>(
|
||||
title: const Text('Do Not Allow Exit'),
|
||||
groupValue: _shouldExit,
|
||||
value: false,
|
||||
onChanged: _radioChanged,
|
||||
),
|
||||
RadioListTile<bool>(
|
||||
title: const Text('Allow Exit'),
|
||||
groupValue: _shouldExit,
|
||||
value: true,
|
||||
onChanged: _radioChanged,
|
||||
),
|
||||
const SizedBox(height: 30),
|
||||
ElevatedButton(
|
||||
onPressed: _quit,
|
||||
child: const Text('Quit'),
|
||||
),
|
||||
const SizedBox(height: 30),
|
||||
Text(lastResponse),
|
||||
],
|
||||
),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: <Widget>[
|
||||
RadioListTile<bool>(
|
||||
title: const Text('Do Not Allow Exit'),
|
||||
groupValue: _shouldExit,
|
||||
value: false,
|
||||
onChanged: _radioChanged,
|
||||
),
|
||||
RadioListTile<bool>(
|
||||
title: const Text('Allow Exit'),
|
||||
groupValue: _shouldExit,
|
||||
value: true,
|
||||
onChanged: _radioChanged,
|
||||
),
|
||||
const SizedBox(height: 30),
|
||||
ElevatedButton(
|
||||
onPressed: _quit,
|
||||
child: const Text('Quit'),
|
||||
),
|
||||
const SizedBox(height: 30),
|
||||
Text(lastResponse),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user