mirror of
https://github.com/flutter/packages.git
synced 2025-06-30 14:47:22 +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(),
|
||||
_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;
|
||||
|
||||
|
Reference in New Issue
Block a user