mirror of
https://github.com/flutter/packages.git
synced 2025-07-01 07:08:10 +08:00
[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:
@ -145,7 +145,7 @@ class _MyAppState extends State<_MyApp> {
|
|||||||
_buildConnectionCheckTile(),
|
_buildConnectionCheckTile(),
|
||||||
_buildProductList(),
|
_buildProductList(),
|
||||||
_buildConsumableBox(),
|
_buildConsumableBox(),
|
||||||
_FeatureCard(),
|
const _FeatureCard(),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
@ -444,9 +444,9 @@ class _MyAppState extends State<_MyApp> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _FeatureCard extends StatelessWidget {
|
class _FeatureCard extends StatelessWidget {
|
||||||
_FeatureCard();
|
const _FeatureCard();
|
||||||
|
|
||||||
final InAppPurchaseAndroidPlatformAddition addition =
|
InAppPurchaseAndroidPlatformAddition get addition =>
|
||||||
InAppPurchasePlatformAddition.instance!
|
InAppPurchasePlatformAddition.instance!
|
||||||
as InAppPurchaseAndroidPlatformAddition;
|
as InAppPurchaseAndroidPlatformAddition;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user