You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/resources/platform-adaptations.md
+94-9Lines changed: 94 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -568,6 +568,7 @@ Your feedback is welcomed on [issue #8427][].
568
568
### Widgets with .adaptive() constructors
569
569
570
570
Several widgets support `.adaptive()` constructors.
571
+
The following table lists these widgets.
571
572
Adaptive constructors substitute the corresponding Cupertino components
572
573
when the app is run on an iOS device.
573
574
@@ -583,14 +584,13 @@ Therefore, we recommend that you follow platform conventions.
583
584
|<imgwidth=160src="/assets/images/docs/platform-adaptations/m3-switch.png"class="figure-img img-fluid rounded"alt="Switch in Material 3" /><br/>`Switch`|<imgsrc="/assets/images/docs/platform-adaptations/hig-switch.png"class="figure-img img-fluid rounded"alt="Switch in HIG" /><br/>`CupertinoSwitch`|[`Switch.adaptive()`][]|
584
585
|<imgsrc="/assets/images/docs/platform-adaptations/m3-slider.png"width =160class="figure-img img-fluid rounded"alt="Slider in Material 3" /><br/>`Slider`|<imgsrc="/assets/images/docs/platform-adaptations/hig-slider.png"width =160class="figure-img img-fluid rounded"alt="Slider in HIG" /><br/>`CupertinoSlider`|[`Slider.adaptive()`][]|
585
586
|<imgsrc="/assets/images/docs/platform-adaptations/m3-progress.png"width = 100class="figure-img img-fluid rounded"alt="Circular progress indicator in Material 3" /><br/>`CircularProgressIndicator`|<imgsrc="/assets/images/docs/platform-adaptations/hig-progress.png"class="figure-img img-fluid rounded"alt="Activity indicator in HIG" /><br/>`CupertinoActivityIndicator`|[`CircularProgressIndicator.adaptive()`][]|
586
-
<!-- Uncomment out these lines after the next stable -->
587
-
<!-- | <img src="/assets/images/docs/platform-adaptations/m3-checkbox.png" class="figure-img img-fluid rounded" alt=" Checkbox in Material 3" /> <br/>`Checkbox`| <img src="/assets/images/docs/platform-adaptations/hig-checkbox.png" class="figure-img img-fluid rounded" alt="Checkbox in HIG" /> <br/> `CupertinoCheckbox`|[`Checkbox.adaptive()`][]|
588
-
|<img src="/assets/images/docs/platform-adaptations/m3-radio.png" class="figure-img img-fluid rounded" alt="Radio in Material 3" /> <br/>`Radio`|<img src="/assets/images/docs/platform-adaptations/hig-radio.png" class="figure-img img-fluid rounded" alt="Radio in HIG" /><br/>`CupertinoRadio`|[`Radio.adaptive()`][]| -->
587
+
| <imgsrc="/assets/images/docs/platform-adaptations/m3-checkbox.png"class="figure-img img-fluid rounded"alt=" Checkbox in Material 3" /> <br/>`Checkbox`| <imgsrc="/assets/images/docs/platform-adaptations/hig-checkbox.png"class="figure-img img-fluid rounded"alt="Checkbox in HIG" /> <br/> `CupertinoCheckbox`|[`Checkbox.adaptive()`][]|
588
+
|<imgsrc="/assets/images/docs/platform-adaptations/m3-radio.png"class="figure-img img-fluid rounded"alt="Radio in Material 3" /> <br/>`Radio`|<imgsrc="/assets/images/docs/platform-adaptations/hig-radio.png"class="figure-img img-fluid rounded"alt="Radio in HIG" /><br/>`CupertinoRadio`|[`Radio.adaptive()`][]|
589
589
590
590
### Top app bar and navigation bar
591
591
592
592
Since Android 12, the default UI for top app
593
-
bars follow the design guidelines defined in [Material 3][mat-appbar].
593
+
bars follows the design guidelines defined in [Material 3][mat-appbar].
594
594
On iOS, an equivalent component called "Navigation Bars"
595
595
is defined in [Apple’s Human Interface Guidelines][hig-appbar] (HIG).
596
596
@@ -656,7 +656,90 @@ AppBar(
656
656
But, because app bars are displayed alongside
657
657
other content in your page, it's only recommended to adapt the styling
658
658
so long as its cohesive with the rest of your application. You can see
659
-
additional code samples and a further explanation in [the GitHub discussion on app bar adaptations][appbar-post].
659
+
additional code samples and a further explanation in
660
+
[the GitHub discussion on app bar adaptations][appbar-post].
661
+
662
+
### Bottom navigation bars
663
+
664
+
Since Android 12, the default UI for bottom navigation
665
+
bars follow the design guidelines defined in [Material 3][mat-navbar].
666
+
On iOS, an equivalent component called "Tab Bars"
667
+
is defined in [Apple’s Human Interface Guidelines][hig-tabbar] (HIG).
0 commit comments