[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 https://github.com/flutter/flutter/pull/128476)
This commit is contained in:
Jason Simmons
2023-06-08 07:15:12 -07:00
committed by GitHub
parent d935cb0d2f
commit 1057ab48db

View File

@ -145,7 +145,7 @@ class _MyAppState extends State<_MyApp> {
_buildConnectionCheckTile(),
_buildProductList(),
_buildConsumableBox(),
_FeatureCard(),
const _FeatureCard(),
],
),
);
@ -444,9 +444,9 @@ class _MyAppState extends State<_MyApp> {
}
class _FeatureCard extends StatelessWidget {
_FeatureCard();
const _FeatureCard();
final InAppPurchaseAndroidPlatformAddition addition =
InAppPurchaseAndroidPlatformAddition get addition =>
InAppPurchasePlatformAddition.instance!
as InAppPurchaseAndroidPlatformAddition;