ExpandedControl: ad info box text localization
This commit is contained in:
parent
0ddfa046b9
commit
b62174fba7
1 changed files with 6 additions and 2 deletions
|
|
@ -46,6 +46,9 @@ class ExpandedControls extends StatefulWidget {
|
||||||
/// Label for the Skip Ad button. Default is "Skip Ad".
|
/// Label for the Skip Ad button. Default is "Skip Ad".
|
||||||
final String? skipAdButtonText;
|
final String? skipAdButtonText;
|
||||||
|
|
||||||
|
/// Label for the Ad Info box. Default is "Ad in progress...".
|
||||||
|
final String adInfoBoxText;
|
||||||
|
|
||||||
/// This is called when the back button is tapped or when the session is closed
|
/// This is called when the back button is tapped or when the session is closed
|
||||||
final VoidCallback? onCloseRequested;
|
final VoidCallback? onCloseRequested;
|
||||||
final progressController = ExpandedControlsProgressController();
|
final progressController = ExpandedControlsProgressController();
|
||||||
|
|
@ -56,6 +59,7 @@ class ExpandedControls extends StatefulWidget {
|
||||||
this.castingToText,
|
this.castingToText,
|
||||||
this.skipAdTimerText,
|
this.skipAdTimerText,
|
||||||
this.skipAdButtonText,
|
this.skipAdButtonText,
|
||||||
|
this.adInfoBoxText = "Ad in progress...",
|
||||||
this.onCloseRequested,
|
this.onCloseRequested,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -206,10 +210,10 @@ class _ExpandedControlsState extends State<ExpandedControls> {
|
||||||
text: "Ad Title", // TODO: retrieve ad title from API
|
text: "Ad Title", // TODO: retrieve ad title from API
|
||||||
),
|
),
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
const Expanded(
|
Expanded(
|
||||||
flex: 8,
|
flex: 8,
|
||||||
child: ExpandedControlsInfoTextBox(
|
child: ExpandedControlsInfoTextBox(
|
||||||
text: "Ad in progress...", // TODO: localize label
|
text: widget.adInfoBoxText,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const Spacer(flex: 1),
|
const Spacer(flex: 1),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue