Skip to content

Commit 455d918

Browse files
committed
refactor(local_ads_management): pass adId to _EditLocalVideoAdView widget
- Added adId parameter to _EditLocalVideoAdView constructor - Updated EditLocalVideoAdPage to pass adId when creating _EditLocalVideoAdView
1 parent e706ce7 commit 455d918

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/local_ads_management/view/edit_local_video_ad_page.dart

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

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

4143
@override
4244
State<_EditLocalVideoAdView> createState() => _EditLocalVideoAdViewState();

0 commit comments

Comments
 (0)