text
stringlengths
1
372
using the asterisk, * redirects every path to the flutter application.
if needed, change the paths value to a setting more appropriate
to your app.
host the file at a URL that resembles the following:
<webdomain>/.well-known/apple-app-site-association
verify that your browser can access this file.
<topic_end>
<topic_start>
testing
info note
it might take up to 24 hours before apple’s
content delivery network (cdn)
requests the apple-app-site-association (aasa) file from your web domain.
the universal link won’t work until the CDN requests the file.
to bypass apple’s CDN, check out the alternate mode section.
you can use a real device or the simulator to test a universal link,
but first make sure you have executed flutter run at least once on
the devices. this ensures that the flutter application is installed.
if using the simulator, test using the xcode CLI:
otherwise, type the URL in the note app and click it.
if everything is set up correctly, the flutter application
launches and displays the details screen:
<topic_end>
<topic_start>
appendix
source code: deeplink_cookbook
<topic_end>
<topic_start>
configuring the URL strategy on the web
flutter web apps support two ways of configuring
URL-based navigation on the web:
<topic_end>
<topic_start>
configuring the URL strategy
to configure flutter to use the path instead, use the
usePathUrlStrategy function provided by the flutter_web_plugins library
in the SDK:
<topic_end>
<topic_start>
configuring your web server
PathUrlStrategy uses the history API, which requires additional
configuration for web servers.
to configure your web server to support PathUrlStrategy, check your web server’s
documentation to rewrite requests to index.html.Check your web server’s
documentation for details on how to configure single-page apps.
if you are using firebase hosting, choose the “configure as a single-page app”
option when initializing your project. for more information see firebase’s
configure rewrites documentation.
the local dev server created by running flutter run -d chrome is configured to
handle any path gracefully and fallback to your app’s index.html file.
<topic_end>
<topic_start>
hosting a flutter app at a non-root location
update the <base href="/"> tag in web/index.html
to the path where your app is hosted.
for example, to host your flutter app at
my_app.dev/flutter_app, change
this tag to <base href="/flutter_app/">.
<topic_end>
<topic_start>
introduction to animations
well-designed animations make a UI feel more intuitive,
contribute to the slick look and feel of a polished app,
and improve the user experience.
flutter’s animation support makes it easy to implement a variety of
animation types. many widgets, especially material widgets,
come with the standard motion effects defined in their design spec,
but it’s also possible to customize these effects.
<topic_end>
<topic_start>
choosing an approach
there are different approaches you can take when creating
animations in flutter. which approach is right for you?
to help you decide, check out the video,
how to choose which flutter animation widget is right for you?
(also published as a companion article.)
(to dive deeper into the decision process,
watch the animations in flutter done right video,
presented at flutter europe.)
as shown in the video, the following
decision tree helps you decide what approach
to use when implementing a flutter animation:
if a pre-packaged implicit animation (the easiest animation
to implement) suits your needs, watch
animation basics with implicit animations.
(also published as a companion article.)
learn about animation basics with implicit animations
to create a custom implicit animation, watch
creating your own custom implicit animations with TweenAnimationBuilder.
(also published as a companion article.)
learn about building custom implicit animations with TweenAnimationBuilder
to create an explicit animation (where you control the animation,
rather than letting the framework control it), perhaps
you can use one of the built-in explicit animations classes.
for more information, watch
making your first directional animations with
built-in explicit animations.
(also published as a companion article.)
if you need to build an explicit animation from scratch, watch
creating custom explicit animations with