Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add selection analytics for NetworkScreen #3360

Merged
merged 6 commits into from
Dec 7, 2021

Conversation

kenzieschmoll
Copy link
Member

Work towards #3270.

This PR tracks selections for the network profiler controls (pause, resume, clear) as well as for tab changes on the request inspector to understand usage of the different request inspector views.


void _initTabController() {
_tabController?.removeListener(_onTabChanged);
_tabController?.dispose();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I imagine we want to start tracking analytics on other cases we have tabs in DevTools. Would it make sense to define a AnalyticsTabController that handles logging the tab name each time a different tab is selected?
Seem annoying to have to change from a stateless to stateful widget just to make tabs work with our analytics.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done - Added AnalyticsTabbedView that handles sending tab switches to analytics.

Copy link
Contributor

@jacob314 jacob314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm
lgtm with one question about generalizing to handle the generic case of tabs with associated analytics ids.

@kenzieschmoll kenzieschmoll merged commit 5c3493d into flutter:master Dec 7, 2021
@kenzieschmoll kenzieschmoll deleted the analytics branch December 7, 2021 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants