text stringlengths 1 372 |
|---|
are horizontal on iOS and vertical on android. |
the back button is a simple chevron on iOS and |
has a stem/shaft on android. |
the material library also provides a set of platform-adaptive icons through icons.adaptive. |
<topic_end> |
<topic_start> |
haptic feedback |
the material and cupertino packages automatically |
trigger the platform appropriate haptic feedback in |
certain scenarios. |
for instance, |
a word selection via text field long-press triggers a ‘buzz’ |
vibrate on android and not on iOS. |
scrolling through picker items on iOS triggers a |
‘light impact’ knock and no feedback on android. |
<topic_end> |
<topic_start> |
text editing |
flutter also makes the below adaptations while editing |
the content of text fields to match the current platform. |
<topic_end> |
<topic_start> |
keyboard gesture navigation |
on android, |
horizontal swipes can be made on the soft keyboard’s space key |
to move the cursor in material and cupertino text fields. |
on iOS devices with 3d touch capabilities, |
a force-press-drag gesture could be made on the soft |
keyboard to move the cursor in 2d via a floating cursor. |
this works on both material and cupertino text fields. |
<topic_end> |
<topic_start> |
text selection toolbar |
with material on android, |
the android style selection toolbar is shown when |
a text selection is made in a text field. |
with material on iOS or when using cupertino, |
the iOS style selection toolbar is shown when a text |
selection is made in a text field. |
<topic_end> |
<topic_start> |
single tap gesture |
with material on android, |
a single tap in a text field puts the cursor at the |
location of the tap. |
a collapsed text selection also shows a draggable |
handle to subsequently move the cursor. |
with material on iOS or when using cupertino, |
a single tap in a text field puts the cursor at the |
nearest edge of the word tapped. |
collapsed text selections don’t have draggable handles on iOS. |
<topic_end> |
<topic_start> |
long-press gesture |
with material on android, |
a long press selects the word under the long press. |
the selection toolbar is shown upon release. |
with material on iOS or when using cupertino, |
a long press places the cursor at the location of the |
long press. the selection toolbar is shown upon release. |
<topic_end> |
<topic_start> |
long-press drag gesture |
with material on android, |
dragging while holding the long press expands the words selected. |
with material on iOS or when using cupertino, |
dragging while holding the long press moves the cursor. |
<topic_end> |
<topic_start> |
double tap gesture |
on both android and iOS, |
a double tap selects the word receiving the |
double tap and shows the selection toolbar. |
<topic_end> |
<topic_start> |
UI components |
this section includes preliminary recommendations on how to adapt |
material widgets to deliver a natural and compelling experience on iOS. |
your feedback is welcomed on issue #8427. |
<topic_end> |
<topic_start> |
widgets with .adaptive() constructors |
several widgets support .adaptive() constructors. |
the following table lists these widgets. |
adaptive constructors substitute the corresponding cupertino components |
when the app is run on an iOS device. |
widgets in the following table are used primarily for input, |
selection, and to display system information. |
because these controls are tightly integrated with the operating system, |
users have been trained to recognize and respond to them. |
therefore, we recommend that you follow platform conventions. |
<topic_end> |
<topic_start> |
top app bar and navigation bar |
since android 12, the default UI for top app |
bars follows the design guidelines defined in material 3. |
on iOS, an equivalent component called “navigation bars” |
is defined in apple’s human interface guidelines (hig). |
certain properties of app bars in flutter apps should be adapted, |
like system icons and page transitions. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.