Skip to content

Commit fccd618

Browse files
committed
Auto stash before merge of "master" and "origin/master"
1 parent 08a6dc8 commit fccd618

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

lib/Frontend/pages/intro.dart

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class OnBoardingPageState extends ConsumerState<OnBoardingPage> {
5757
);
5858
}
5959

60+
int page = 0;
6061
@override
6162
Widget build(BuildContext context) {
6263
setupSystemColor(context);
@@ -77,6 +78,7 @@ class OnBoardingPageState extends ConsumerState<OnBoardingPage> {
7778
return IntroductionScreen(
7879
key: introKey,
7980
canProgress: (page) {
81+
this.page = page;
8082
if (page == 2 && !bluetoothAccepted) {
8183
return false;
8284
} else if (page == 1 && !privacyAccepted) {
@@ -251,12 +253,16 @@ class OnBoardingPageState extends ConsumerState<OnBoardingPage> {
251253
onSkip: () => _onIntroEnd(context),
252254
// You can override onSkip callback
253255
//rtl: true, // Display as right-to-left
254-
back: const Icon(
255-
Icons.arrow_back,
256-
size: 24,
257-
key: Key('previousPage'),
258-
),
259-
next: const Icon(
256+
back: const Icon(Icons.arrow_back),
257+
overrideNext: page == 3
258+
? FilledButton(
259+
onPressed: () {
260+
_onIntroEnd(context);
261+
},
262+
child: Text(convertToUwU(onboardingContinueLabel()), style: const TextStyle(fontWeight: FontWeight.w600)),
263+
)
264+
: null,
265+
next: Icon(
260266
Icons.arrow_forward,
261267
size: 24,
262268
key: Key('nextPage'),

lib/Frontend/translation_string_definitions.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ String onboardingBluetoothEnableButtonLabel() =>
382382
Intl.message("Open Settings to turn On Bluetooth", name: 'onboardingBluetoothEnableButtonLabel', desc: 'Label for the button to open bluetooth settings on the onboarding screen');
383383

384384
String onboardingDoneButtonLabel() => Intl.message("Done", name: 'onboardingDoneButtonLabel', desc: 'Label for the button to close the onboarding screen');
385+
String onboardingContinueLabel() => Intl.message("Continue", name: 'onboardingContinueLabel', desc: 'Label for the button to continue past the scan for gear screen');
385386

386387
String onboardingCompletedTitle() => Intl.message("Happy Wagging!", name: 'onboardingCompletedTitle', desc: 'Title of the final page of the onboarding screen');
387388

web/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@
110110
<source srcset="splash/img/dark-1x.png 1x, splash/img/dark-2x.png 2x, splash/img/dark-3x.png 3x, splash/img/dark-4x.png 4x" media="(prefers-color-scheme: dark)">
111111
<img class="center" aria-hidden="true" src="splash/img/light-1x.png" alt="">
112112
</picture>
113-
114113
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/pdf.min.mjs" type="module"></script>
115114
<script type="module">
116115
var { pdfjsLib } = globalThis;

0 commit comments

Comments
 (0)