Repository navigation
Commit 3d9795a
committed
Present show-dialog canvases as bottom sheets and side sheets
showLayoutDialog pushes a LayoutPresentationRoute that presents the
canvas per ShowDialogAction.presentation:
- dialog: centered at its design size, now scaling and fading in
(0.96 to 1, 320 ms easeOutCubic).
- bottomSheet: full width at the bottom, top corners radius 10, a 40x4
grab handle 8 px from the top, as tall as the canvas (its content when
it shrink-wraps) up to maxHeightFactor of the screen; slides up.
- sideSheet: full height on the right, sheetWidth (or the canvas's
design width) wide, with a shadow; slides in from the right.
The barrier color, barrier dismissal, route params and Navigate back
results work as before. A new CanvasSizing.fillWidth sizes the bottom
sheet's canvas. What a show-dialog's canvas passes back on Navigate back
becomes the chain's result for the actions after it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 08d64ad commit 3d9795a
4 files changed
Lines changed: 804 additions & 19 deletions
File tree
- lib/src
- functions
- transformers/node_transformers
- ui
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
| 563 | + | |
| 564 | + | |
563 | 565 | | |
564 | 566 | | |
565 | 567 | | |
566 | 568 | | |
567 | | - | |
| 569 | + | |
568 | 570 | | |
569 | 571 | | |
570 | 572 | | |
571 | 573 | | |
572 | 574 | | |
573 | 575 | | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
574 | 580 | | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
575 | 584 | | |
576 | 585 | | |
577 | 586 | | |
| |||
580 | 589 | | |
581 | 590 | | |
582 | 591 | | |
583 | | - | |
584 | | - | |
585 | | - | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
586 | 596 | | |
587 | 597 | | |
588 | 598 | | |
589 | 599 | | |
590 | 600 | | |
591 | 601 | | |
592 | 602 | | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
593 | 607 | | |
594 | 608 | | |
595 | 609 | | |
| |||
632 | 646 | | |
633 | 647 | | |
634 | 648 | | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
647 | 672 | | |
648 | 673 | | |
649 | 674 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
443 | 448 | | |
444 | 449 | | |
445 | 450 | | |
| |||
514 | 519 | | |
515 | 520 | | |
516 | 521 | | |
517 | | - | |
518 | | - | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
519 | 527 | | |
520 | 528 | | |
521 | 529 | | |
| |||
0 commit comments