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/connections/sources/catalog/libraries/mobile/flutter/index.md
+26-4Lines changed: 26 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,12 @@ hidden: false
4
4
---
5
5
6
6
> info ""
7
-
> The Analytics-Flutter library is currently in public beta and is governed by Segment's [First Access and Beta Preview Terms](https://www.twilio.com/en-us/legal/tos){:target="_blank"}. For more information, see the [Analytics-Flutter GitHub repository](https://github.com/segmentio/analytics_flutter){:target="_blank"}.
7
+
> The Analytics-Flutter library is currently in public beta and is governed by Segment's [First Access and Beta Preview Terms](https://www.twilio.com/en-us/legal/tos){:target="_blank"}. For more information, see the [Analytics-Flutter GitHub repository](https://github.com/segmentio/analytics_flutter){:target="_blank"}.
8
8
9
-
Analytics-Flutter enables you to seamlessly add Segment analytics to your Flutter1 app.
9
+
> warning "Updated package for pilot users"
10
+
> If you've been using Analytics-Flutter since the pilot phase, see [Upgrading from pilot](#upgrading-from-pilot) to use the updated version of Analytics-Flutter.
11
+
12
+
Analytics-Flutter enables you to seamlessly add Segment analytics to your Flutter app.
10
13
11
14
### Supported platforms
12
15
Analytics-Flutter supports these platforms:
@@ -88,6 +91,25 @@ These are the options you can apply to configure the client:
88
91
| `appStateStream`| null | Set this to override the stream of application foreground or background events. |
89
92
| `requestFactory`| true | Set this to override the factory to generate HTTP requests. Type: [RequestFactory](https://github.com/segmentio/analytics_flutter/blob/master/packages/core/lib/state.dart#L546){:target="_blank"}.|
90
93
94
+
### Upgrading from pilot
95
+
If you've been using Analytics-Flutter since the pilot phase, follow these steps to use the upgraded version of Analytics-Flutter as Segment renamed the package of the library from `analytics` to `segment_analytics`.
96
+
97
+
1. Remove the `analytics` package and use `segment_analytics` in your `pubspec.yaml` file.
The Analytics-Flutter utility methods help you work with plugins fro the analytics timeline. They include:
206
+
The Analytics-Flutter utility methods help you work with plugins from the analytics timeline. They include:
185
207
*[Alias](#alias)
186
208
*[Reset](#reset)
187
209
*[Flush](#flush)
@@ -253,7 +275,7 @@ If you don't do this, the old client instance still exists and retains the timer
253
275
254
276
## Automatic screen tracking
255
277
256
-
To set up automatic screen tracking, you need to add the analytics navigator observer to your app's navigator observers. For example, if you're using the `MaterialApp` class, add the following:
278
+
Automatic screen tracking enables you to track navigation globally, as sending a `screen()` event with each navigation action gets tiresome quickly. To set up automatic screen tracking, you need to add the analytics navigator observer to your app's navigator observers. For example, if you're using the `MaterialApp` class, add the following:
0 commit comments