@@ -323,38 +323,42 @@ class _PairingWelcomeView extends HookWidget {
323323 setupContent == null &&
324324 ! signInPending &&
325325 ! isBusy;
326- final welcome = Semantics (
327- customSemanticsActions: canRevealOptions
328- ? {
329- const CustomSemanticsAction (label: 'More connection options' ):
330- revealOptions,
331- }
332- : null ,
333- child: Padding (
334- padding: const EdgeInsets .symmetric (
335- horizontal: Grid .gutter,
336- vertical: Grid .sm,
337- ),
338- child: CustomScrollView (
339- // Stay fixed when the welcome content fits; allow only real overflow
340- // (such as the pairing form above the keyboard), with no rubber banding.
341- physics: const ClampingScrollPhysics (),
342- slivers: [
343- SliverFillRemaining (
344- hasScrollBody: false ,
345- child: Column (
346- children: [
347- Expanded (
348- child: _TwoFingerDoubleTapSurface (
349- onDoubleTap: canRevealOptions ? revealOptions : null ,
350- child: Center (
351- child: Column (
352- mainAxisSize: MainAxisSize .min,
353- children: [
354- ConstrainedBox (
355- constraints: const BoxConstraints (maxWidth: 320 ),
356- child: AspectRatio (
357- aspectRatio: 777 / 326 ,
326+ final welcome = Padding (
327+ padding: const EdgeInsets .symmetric (
328+ horizontal: Grid .gutter,
329+ vertical: Grid .sm,
330+ ),
331+ child: CustomScrollView (
332+ // Stay fixed when the welcome content fits; allow only real overflow
333+ // (such as the pairing form above the keyboard), with no rubber banding.
334+ physics: const ClampingScrollPhysics (),
335+ slivers: [
336+ SliverFillRemaining (
337+ hasScrollBody: false ,
338+ child: Column (
339+ children: [
340+ Expanded (
341+ child: _TwoFingerDoubleTapSurface (
342+ onDoubleTap: canRevealOptions ? revealOptions : null ,
343+ child: Center (
344+ child: Column (
345+ mainAxisSize: MainAxisSize .min,
346+ children: [
347+ ConstrainedBox (
348+ constraints: const BoxConstraints (maxWidth: 320 ),
349+ child: AspectRatio (
350+ aspectRatio: 777 / 326 ,
351+ child: Semantics (
352+ // Hidden developer entry intentionally has no
353+ // keyboard shortcut. Keep its assistive action
354+ // on the existing labelled wordmark node.
355+ customSemanticsActions: canRevealOptions
356+ ? {
357+ const CustomSemanticsAction (
358+ label: 'More connection options' ,
359+ ): revealOptions,
360+ }
361+ : null ,
358362 child: OnboardingWordmark (
359363 key: const Key ('pairing-buzz-wordmark' ),
360364 color: context._onboardingIsDark
@@ -363,73 +367,71 @@ class _PairingWelcomeView extends HookWidget {
363367 ),
364368 ),
365369 ),
366- const SizedBox (height : Grid .xxs ),
367- Text (
368- 'Your people, your agents, your projects — \n all in one place.' ,
369- textAlign : TextAlign .center ,
370- style : context.textTheme.bodyLarge ? . copyWith (
371- color : context._onboardingInk,
372- ) ,
370+ ),
371+ const SizedBox (height : Grid .xxs),
372+ Text (
373+ 'Your people, your agents, your projects — \n all in one place.' ,
374+ textAlign : TextAlign .center,
375+ style : context.textTheme.bodyLarge ? . copyWith (
376+ color : context._onboardingInk ,
373377 ),
374- ] ,
375- ) ,
378+ ) ,
379+ ] ,
376380 ),
377381 ),
378382 ),
379- const SizedBox (height: Grid .md),
380- ConstrainedBox (
381- constraints: const BoxConstraints (maxWidth: 440 ),
382- child: SizedBox (
383- width: double .infinity,
384- child: setupContent != null
385- ? setupContent!
386- : ! connectionLanding
387- ? actions (2 )
388- : ClipRect (
389- child: Stack (
390- alignment: Alignment .bottomCenter,
391- children: [
392- for (var page = 1 ; page < 5 ; page++ )
393- ExcludeFocus (
383+ ),
384+ const SizedBox (height: Grid .md),
385+ ConstrainedBox (
386+ constraints: const BoxConstraints (maxWidth: 440 ),
387+ child: SizedBox (
388+ width: double .infinity,
389+ child: setupContent != null
390+ ? setupContent!
391+ : ! connectionLanding
392+ ? actions (2 )
393+ : ClipRect (
394+ child: Stack (
395+ alignment: Alignment .bottomCenter,
396+ children: [
397+ for (var page = 1 ; page < 5 ; page++ )
398+ ExcludeFocus (
399+ excluding: page != selectedPage,
400+ child: ExcludeSemantics (
394401 excluding: page != selectedPage,
395- child: ExcludeSemantics (
396- excluding: page != selectedPage,
397- child: IgnorePointer (
398- ignoring: page != selectedPage,
399- child: AnimatedSlide (
400- key: ValueKey (
401- 'welcome-panel-$page ' ,
402- ),
403- offset: Offset (
404- page == selectedPage
405- ? 0
406- : page == 1
407- ? - 1
408- : 1 ,
409- 0 ,
410- ),
411- duration: revealDuration,
412- curve: page == selectedPage
413- ? Curves .easeOutQuad
414- : Curves .easeOutCubic.flipped,
415- child: SizedBox (
416- width: double .infinity,
417- child: actions (page),
418- ),
402+ child: IgnorePointer (
403+ ignoring: page != selectedPage,
404+ child: AnimatedSlide (
405+ key: ValueKey ('welcome-panel-$page ' ),
406+ offset: Offset (
407+ page == selectedPage
408+ ? 0
409+ : page == 1
410+ ? - 1
411+ : 1 ,
412+ 0 ,
413+ ),
414+ duration: revealDuration,
415+ curve: page == selectedPage
416+ ? Curves .easeOutQuad
417+ : Curves .easeOutCubic.flipped,
418+ child: SizedBox (
419+ width: double .infinity,
420+ child: actions (page),
419421 ),
420422 ),
421423 ),
422424 ),
423- ] ,
424- ) ,
425+ ) ,
426+ ] ,
425427 ),
426- ),
428+ ),
427429 ),
428- ] ,
429- ) ,
430+ ) ,
431+ ] ,
430432 ),
431- ] ,
432- ) ,
433+ ) ,
434+ ] ,
433435 ),
434436 );
435437 return PopScope (
0 commit comments