Skip to content

Commit 14e4224

Browse files
committed
refactor(ads): remove interstitial ad dialog button
- Remove the FilledButton widget from the DemoInterstitialAdDialog - The button functionality is now provided by the continue icon button
1 parent 12105be commit 14e4224

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

lib/ads/widgets/demo_interstitial_ad_dialog.dart

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -83,27 +83,6 @@ class _DemoInterstitialAdDialogState extends State<DemoInterstitialAdDialog> {
8383
),
8484
),
8585
),
86-
Positioned(
87-
bottom: AppSpacing.lg + MediaQuery.of(context).padding.bottom,
88-
left: AppSpacing.lg,
89-
right: AppSpacing.lg,
90-
child: FilledButton(
91-
onPressed: canClose ? () => Navigator.of(context).pop() : null,
92-
style: FilledButton.styleFrom(
93-
minimumSize: const Size.fromHeight(48),
94-
),
95-
child: canClose
96-
? Text(l10n.continueToArticleButtonLabel)
97-
: Row(
98-
mainAxisAlignment: MainAxisAlignment.center,
99-
children: [
100-
Text(
101-
'${l10n.continueToArticleButtonLabel} ($_countdown)',
102-
),
103-
],
104-
),
105-
),
106-
),
10786
Positioned(
10887
top: AppSpacing.lg,
10988
right: AppSpacing.lg,

0 commit comments

Comments
 (0)