Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

[various] prepare for more const widgets #7074

Merged
merged 1 commit into from
Feb 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@ void main() {
) async {
// Inject two map widgets...
await tester.pumpWidget(
// TODO(goderbauer): Make this const when this package requires Flutter 3.8 or later.
// ignore: prefer_const_constructors
Directionality(
textDirection: TextDirection.ltr,
// TODO(goderbauer): Make this const when this package requires Flutter 3.8 or later.
// ignore: prefer_const_constructors
child: Column(
children: const <Widget>[
GoogleMap(
Expand Down
4 changes: 4 additions & 0 deletions packages/local_auth/local_auth/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ class _MyAppState extends State<MyApp> {
if (_isAuthenticating)
ElevatedButton(
onPressed: _cancelAuthentication,
// TODO(goderbauer): Make this const when this package requires Flutter 3.8 or later.
// ignore: prefer_const_constructors
child: Row(
mainAxisSize: MainAxisSize.min,
children: const <Widget>[
Expand All @@ -196,6 +198,8 @@ class _MyAppState extends State<MyApp> {
children: <Widget>[
ElevatedButton(
onPressed: _authenticate,
// TODO(goderbauer): Make this const when this package requires Flutter 3.8 or later.
// ignore: prefer_const_constructors
child: Row(
mainAxisSize: MainAxisSize.min,
children: const <Widget>[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ class _MyAppState extends State<MyApp> {
if (_isAuthenticating)
ElevatedButton(
onPressed: _cancelAuthentication,
// TODO(goderbauer): Make this const when this package requires Flutter 3.8 or later.
// ignore: prefer_const_constructors
child: Row(
mainAxisSize: MainAxisSize.min,
children: const <Widget>[
Expand All @@ -201,6 +203,8 @@ class _MyAppState extends State<MyApp> {
children: <Widget>[
ElevatedButton(
onPressed: _authenticate,
// TODO(goderbauer): Make this const when this package requires Flutter 3.8 or later.
// ignore: prefer_const_constructors
child: Row(
mainAxisSize: MainAxisSize.min,
children: const <Widget>[
Expand Down
4 changes: 4 additions & 0 deletions packages/local_auth/local_auth_ios/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ class _MyAppState extends State<MyApp> {
if (_isAuthenticating)
ElevatedButton(
onPressed: _cancelAuthentication,
// TODO(goderbauer): Make this const when this package requires Flutter 3.8 or later.
// ignore: prefer_const_constructors
child: Row(
mainAxisSize: MainAxisSize.min,
children: const <Widget>[
Expand All @@ -200,6 +202,8 @@ class _MyAppState extends State<MyApp> {
children: <Widget>[
ElevatedButton(
onPressed: _authenticate,
// TODO(goderbauer): Make this const when this package requires Flutter 3.8 or later.
// ignore: prefer_const_constructors
child: Row(
mainAxisSize: MainAxisSize.min,
children: const <Widget>[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ class _MyAppState extends State<MyApp> {
if (_isAuthenticating)
ElevatedButton(
onPressed: _cancelAuthentication,
// TODO(goderbauer): Make this const when this package requires Flutter 3.8 or later.
// ignore: prefer_const_constructors
child: Row(
mainAxisSize: MainAxisSize.min,
children: const <Widget>[
Expand All @@ -163,6 +165,8 @@ class _MyAppState extends State<MyApp> {
children: <Widget>[
ElevatedButton(
onPressed: _authenticate,
// TODO(goderbauer): Make this const when this package requires Flutter 3.8 or later.
// ignore: prefer_const_constructors
child: Row(
mainAxisSize: MainAxisSize.min,
children: const <Widget>[
Expand Down
6 changes: 6 additions & 0 deletions packages/url_launcher/url_launcher/example/lib/encoding.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,14 @@ String? encodeQueryParameters(Map<String, String> params) {
// #enddocregion encode-query-parameters

void main() => runApp(
// TODO(goderbauer): Make this const when this package requires Flutter 3.8 or later.
// ignore: prefer_const_constructors
MaterialApp(
// TODO(goderbauer): Make this const when this package requires Flutter 3.8 or later.
// ignore: prefer_const_constructors
home: Material(
// TODO(goderbauer): Make this const when this package requires Flutter 3.8 or later.
// ignore: prefer_const_constructors
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: const <Widget>[
Expand Down