Skip to content

Commit 1057ab4

Browse files
[in_app_purchase] Make the _FeatureCard constructor const in the Android example app (#4162)
This works around a Dart analyzer error that is blocking the engine->framework roll (see flutter/flutter#128476)
1 parent d935cb0 commit 1057ab4

File tree

1 file changed

+3
-3
lines changed
  • packages/in_app_purchase/in_app_purchase_android/example/lib

1 file changed

+3
-3
lines changed

packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class _MyAppState extends State<_MyApp> {
145145
_buildConnectionCheckTile(),
146146
_buildProductList(),
147147
_buildConsumableBox(),
148-
_FeatureCard(),
148+
const _FeatureCard(),
149149
],
150150
),
151151
);
@@ -444,9 +444,9 @@ class _MyAppState extends State<_MyApp> {
444444
}
445445

446446
class _FeatureCard extends StatelessWidget {
447-
_FeatureCard();
447+
const _FeatureCard();
448448

449-
final InAppPurchaseAndroidPlatformAddition addition =
449+
InAppPurchaseAndroidPlatformAddition get addition =>
450450
InAppPurchasePlatformAddition.instance!
451451
as InAppPurchaseAndroidPlatformAddition;
452452

0 commit comments

Comments
 (0)