text stringlengths 1 372 |
|---|
these are already automatically adapted when using |
the material AppBar and SliverAppBar widgets. |
you can also further customize the properties of these widgets to better |
match iOS platform styles, as shown below. |
but, because app bars are displayed alongside |
other content in your page, it’s only recommended to adapt the styling |
so long as its cohesive with the rest of your application. you can see |
additional code samples and a further explanation in |
the GitHub discussion on app bar adaptations. |
<topic_end> |
<topic_start> |
bottom navigation bars |
since android 12, the default UI for bottom navigation |
bars follow the design guidelines defined in material 3. |
on iOS, an equivalent component called “tab bars” |
is defined in apple’s human interface guidelines (hig). |
since tab bars are persistent across your app, they should match your |
own branding. however, if you choose to use material’s default |
styling on android, you might consider adapting to the default iOS |
tab bars. |
to implement platform-specific bottom navigation bars, |
you can use flutter’s NavigationBar widget on android |
and the CupertinoTabBar widget on iOS. |
below is a code snippet you can |
adapt to show a platform-specific navigation bars. |
<topic_end> |
<topic_start> |
text fields |
since android 12, text fields follow the |
material 3 (m3) design guidelines. |
on iOS, apple’s human interface guidelines (hig) define |
an equivalent component. |
since text fields require user input, |
their design should follow platform conventions. |
to implement a platform-specific TextField |
in flutter, you can adapt the styling of the |
material TextField. |
to learn more about adapting text fields, check out |
the GitHub discussion on text fields. |
you can leave feedback or ask questions in the discussion. |
<topic_end> |
<topic_start> |
alert dialog |
since android 12, the default UI of alert dialogs |
(also known as a “basic dialog”) follows the design guidelines |
defined in material 3 (m3). |
on iOS, an equivalent component called “alert” is defined in apple’s |
human interface guidelines (hig). |
since alert dialogs are often tightly integrated with the operating system, |
their design generally needs to follow the platform conventions. |
this is especially important when a dialog is used to request user input |
about security, privacy, and destructive operations (e.g., deleting files |
permanently). as an exception, a branded alert dialog design can be used on |
non-critical user flows to highlight specific information or messages. |
to implement platform-specific alert dialogs, |
you can use flutter’s AlertDialog widget on android |
and the CupertinoAlertDialog widget on iOS. below is a code snippet you can |
adapt to show a platform-specific alert dialog. |
to learn more about adapting alert dialogs, check out |
the GitHub discussion on dialog adaptations. |
you can leave feedback or ask questions in the discussion. |
<topic_end> |
<topic_start> |
android |
<topic_end> |
<topic_start> |
topics |
<topic_end> |
<topic_start> |
add android devtools for flutter |
to choose the guide to add android studio to your flutter configuration, |
click the getting started path you followed. |
<topic_end> |
<topic_start> |
adding a splash screen to your android app |
splash screens (also known as launch screens) provide |
a simple initial experience while your android app loads. |
they set the stage for your application, |
while allowing time for the app engine |
to load and your app to initialize. |
<topic_end> |
<topic_start> |
overview |
warning warning |
if you are experiencing a crash from implementing a splash screen, you |
might need to migrate your code. see detailed instructions in the |
deprecated splash screen API migration guide. |
in android, there are two separate screens that you can control: |
a launch screen shown while your android app initializes, |
and a splash screen that displays while the flutter experience |
initializes. |
info note |
as of flutter 2.5, the launch and splash screens have been |
consolidated—Flutter now only implements the android launch screen, |
which is displayed until the framework draws the first frame. |
this launch screen can act as both an android launch screen and an |
android splash screen via customization, and thus, is referred to |
as both terms. for example of such customization, check out the |
android splash screen sample app. |
if, prior to 2.5, you used flutter create to create an app, |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.