Skip to content

Commit d7e465e

Browse files
committed
feat(local_ads_management): pass adId to _EditLocalInterstitialAdView
- Add adId parameter to _EditLocalInterstitialAdView constructor - Pass adId from EditLocalInterstitialAdPage to _EditLocalInterstitialAdView
1 parent 8ac79bd commit d7e465e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/local_ads_management/view/edit_local_interstitial_ad_page.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@ class EditLocalInterstitialAdPage extends StatelessWidget {
3030
localAdsRepository: context.read<DataRepository<LocalAd>>(),
3131
id: adId,
3232
),
33-
child: const _EditLocalInterstitialAdView(),
33+
child: _EditLocalInterstitialAdView(adId: adId),
3434
);
3535
}
3636
}
3737

3838
class _EditLocalInterstitialAdView extends StatefulWidget {
39-
const _EditLocalInterstitialAdView();
39+
const _EditLocalInterstitialAdView({required this.adId});
40+
41+
final String adId;
4042

4143
@override
4244
State<_EditLocalInterstitialAdView> createState() =>

0 commit comments

Comments
 (0)